diff options
| author | Johan Hedberg <[email protected]> | 2014-02-28 20:26:12 +0200 |
|---|---|---|
| committer | Marcel Holtmann <[email protected]> | 2014-02-28 10:28:16 -0800 |
| commit | 317ac8cb3f9fb58b9ec5764b766a449004ab2a62 (patch) | |
| tree | f94c7db069a87514a4b5e16cff1dafbbd5981dd7 /tools/perf/scripts/python/netdev-times.py | |
| parent | e3098be40bbde0fdd5fcfa6bf28491db421d333a (diff) | |
Bluetooth: Fix trying to disable scanning twice
The discovery process has a timer for disabling scanning, however
scanning might be disabled through other means too like the auto-connect
process. We should therefore ensure that the timer is never active
after sending a HCI command to disable scanning.
There was some existing code in stop_scan_complete trying to avoid the
timer when a connect request interrupts a discovery procedure, but the
other way around was not covered. This patch covers both scenarios by
canceling the timer as soon as we get a successful command complete for
the disabling HCI command.
Signed-off-by: Johan Hedberg <[email protected]>
Signed-off-by: Marcel Holtmann <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/netdev-times.py')
0 files changed, 0 insertions, 0 deletions