OSDN Git Service

tools/l2cap-tester: Disconnect during connect attempt test
authorJakub Pawlowski <jpawlowski@google.com>
Wed, 11 Nov 2015 06:36:28 +0000 (22:36 -0800)
committerJohan Hedberg <johan.hedberg@intel.com>
Wed, 11 Nov 2015 07:59:00 +0000 (09:59 +0200)
commit598a93f3b4b3e9f686b45c45e1405d8d044b8d3b
tree1aab0761c20552cb3cc5b1c82499f6410a4b4d6c
parent6d4fc88ecc6fe0796848bbf81d8e16e61c8af82e
tools/l2cap-tester: Disconnect during connect attempt test

This patch adds test that checks folowing:
1. Try to connect to existing BLE device that is not advertising.
2. Internally in kernel this adds this device to whitelist and enable scan.
3. Make the device advertise once. That would stop the scan, and trigger
   connect attempt to device.
4. Close socket. This should stop the connect attempt, by sending
   BT_HCI_CMD_LE_CREATE_CONN_CANCEL.
tools/l2cap-tester.c