Parent: e847a85605775903cf33231f489e17350d9f3dac
Author: Petri Gynther <pgynther@google.com>
Committer: Johan Hedberg <johan.hedberg@intel.com>
Date: 2014-06-26 10:54:54
Tree: 2fe7b9e882d19341bb2f89fe8c4c1fb2732edd41
core: Fix stop_passive_scanning_complete() Consider MGMT_STATUS_REJECTED as success for stop_passive_scanning(). MGMT_STATUS_REJECTED may be returned from kernel because the passive scan timer had expired in kernel and passive scan was disabled just around the time we called stop_passive_scanning(). This issue can be seen with BLE HoG devices trying to reconnect to BlueZ: bluetoothd[931]: src/adapter.c:device_found_callback() hci0 addr ... bluetoothd[931]: src/device.c:device_set_legacy() legacy 0 bluetoothd[931]: src/device.c:device_set_rssi() rssi -75 bluetoothd[931]: src/adapter.c:stop_passive_scanning() bluetoothd[931]: src/adapter.c:discovering_callback() hci0 type 6 discovering 0 bluetoothd[931]: src/adapter.c:trigger_passive_scanning() bluetoothd[931]: src/adapter.c:stop_passive_scanning_complete() status 0x0b (Rejected) bluetoothd[931]: Stopping passive scanning failed: Rejected
Diffstat
| M | src/adapter.c | | | 7 | ++++++- |
1 files changed, 6 insertions(+), 1 deletions(-)