aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/bluetooth
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2016-07-05 08:30:14 -0400
committerJohan Hedberg <johan.hedberg@intel.com>2016-07-09 14:37:13 -0400
commitca8bee5dde1f02c2dbe8c8453dce27f2dfafb21c (patch)
tree79ca6c942f1c5e618ac7363edaa549466c9b1b61 /drivers/bluetooth
parente14dbe72033152135eb3bae212228728089d4dd9 (diff)
Bluetooth: Rename HCI_BREDR into HCI_PRIMARY
The HCI_BREDR naming is confusing since it actually stands for Primary Bluetooth Controller. Which is a term that has been used in the latest standard. However from a legacy point of view there only really have been Basic Rate (BR) and Enhanced Data Rate (EDR). Recent versions of Bluetooth introduced Low Energy (LE) and made this terminology a little bit confused since Dual Mode Controllers include BR/EDR and LE. To simplify this the name HCI_PRIMARY stands for the Primary Controller which can be a single mode or dual mode controller. Signed-off-by: Marcel Holtmann <marcel@holtmann.org> Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Diffstat (limited to 'drivers/bluetooth')
-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
5 files changed, 7 insertions, 7 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)