Re: [PATCH 1/2] Bluetooth: Fix trying to disable scanning twice

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Johan,

> 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 <johan.hedberg@xxxxxxxxx>
> ---
> net/bluetooth/hci_conn.c  | 1 -
> net/bluetooth/hci_event.c | 5 +++++
> 2 files changed, 5 insertions(+), 1 deletion(-)

patch has been applied to bluetooth-next tree.

Regards

Marcel

--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux