]> git.karo-electronics.de Git - linux-beck.git/commit
Bluetooth: Fix updating settings when there are no HCI commands to send
authorJohan Hedberg <johan.hedberg@intel.com>
Sat, 19 Oct 2013 20:38:19 +0000 (23:38 +0300)
committerMarcel Holtmann <marcel@holtmann.org>
Sun, 20 Oct 2013 16:05:40 +0000 (09:05 -0700)
commita81070ba3743400444275cc87f8f91bb5b67dd4b
tree6e65f0b5572dfacf6eeff3e76e9e22d272366776
parente8ba3a1f08d9386b6e4abe9b00c21e38029a76a4
Bluetooth: Fix updating settings when there are no HCI commands to send

It is possible that the Set Connectable management command doesn't cause
any HCI commands to send (such as when BR/EDR is disabled). We can't
just send a response to user space in this case but must also update the
necessary device flags and settings. This patch fixes the issue by using
the recently introduced set_connectable_update_settings function.

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