diff options
author | Andre Guedes <[email protected]> | 2012-02-23 16:50:05 +0200 |
---|---|---|
committer | Johan Hedberg <[email protected]> | 2012-02-23 16:51:47 +0200 |
commit | 69775ff6d101ccf435bd26ae822c24bbb20e11cf (patch) | |
tree | 7e138bfb91d6aad28f879164e9b64702acad955c /lib/dynamic_debug.c | |
parent | 60fc5fb66efa0bcbe028637206ed59df8cd4ac19 (diff) |
Bluetooth: Set DISCOVERY_STOPPED if controller resets
If controller is reset during the discovery procedure, Start Discovery
command stops working. This can be easily reproduced by running
"hciconfig hci0 reset" while discovering devices, for instance.
We should force discovery state to DISCOVERY_STOPPED in case we receive
a reset command complete event. Otherwise we may stuck in one of the
active discovery states (DISCOVERY_INQUIRY, DISCOVERY_LE_SCAN and
DISCOVERY_RESOLVING) and subsequent Start Discovery commands will simply
fail.
Signed-off-by: Andre Guedes <[email protected]>
Acked-by: Marcel Holtmann <[email protected]>
Signed-off-by: Johan Hedberg <[email protected]>
Diffstat (limited to 'lib/dynamic_debug.c')
0 files changed, 0 insertions, 0 deletions