aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/bluetooth/btmrvl_main.c2
-rw-r--r--drivers/bluetooth/btsdio.c2
-rw-r--r--drivers/bluetooth/btusb.c2
-rw-r--r--drivers/bluetooth/hci_ldisc.c2
-rw-r--r--drivers/bluetooth/hci_vhci.c6
-rw-r--r--include/net/bluetooth/hci.h2
-rw-r--r--net/bluetooth/hci_conn.c2
-rw-r--r--net/bluetooth/hci_core.c28
-rw-r--r--net/bluetooth/hci_event.c2
-rw-r--r--net/bluetooth/hci_sock.c2
-rw-r--r--net/bluetooth/l2cap_core.c2
-rw-r--r--net/bluetooth/mgmt.c16
12 files changed, 33 insertions, 35 deletions
diff --git a/drivers/bluetooth/btmrvl_main.c b/drivers/bluetooth/btmrvl_main.c
index 7ad8d61c0c61..e6a85f0e6309 100644
--- a/drivers/bluetooth/btmrvl_main.c
+++ b/drivers/bluetooth/btmrvl_main.c
@@ -138,7 +138,7 @@ int btmrvl_process_event(struct btmrvl_private *priv, struct sk_buff *skb)
138 if (event->length > 3 && event->data[3]) 138 if (event->length > 3 && event->data[3])
139 priv->btmrvl_dev.dev_type = HCI_AMP; 139 priv->btmrvl_dev.dev_type = HCI_AMP;
140 else 140 else
141 priv->btmrvl_dev.dev_type = HCI_BREDR; 141 priv->btmrvl_dev.dev_type = HCI_PRIMARY;
142 142
143 BT_DBG("dev_type: %d", priv->btmrvl_dev.dev_type); 143 BT_DBG("dev_type: %d", priv->btmrvl_dev.dev_type);
144 } else if (priv->btmrvl_dev.sendcmdflag && 144 } else if (priv->btmrvl_dev.sendcmdflag &&
diff --git a/drivers/bluetooth/btsdio.c b/drivers/bluetooth/btsdio.c
index 2b05661e3818..1cb958e199eb 100644
--- a/drivers/bluetooth/btsdio.c
+++ b/drivers/bluetooth/btsdio.c
@@ -311,7 +311,7 @@ static int btsdio_probe(struct sdio_func *func,
311 if (id->class == SDIO_CLASS_BT_AMP) 311 if (id->class == SDIO_CLASS_BT_AMP)
312 hdev->dev_type = HCI_AMP; 312 hdev->dev_type = HCI_AMP;
313 else 313 else
314 hdev->dev_type = HCI_BREDR; 314 hdev->dev_type = HCI_PRIMARY;
315 315
316 data->hdev = hdev; 316 data->hdev = hdev;
317 317
diff --git a/drivers/bluetooth/btusb.c b/drivers/bluetooth/btusb.c
index 880bb5546b25..f2e8fd701bf6 100644
--- a/drivers/bluetooth/btusb.c
+++ b/drivers/bluetooth/btusb.c
@@ -2832,7 +2832,7 @@ static int btusb_probe(struct usb_interface *intf,
2832 if (id->driver_info & BTUSB_AMP) 2832 if (id->driver_info & BTUSB_AMP)
2833 hdev->dev_type = HCI_AMP; 2833 hdev->dev_type = HCI_AMP;
2834 else 2834 else
2835 hdev->dev_type = HCI_BREDR; 2835 hdev->dev_type = HCI_PRIMARY;
2836 2836
2837 data->hdev = hdev; 2837 data->hdev = hdev;
2838 2838
diff --git a/drivers/bluetooth/hci_ldisc.c b/drivers/bluetooth/hci_ldisc.c
index 49b3e1e2d236..dda97398c59a 100644
--- a/drivers/bluetooth/hci_ldisc.c
+++ b/drivers/bluetooth/hci_ldisc.c
@@ -609,7 +609,7 @@ static int hci_uart_register_dev(struct hci_uart *hu)
609 if (test_bit(HCI_UART_CREATE_AMP, &hu->hdev_flags)) 609 if (test_bit(HCI_UART_CREATE_AMP, &hu->hdev_flags))
610 hdev->dev_type = HCI_AMP; 610 hdev->dev_type = HCI_AMP;
611 else 611 else
612 hdev->dev_type = HCI_BREDR; 612 hdev->dev_type = HCI_PRIMARY;
613 613
614 if (test_bit(HCI_UART_INIT_PENDING, &hu->hdev_flags)) 614 if (test_bit(HCI_UART_INIT_PENDING, &hu->hdev_flags))
615 return 0; 615 return 0;
diff --git a/drivers/bluetooth/hci_vhci.c b/drivers/bluetooth/hci_vhci.c
index aba31210c802..3ff229b2e7f3 100644
--- a/drivers/bluetooth/hci_vhci.c
+++ b/drivers/bluetooth/hci_vhci.c
@@ -97,10 +97,10 @@ static int __vhci_create_device(struct vhci_data *data, __u8 opcode)
97 if (data->hdev) 97 if (data->hdev)
98 return -EBADFD; 98 return -EBADFD;
99 99
100 /* bits 0-1 are dev_type (BR/EDR or AMP) */ 100 /* bits 0-1 are dev_type (Primary or AMP) */
101 dev_type = opcode & 0x03; 101 dev_type = opcode & 0x03;
102 102
103 if (dev_type != HCI_BREDR && dev_type != HCI_AMP) 103 if (dev_type != HCI_PRIMARY && dev_type != HCI_AMP)
104 return -EINVAL; 104 return -EINVAL;
105 105
106 /* bits 2-5 are reserved (must be zero) */ 106 /* bits 2-5 are reserved (must be zero) */
@@ -316,7 +316,7 @@ static void vhci_open_timeout(struct work_struct *work)
316 struct vhci_data *data = container_of(work, struct vhci_data, 316 struct vhci_data *data = container_of(work, struct vhci_data,
317 open_timeout.work); 317 open_timeout.work);
318 318
319 vhci_create_device(data, amp ? HCI_AMP : HCI_BREDR); 319 vhci_create_device(data, amp ? HCI_AMP : HCI_PRIMARY);
320} 320}
321 321
322static int vhci_open(struct inode *inode, struct file *file) 322static int vhci_open(struct inode *inode, struct file *file)
diff --git a/include/net/bluetooth/hci.h b/include/net/bluetooth/hci.h
index eefcf3e96421..a3f86de6f100 100644
--- a/include/net/bluetooth/hci.h
+++ b/include/net/bluetooth/hci.h
@@ -65,7 +65,7 @@
65#define HCI_I2C 8 65#define HCI_I2C 8
66 66
67/* HCI controller types */ 67/* HCI controller types */
68#define HCI_BREDR 0x00 68#define HCI_PRIMARY 0x00
69#define HCI_AMP 0x01 69#define HCI_AMP 0x01
70 70
71/* First BR/EDR Controller shall have ID = 0 */ 71/* First BR/EDR Controller shall have ID = 0 */
diff --git a/net/bluetooth/hci_conn.c b/net/bluetooth/hci_conn.c
index bf9f8a801a2e..3809617aa98d 100644
--- a/net/bluetooth/hci_conn.c
+++ b/net/bluetooth/hci_conn.c
@@ -625,7 +625,7 @@ struct hci_dev *hci_get_route(bdaddr_t *dst, bdaddr_t *src)
625 list_for_each_entry(d, &hci_dev_list, list) { 625 list_for_each_entry(d, &hci_dev_list, list) {
626 if (!test_bit(HCI_UP, &d->flags) || 626 if (!test_bit(HCI_UP, &d->flags) ||
627 hci_dev_test_flag(d, HCI_USER_CHANNEL) || 627 hci_dev_test_flag(d, HCI_USER_CHANNEL) ||
628 d->dev_type != HCI_BREDR) 628 d->dev_type != HCI_PRIMARY)
629 continue; 629 continue;
630 630
631 /* Simple routing: 631 /* Simple routing:
diff --git a/net/bluetooth/hci_core.c b/net/bluetooth/hci_core.c
index 45a9fc68c677..98f6c3770736 100644
--- a/net/bluetooth/hci_core.c
+++ b/net/bluetooth/hci_core.c
@@ -260,14 +260,12 @@ static int hci_init1_req(struct hci_request *req, unsigned long opt)
260 hci_reset_req(req, 0); 260 hci_reset_req(req, 0);
261 261
262 switch (hdev->dev_type) { 262 switch (hdev->dev_type) {
263 case HCI_BREDR: 263 case HCI_PRIMARY:
264 bredr_init(req); 264 bredr_init(req);
265 break; 265 break;
266
267 case HCI_AMP: 266 case HCI_AMP:
268 amp_init1(req); 267 amp_init1(req);
269 break; 268 break;
270
271 default: 269 default:
272 BT_ERR("Unknown device type %d", hdev->dev_type); 270 BT_ERR("Unknown device type %d", hdev->dev_type);
273 break; 271 break;
@@ -791,11 +789,11 @@ static int __hci_init(struct hci_dev *hdev)
791 if (err < 0) 789 if (err < 0)
792 return err; 790 return err;
793 791
794 /* HCI_BREDR covers both single-mode LE, BR/EDR and dual-mode 792 /* HCI_PRIMARY covers both single-mode LE, BR/EDR and dual-mode
795 * BR/EDR/LE type controllers. AMP controllers only need the 793 * BR/EDR/LE type controllers. AMP controllers only need the
796 * first two stages of init. 794 * first two stages of init.
797 */ 795 */
798 if (hdev->dev_type != HCI_BREDR) 796 if (hdev->dev_type != HCI_PRIMARY)
799 return 0; 797 return 0;
800 798
801 err = __hci_req_sync(hdev, hci_init3_req, 0, HCI_INIT_TIMEOUT, NULL); 799 err = __hci_req_sync(hdev, hci_init3_req, 0, HCI_INIT_TIMEOUT, NULL);
@@ -1202,7 +1200,7 @@ int hci_inquiry(void __user *arg)
1202 goto done; 1200 goto done;
1203 } 1201 }
1204 1202
1205 if (hdev->dev_type != HCI_BREDR) { 1203 if (hdev->dev_type != HCI_PRIMARY) {
1206 err = -EOPNOTSUPP; 1204 err = -EOPNOTSUPP;
1207 goto done; 1205 goto done;
1208 } 1206 }
@@ -1307,7 +1305,7 @@ static int hci_dev_do_open(struct hci_dev *hdev)
1307 * since AMP controllers do not have an address. 1305 * since AMP controllers do not have an address.
1308 */ 1306 */
1309 if (!hci_dev_test_flag(hdev, HCI_USER_CHANNEL) && 1307 if (!hci_dev_test_flag(hdev, HCI_USER_CHANNEL) &&
1310 hdev->dev_type == HCI_BREDR && 1308 hdev->dev_type == HCI_PRIMARY &&
1311 !bacmp(&hdev->bdaddr, BDADDR_ANY) && 1309 !bacmp(&hdev->bdaddr, BDADDR_ANY) &&
1312 !bacmp(&hdev->static_addr, BDADDR_ANY)) { 1310 !bacmp(&hdev->static_addr, BDADDR_ANY)) {
1313 ret = -EADDRNOTAVAIL; 1311 ret = -EADDRNOTAVAIL;
@@ -1402,7 +1400,7 @@ static int hci_dev_do_open(struct hci_dev *hdev)
1402 !hci_dev_test_flag(hdev, HCI_UNCONFIGURED) && 1400 !hci_dev_test_flag(hdev, HCI_UNCONFIGURED) &&
1403 !hci_dev_test_flag(hdev, HCI_USER_CHANNEL) && 1401 !hci_dev_test_flag(hdev, HCI_USER_CHANNEL) &&
1404 hci_dev_test_flag(hdev, HCI_MGMT) && 1402 hci_dev_test_flag(hdev, HCI_MGMT) &&
1405 hdev->dev_type == HCI_BREDR) { 1403 hdev->dev_type == HCI_PRIMARY) {
1406 ret = __hci_req_hci_power_on(hdev); 1404 ret = __hci_req_hci_power_on(hdev);
1407 mgmt_power_on(hdev, ret); 1405 mgmt_power_on(hdev, ret);
1408 } 1406 }
@@ -1563,7 +1561,7 @@ int hci_dev_do_close(struct hci_dev *hdev)
1563 1561
1564 auto_off = hci_dev_test_and_clear_flag(hdev, HCI_AUTO_OFF); 1562 auto_off = hci_dev_test_and_clear_flag(hdev, HCI_AUTO_OFF);
1565 1563
1566 if (!auto_off && hdev->dev_type == HCI_BREDR && 1564 if (!auto_off && hdev->dev_type == HCI_PRIMARY &&
1567 hci_dev_test_flag(hdev, HCI_MGMT)) 1565 hci_dev_test_flag(hdev, HCI_MGMT))
1568 __mgmt_power_off(hdev); 1566 __mgmt_power_off(hdev);
1569 1567
@@ -1802,7 +1800,7 @@ int hci_dev_cmd(unsigned int cmd, void __user *arg)
1802 goto done; 1800 goto done;
1803 } 1801 }
1804 1802
1805 if (hdev->dev_type != HCI_BREDR) { 1803 if (hdev->dev_type != HCI_PRIMARY) {
1806 err = -EOPNOTSUPP; 1804 err = -EOPNOTSUPP;
1807 goto done; 1805 goto done;
1808 } 1806 }
@@ -2043,7 +2041,7 @@ static void hci_power_on(struct work_struct *work)
2043 */ 2041 */
2044 if (hci_dev_test_flag(hdev, HCI_RFKILLED) || 2042 if (hci_dev_test_flag(hdev, HCI_RFKILLED) ||
2045 hci_dev_test_flag(hdev, HCI_UNCONFIGURED) || 2043 hci_dev_test_flag(hdev, HCI_UNCONFIGURED) ||
2046 (hdev->dev_type == HCI_BREDR && 2044 (hdev->dev_type == HCI_PRIMARY &&
2047 !bacmp(&hdev->bdaddr, BDADDR_ANY) && 2045 !bacmp(&hdev->bdaddr, BDADDR_ANY) &&
2048 !bacmp(&hdev->static_addr, BDADDR_ANY))) { 2046 !bacmp(&hdev->static_addr, BDADDR_ANY))) {
2049 hci_dev_clear_flag(hdev, HCI_AUTO_OFF); 2047 hci_dev_clear_flag(hdev, HCI_AUTO_OFF);
@@ -3030,7 +3028,7 @@ int hci_register_dev(struct hci_dev *hdev)
3030 * so the index can be used as the AMP controller ID. 3028 * so the index can be used as the AMP controller ID.
3031 */ 3029 */
3032 switch (hdev->dev_type) { 3030 switch (hdev->dev_type) {
3033 case HCI_BREDR: 3031 case HCI_PRIMARY:
3034 id = ida_simple_get(&hci_index_ida, 0, 0, GFP_KERNEL); 3032 id = ida_simple_get(&hci_index_ida, 0, 0, GFP_KERNEL);
3035 break; 3033 break;
3036 case HCI_AMP: 3034 case HCI_AMP:
@@ -3090,7 +3088,7 @@ int hci_register_dev(struct hci_dev *hdev)
3090 hci_dev_set_flag(hdev, HCI_SETUP); 3088 hci_dev_set_flag(hdev, HCI_SETUP);
3091 hci_dev_set_flag(hdev, HCI_AUTO_OFF); 3089 hci_dev_set_flag(hdev, HCI_AUTO_OFF);
3092 3090
3093 if (hdev->dev_type == HCI_BREDR) { 3091 if (hdev->dev_type == HCI_PRIMARY) {
3094 /* Assume BR/EDR support until proven otherwise (such as 3092 /* Assume BR/EDR support until proven otherwise (such as
3095 * through reading supported features during init. 3093 * through reading supported features during init.
3096 */ 3094 */
@@ -3415,7 +3413,7 @@ static void hci_queue_acl(struct hci_chan *chan, struct sk_buff_head *queue,
3415 hci_skb_pkt_type(skb) = HCI_ACLDATA_PKT; 3413 hci_skb_pkt_type(skb) = HCI_ACLDATA_PKT;
3416 3414
3417 switch (hdev->dev_type) { 3415 switch (hdev->dev_type) {
3418 case HCI_BREDR: 3416 case HCI_PRIMARY:
3419 hci_add_acl_hdr(skb, conn->handle, flags); 3417 hci_add_acl_hdr(skb, conn->handle, flags);
3420 break; 3418 break;
3421 case HCI_AMP: 3419 case HCI_AMP:
@@ -3826,7 +3824,7 @@ static void hci_sched_acl(struct hci_dev *hdev)
3826 BT_DBG("%s", hdev->name); 3824 BT_DBG("%s", hdev->name);
3827 3825
3828 /* No ACL link over BR/EDR controller */ 3826 /* No ACL link over BR/EDR controller */
3829 if (!hci_conn_num(hdev, ACL_LINK) && hdev->dev_type == HCI_BREDR) 3827 if (!hci_conn_num(hdev, ACL_LINK) && hdev->dev_type == HCI_PRIMARY)
3830 return; 3828 return;
3831 3829
3832 /* No AMP link over AMP controller */ 3830 /* No AMP link over AMP controller */
diff --git a/net/bluetooth/hci_event.c b/net/bluetooth/hci_event.c
index d4b3dd5413be..3fb95c47243c 100644
--- a/net/bluetooth/hci_event.c
+++ b/net/bluetooth/hci_event.c
@@ -3249,7 +3249,7 @@ static struct hci_conn *__hci_conn_lookup_handle(struct hci_dev *hdev,
3249 struct hci_chan *chan; 3249 struct hci_chan *chan;
3250 3250
3251 switch (hdev->dev_type) { 3251 switch (hdev->dev_type) {
3252 case HCI_BREDR: 3252 case HCI_PRIMARY:
3253 return hci_conn_hash_lookup_handle(hdev, handle); 3253 return hci_conn_hash_lookup_handle(hdev, handle);
3254 case HCI_AMP: 3254 case HCI_AMP:
3255 chan = hci_chan_lookup_handle(hdev, handle); 3255 chan = hci_chan_lookup_handle(hdev, handle);
diff --git a/net/bluetooth/hci_sock.c b/net/bluetooth/hci_sock.c
index 12e9294b02e0..6ef8a01a9ad4 100644
--- a/net/bluetooth/hci_sock.c
+++ b/net/bluetooth/hci_sock.c
@@ -676,7 +676,7 @@ static int hci_sock_bound_ioctl(struct sock *sk, unsigned int cmd,
676 if (hci_dev_test_flag(hdev, HCI_UNCONFIGURED)) 676 if (hci_dev_test_flag(hdev, HCI_UNCONFIGURED))
677 return -EOPNOTSUPP; 677 return -EOPNOTSUPP;
678 678
679 if (hdev->dev_type != HCI_BREDR) 679 if (hdev->dev_type != HCI_PRIMARY)
680 return -EOPNOTSUPP; 680 return -EOPNOTSUPP;
681 681
682 switch (cmd) { 682 switch (cmd) {
diff --git a/net/bluetooth/l2cap_core.c b/net/bluetooth/l2cap_core.c
index eb4f5f24cbe3..54ceb1f2cc9a 100644
--- a/net/bluetooth/l2cap_core.c
+++ b/net/bluetooth/l2cap_core.c
@@ -7468,7 +7468,7 @@ void l2cap_recv_acldata(struct hci_conn *hcon, struct sk_buff *skb, u16 flags)
7468 int len; 7468 int len;
7469 7469
7470 /* For AMP controller do not create l2cap conn */ 7470 /* For AMP controller do not create l2cap conn */
7471 if (!conn && hcon->hdev->dev_type != HCI_BREDR) 7471 if (!conn && hcon->hdev->dev_type != HCI_PRIMARY)
7472 goto drop; 7472 goto drop;
7473 7473
7474 if (!conn) 7474 if (!conn)
diff --git a/net/bluetooth/mgmt.c b/net/bluetooth/mgmt.c
index 9e4b931588cf..7983ec8d4c60 100644
--- a/net/bluetooth/mgmt.c
+++ b/net/bluetooth/mgmt.c
@@ -359,7 +359,7 @@ static int read_index_list(struct sock *sk, struct hci_dev *hdev, void *data,
359 359
360 count = 0; 360 count = 0;
361 list_for_each_entry(d, &hci_dev_list, list) { 361 list_for_each_entry(d, &hci_dev_list, list) {
362 if (d->dev_type == HCI_BREDR && 362 if (d->dev_type == HCI_PRIMARY &&
363 !hci_dev_test_flag(d, HCI_UNCONFIGURED)) 363 !hci_dev_test_flag(d, HCI_UNCONFIGURED))
364 count++; 364 count++;
365 } 365 }
@@ -384,7 +384,7 @@ static int read_index_list(struct sock *sk, struct hci_dev *hdev, void *data,
384 if (test_bit(HCI_QUIRK_RAW_DEVICE, &d->quirks)) 384 if (test_bit(HCI_QUIRK_RAW_DEVICE, &d->quirks))
385 continue; 385 continue;
386 386
387 if (d->dev_type == HCI_BREDR && 387 if (d->dev_type == HCI_PRIMARY &&
388 !hci_dev_test_flag(d, HCI_UNCONFIGURED)) { 388 !hci_dev_test_flag(d, HCI_UNCONFIGURED)) {
389 rp->index[count++] = cpu_to_le16(d->id); 389 rp->index[count++] = cpu_to_le16(d->id);
390 BT_DBG("Added hci%u", d->id); 390 BT_DBG("Added hci%u", d->id);
@@ -419,7 +419,7 @@ static int read_unconf_index_list(struct sock *sk, struct hci_dev *hdev,
419 419
420 count = 0; 420 count = 0;
421 list_for_each_entry(d, &hci_dev_list, list) { 421 list_for_each_entry(d, &hci_dev_list, list) {
422 if (d->dev_type == HCI_BREDR && 422 if (d->dev_type == HCI_PRIMARY &&
423 hci_dev_test_flag(d, HCI_UNCONFIGURED)) 423 hci_dev_test_flag(d, HCI_UNCONFIGURED))
424 count++; 424 count++;
425 } 425 }
@@ -444,7 +444,7 @@ static int read_unconf_index_list(struct sock *sk, struct hci_dev *hdev,
444 if (test_bit(HCI_QUIRK_RAW_DEVICE, &d->quirks)) 444 if (test_bit(HCI_QUIRK_RAW_DEVICE, &d->quirks))
445 continue; 445 continue;
446 446
447 if (d->dev_type == HCI_BREDR && 447 if (d->dev_type == HCI_PRIMARY &&
448 hci_dev_test_flag(d, HCI_UNCONFIGURED)) { 448 hci_dev_test_flag(d, HCI_UNCONFIGURED)) {
449 rp->index[count++] = cpu_to_le16(d->id); 449 rp->index[count++] = cpu_to_le16(d->id);
450 BT_DBG("Added hci%u", d->id); 450 BT_DBG("Added hci%u", d->id);
@@ -479,7 +479,7 @@ static int read_ext_index_list(struct sock *sk, struct hci_dev *hdev,
479 479
480 count = 0; 480 count = 0;
481 list_for_each_entry(d, &hci_dev_list, list) { 481 list_for_each_entry(d, &hci_dev_list, list) {
482 if (d->dev_type == HCI_BREDR || d->dev_type == HCI_AMP) 482 if (d->dev_type == HCI_PRIMARY || d->dev_type == HCI_AMP)
483 count++; 483 count++;
484 } 484 }
485 485
@@ -503,7 +503,7 @@ static int read_ext_index_list(struct sock *sk, struct hci_dev *hdev,
503 if (test_bit(HCI_QUIRK_RAW_DEVICE, &d->quirks)) 503 if (test_bit(HCI_QUIRK_RAW_DEVICE, &d->quirks))
504 continue; 504 continue;
505 505
506 if (d->dev_type == HCI_BREDR) { 506 if (d->dev_type == HCI_PRIMARY) {
507 if (hci_dev_test_flag(d, HCI_UNCONFIGURED)) 507 if (hci_dev_test_flag(d, HCI_UNCONFIGURED))
508 rp->entry[count].type = 0x01; 508 rp->entry[count].type = 0x01;
509 else 509 else
@@ -6366,7 +6366,7 @@ void mgmt_index_added(struct hci_dev *hdev)
6366 return; 6366 return;
6367 6367
6368 switch (hdev->dev_type) { 6368 switch (hdev->dev_type) {
6369 case HCI_BREDR: 6369 case HCI_PRIMARY:
6370 if (hci_dev_test_flag(hdev, HCI_UNCONFIGURED)) { 6370 if (hci_dev_test_flag(hdev, HCI_UNCONFIGURED)) {
6371 mgmt_index_event(MGMT_EV_UNCONF_INDEX_ADDED, hdev, 6371 mgmt_index_event(MGMT_EV_UNCONF_INDEX_ADDED, hdev,
6372 NULL, 0, HCI_MGMT_UNCONF_INDEX_EVENTS); 6372 NULL, 0, HCI_MGMT_UNCONF_INDEX_EVENTS);
@@ -6399,7 +6399,7 @@ void mgmt_index_removed(struct hci_dev *hdev)
6399 return; 6399 return;
6400 6400
6401 switch (hdev->dev_type) { 6401 switch (hdev->dev_type) {
6402 case HCI_BREDR: 6402 case HCI_PRIMARY:
6403 mgmt_pending_foreach(0, hdev, cmd_complete_rsp, &status); 6403 mgmt_pending_foreach(0, hdev, cmd_complete_rsp, &status);
6404 6404
6405 if (hci_dev_test_flag(hdev, HCI_UNCONFIGURED)) { 6405 if (hci_dev_test_flag(hdev, HCI_UNCONFIGURED)) {