]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Fix clearing discovery type when stopping discovery
authorHemant Gupta <hemant.gupta@stericsson.com>
Thu, 5 Apr 2012 04:57:21 +0000 (10:27 +0530)
committerGustavo Padovan <gustavo@padovan.org>
Wed, 9 May 2012 03:41:37 +0000 (00:41 -0300)
commit6e97748f8d760ee4a745c85758adb79949181c89
treed4d53c91cb8cb5e47155f4bfe94ca34274eb6dee
parentf2262a5a125d8091fe8df587924e4e126f47b3ce
Bluetooth: Fix clearing discovery type when stopping discovery

This patch prevents resetting of discovery type while stopping
discovery, since otherwise the wrong type might be send in case of
discovery failure. It also doesn't matter that we are "lazy" with
updating the type since it is anyway reset when starting discovery again
and it's not needed to know the current discovery state.

Signed-off-by: Hemant Gupta <hemant.gupta@stericsson.com>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
net/bluetooth/hci_core.c