From: Johan Hedberg Date: Mon, 14 Oct 2013 18:15:26 +0000 (+0300) Subject: Bluetooth: Fix updating scan mode in set_bredr() X-Git-Tag: v3.13-rc1~105^2~55^2^2~54^2~6 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aa8af46e90869686e1a2707d0803ea9445a643a3;p=pandora-kernel.git 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 Signed-off-by: Marcel Holtmann --- Reading git-diff-tree failed