Bluetooth: Handle HCI raw socket transition from unbound to bound
authorMarcel Holtmann <marcel@holtmann.org>
Tue, 30 Aug 2016 03:00:40 +0000 (05:00 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Mon, 19 Sep 2016 18:19:34 +0000 (20:19 +0200)
commitf4cdbb3f25c15c17a952deae1f2e0db6df8f1948
treebf10e260f0f461bf4f74fc9e2e8371a444cb33a6
parentf81f5b2db8692ff1d2d5f4db1fde58e67aa976a3
Bluetooth: Handle HCI raw socket transition from unbound to bound

In case an unbound HCI raw socket is later on bound, ensure that the
monitor notification messages indicate a close and re-open. None of
the userspace tools use the socket this, but it is actually possible
to use an ioctl on an unbound socket and then later bind it.

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