]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: mgmt: Fix update_eir/class with HCI_AUTO_OFF flag set
authorJohan Hedberg <johan.hedberg@intel.com>
Thu, 23 Feb 2012 11:30:41 +0000 (13:30 +0200)
committerJohan Hedberg <johan.hedberg@intel.com>
Thu, 23 Feb 2012 15:01:49 +0000 (17:01 +0200)
commitcfa140e7e58c9ce37e986e2428f337cde4bb2bc7
treefcc0639d4532ffe12898d793f0383e03c5ae5101
parentac23e4b6118a54302445693cb23c1e16c39bde7b
Bluetooth: mgmt: Fix update_eir/class with HCI_AUTO_OFF flag set

If we're powered but still have the HCI_AUTO_OFF flag set the
update_eir and update_class functions should not do anything.
Additionally these functions need to be called when the flag is finally
cleared through set_powered or when powering on for real.

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Acked-by: Gustavo F. Padovan <padovan@profusion.mobi>
Acked-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/mgmt.c