Bluetooth: Only send mgmt_ops messages for BR-EDR devices
Signed-off-by: Peter Krystad <pkrystad@codeaurora.org>
diff --git a/net/bluetooth/mgmt.c b/net/bluetooth/mgmt.c
index 3b63aee..6ec00d5 100644
--- a/net/bluetooth/mgmt.c
+++ b/net/bluetooth/mgmt.c
@@ -146,6 +146,9 @@
count = 0;
list_for_each(p, &hci_dev_list) {
+ struct hci_dev *d = list_entry(p, struct hci_dev, list);
+ if (d->dev_type != HCI_BREDR)
+ continue;
count++;
}
@@ -164,6 +167,9 @@
hci_del_off_timer(d);
+ if (d->dev_type != HCI_BREDR)
+ continue;
+
set_bit(HCI_MGMT, &d->flags);
if (test_bit(HCI_SETUP, &d->flags))