Bluetooth: Fix setting HCI_CONNECTABLE from ioctl code
authorJohan Hedberg <johan.hedberg@intel.com>
Wed, 9 Jul 2014 10:28:26 +0000 (13:28 +0300)
committerMarcel Holtmann <marcel@holtmann.org>
Wed, 9 Jul 2014 10:30:18 +0000 (12:30 +0200)
commit91a668b0565dddc9f556f9bce65da58264c74623
tree4eb3d06e972db4be177d5c40697cedbba3349906
parenta55bd29d522729e0cb125474396acdc2a107d4d9
Bluetooth: Fix setting HCI_CONNECTABLE from ioctl code

When the white list is in use the code would not update the
HCI_CONNECTABLE flag if it gets changed through the ioctl code (e.g.
hciconfig hci0 pscan). Since the flag is important for properly
accepting incoming connections add code to fix it up if necessary and
emit a New Settings mgmt event.

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