]> git.karo-electronics.de Git - linux-beck.git/commit
Bluetooth: Fix updating scan mode in set_bredr()
authorJohan Hedberg <johan.hedberg@intel.com>
Mon, 14 Oct 2013 18:15:26 +0000 (21:15 +0300)
committerMarcel Holtmann <marcel@holtmann.org>
Mon, 14 Oct 2013 18:23:28 +0000 (11:23 -0700)
commitaa8af46e90869686e1a2707d0803ea9445a643a3
tree5a8c964e182f7773905df74ad0315c31e154429c
parent67e5a7a3d796d88da9662ab90aa23161c6a9f753
Bluetooth: Fix updating scan mode in set_bredr()

Now that the connectable setting is also applicable for the LE side it's
possible that the HCI_CONNECTABLE flag is already set when changing the
BR/EDR setting from false to true while the controller is powered. In
this situation we need to update the BR/EDR scan mode to reflect the
setting. Additionally, since HCI_CONNECTABLE also applies to LE we must
not clear the HCI_CONNECTABLE flag when disabling bredr.

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/mgmt.c