diff options
author | Stephan Gerhold <stephan@gerhold.net> | 2019-05-01 03:18:23 -0400 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2019-05-05 13:27:49 -0400 |
commit | 300926b138eb30ce1763d1d10604230d4d38d64a (patch) | |
tree | 130e363265225adbd150e2d0058c8902a7afbfd5 /drivers/bluetooth | |
parent | 04fdd5dd79a9012dad7b0e6ba676c5a61ca592e4 (diff) |
Bluetooth: btbcm: Add default address for BCM2076B1
BCM2076B1 appears to use 20:76:A0:00:56:79 as default address.
This address is used by at least 5 devices with the AMPAK AP6476
module and is also suspicious because it starts with the chip name
2076 (followed by a different revision A0 for some reason).
Add it to the list of default addresses and leave it up to the
user to configure a valid one.
Signed-off-by: Stephan Gerhold <stephan@gerhold.net>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'drivers/bluetooth')
-rw-r--r-- | drivers/bluetooth/btbcm.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/bluetooth/btbcm.c b/drivers/bluetooth/btbcm.c index 71e74ec08310..8e17963ab65a 100644 --- a/drivers/bluetooth/btbcm.c +++ b/drivers/bluetooth/btbcm.c | |||
@@ -34,6 +34,7 @@ | |||
34 | 34 | ||
35 | #define BDADDR_BCM20702A0 (&(bdaddr_t) {{0x00, 0xa0, 0x02, 0x70, 0x20, 0x00}}) | 35 | #define BDADDR_BCM20702A0 (&(bdaddr_t) {{0x00, 0xa0, 0x02, 0x70, 0x20, 0x00}}) |
36 | #define BDADDR_BCM20702A1 (&(bdaddr_t) {{0x00, 0x00, 0xa0, 0x02, 0x70, 0x20}}) | 36 | #define BDADDR_BCM20702A1 (&(bdaddr_t) {{0x00, 0x00, 0xa0, 0x02, 0x70, 0x20}}) |
37 | #define BDADDR_BCM2076B1 (&(bdaddr_t) {{0x79, 0x56, 0x00, 0xa0, 0x76, 0x20}}) | ||
37 | #define BDADDR_BCM43430A0 (&(bdaddr_t) {{0xac, 0x1f, 0x12, 0xa0, 0x43, 0x43}}) | 38 | #define BDADDR_BCM43430A0 (&(bdaddr_t) {{0xac, 0x1f, 0x12, 0xa0, 0x43, 0x43}}) |
38 | #define BDADDR_BCM4324B3 (&(bdaddr_t) {{0x00, 0x00, 0x00, 0xb3, 0x24, 0x43}}) | 39 | #define BDADDR_BCM4324B3 (&(bdaddr_t) {{0x00, 0x00, 0x00, 0xb3, 0x24, 0x43}}) |
39 | #define BDADDR_BCM4330B1 (&(bdaddr_t) {{0x00, 0x00, 0x00, 0xb1, 0x30, 0x43}}) | 40 | #define BDADDR_BCM4330B1 (&(bdaddr_t) {{0x00, 0x00, 0x00, 0xb1, 0x30, 0x43}}) |
@@ -70,6 +71,9 @@ int btbcm_check_bdaddr(struct hci_dev *hdev) | |||
70 | * The address 20:70:02:A0:00:00 indicates a BCM20702A1 controller | 71 | * The address 20:70:02:A0:00:00 indicates a BCM20702A1 controller |
71 | * with no configured address. | 72 | * with no configured address. |
72 | * | 73 | * |
74 | * The address 20:76:A0:00:56:79 indicates a BCM2076B1 controller | ||
75 | * with no configured address. | ||
76 | * | ||
73 | * The address 43:24:B3:00:00:00 indicates a BCM4324B3 controller | 77 | * The address 43:24:B3:00:00:00 indicates a BCM4324B3 controller |
74 | * with waiting for configuration state. | 78 | * with waiting for configuration state. |
75 | * | 79 | * |
@@ -81,6 +85,7 @@ int btbcm_check_bdaddr(struct hci_dev *hdev) | |||
81 | */ | 85 | */ |
82 | if (!bacmp(&bda->bdaddr, BDADDR_BCM20702A0) || | 86 | if (!bacmp(&bda->bdaddr, BDADDR_BCM20702A0) || |
83 | !bacmp(&bda->bdaddr, BDADDR_BCM20702A1) || | 87 | !bacmp(&bda->bdaddr, BDADDR_BCM20702A1) || |
88 | !bacmp(&bda->bdaddr, BDADDR_BCM2076B1) || | ||
84 | !bacmp(&bda->bdaddr, BDADDR_BCM4324B3) || | 89 | !bacmp(&bda->bdaddr, BDADDR_BCM4324B3) || |
85 | !bacmp(&bda->bdaddr, BDADDR_BCM4330B1) || | 90 | !bacmp(&bda->bdaddr, BDADDR_BCM4330B1) || |
86 | !bacmp(&bda->bdaddr, BDADDR_BCM43430A0) || | 91 | !bacmp(&bda->bdaddr, BDADDR_BCM43430A0) || |