OSDN Git Service

tools/l2cap-tester: add close socket test
authorJakub Pawlowski <jpawlowski@google.com>
Wed, 11 Nov 2015 06:36:27 +0000 (22:36 -0800)
committerJohan Hedberg <johan.hedberg@intel.com>
Wed, 11 Nov 2015 07:58:58 +0000 (09:58 +0200)
commit6d4fc88ecc6fe0796848bbf81d8e16e61c8af82e
treed6d52cd0f3a922e3abcbee16c01a8173411c30cd
parent51fdcde66c39cbdc6d241e27b905b988e8926b1c
tools/l2cap-tester: add close socket test

This patch adds test that checks folowing:
1. Try to connect to non-existing remote BLE device using socket.
2. Internally in kernel this adds this device to whitelist and enable scan.
3. At this moment test would try to close socket.
4. That should cause scan to be stopped.
tools/l2cap-tester.c