]> git.karo-electronics.de Git - karo-tx-linux.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)
committerJohan Hedberg <johan.hedberg@intel.com>
Thu, 5 Apr 2012 10:50:26 +0000 (13:50 +0300)
commit74dc81a299b92dee2adbf2a6fa02b575f92e2b39
treeabc831c57e2c533e318b311ece4de0a9131bd927
parent5662db36fdbf3255af5b7345f1a353f5935fa903
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