Skip to content

Commit 0697607

Browse files
wensholtmann
authored andcommitted
Bluetooth: btbcm: Add default address for BCM43430A0
The BCM43430A0 has the default MAC address 43:43:A0:12:1F:AC if none is given. This address was found when enabling Bluetooth on a bunch of boards with the AMPAK AP6210 module, all sharing the same address. It also contains the sequence 4343A0, which is suspicious as that is also the name the chip identifies itself as. Add this to the list of default MAC addresses and leave it to the user to configure a valid one. Signed-off-by: Chen-Yu Tsai <wens@csie.org> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
1 parent 6690455 commit 0697607

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

drivers/bluetooth/btbcm.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434

3535
#define BDADDR_BCM20702A0 (&(bdaddr_t) {{0x00, 0xa0, 0x02, 0x70, 0x20, 0x00}})
3636
#define BDADDR_BCM20702A1 (&(bdaddr_t) {{0x00, 0x00, 0xa0, 0x02, 0x70, 0x20}})
37+
#define BDADDR_BCM43430A0 (&(bdaddr_t) {{0xac, 0x1f, 0x12, 0xa0, 0x43, 0x43}})
3738
#define BDADDR_BCM4324B3 (&(bdaddr_t) {{0x00, 0x00, 0x00, 0xb3, 0x24, 0x43}})
3839
#define BDADDR_BCM4330B1 (&(bdaddr_t) {{0x00, 0x00, 0x00, 0xb1, 0x30, 0x43}})
3940

@@ -73,11 +74,15 @@ int btbcm_check_bdaddr(struct hci_dev *hdev)
7374
*
7475
* The address 43:30:B1:00:00:00 indicates a BCM4330B1 controller
7576
* with waiting for configuration state.
77+
*
78+
* The address 43:43:A0:12:1F:AC indicates a BCM43430A0 controller
79+
* with no configured address.
7680
*/
7781
if (!bacmp(&bda->bdaddr, BDADDR_BCM20702A0) ||
7882
!bacmp(&bda->bdaddr, BDADDR_BCM20702A1) ||
7983
!bacmp(&bda->bdaddr, BDADDR_BCM4324B3) ||
80-
!bacmp(&bda->bdaddr, BDADDR_BCM4330B1)) {
84+
!bacmp(&bda->bdaddr, BDADDR_BCM4330B1) ||
85+
!bacmp(&bda->bdaddr, BDADDR_BCM43430A0)) {
8186
bt_dev_info(hdev, "BCM: Using default device address (%pMR)",
8287
&bda->bdaddr);
8388
set_bit(HCI_QUIRK_INVALID_BDADDR, &hdev->quirks);

0 commit comments

Comments
 (0)