* [PATCH] Bluetooth: btbcm: Add default address for BCM43341B
@ 2019-04-09 14:15 Ferry Toth
2019-04-09 14:45 ` Andy Shevchenko
2019-04-23 17:09 ` Marcel Holtmann
0 siblings, 2 replies; 4+ messages in thread
From: Ferry Toth @ 2019-04-09 14:15 UTC (permalink / raw)
Cc: andriy.shevchenko, wagi, Ferry Toth, Marcel Holtmann,
Johan Hedberg, linux-bluetooth, linux-kernel
The BCM43341B has the default MAC address 43:34:1B:00:1F:AC if none
is given. This address was found when enabling Bluetooth on multiple
Intel Edison modules. It also contains the sequence 43341B, the name
the chip identifies itself as. Using the same BD_ADDR is problematic
when having multiple Intel Edison modules in each others range.
The default address also has the LAA (locally administered address)
bit set which prevents a BNEP device from being created, needed for
BT tethering.
Add this to the list of black listed default MAC addresses and let
the user configure a valid one using f.i.
`btmgmt -i hci0 public-addr xx:xx:xx:xx:xx:xx`
Suggested-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Ferry Toth <ftoth@exalondelft.nl>
---
drivers/bluetooth/btbcm.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/drivers/bluetooth/btbcm.c b/drivers/bluetooth/btbcm.c
index d5d6e6e5da3b..62d3aa2b26f6 100644
--- a/drivers/bluetooth/btbcm.c
+++ b/drivers/bluetooth/btbcm.c
@@ -37,6 +37,7 @@
#define BDADDR_BCM43430A0 (&(bdaddr_t) {{0xac, 0x1f, 0x12, 0xa0, 0x43, 0x43}})
#define BDADDR_BCM4324B3 (&(bdaddr_t) {{0x00, 0x00, 0x00, 0xb3, 0x24, 0x43}})
#define BDADDR_BCM4330B1 (&(bdaddr_t) {{0x00, 0x00, 0x00, 0xb1, 0x30, 0x43}})
+#define BDADDR_BCM43341B (&(bdaddr_t) {{0xac, 0x1f, 0x00, 0x1b, 0x34, 0x43}})
int btbcm_check_bdaddr(struct hci_dev *hdev)
{
@@ -82,7 +83,8 @@ int btbcm_check_bdaddr(struct hci_dev *hdev)
!bacmp(&bda->bdaddr, BDADDR_BCM20702A1) ||
!bacmp(&bda->bdaddr, BDADDR_BCM4324B3) ||
!bacmp(&bda->bdaddr, BDADDR_BCM4330B1) ||
- !bacmp(&bda->bdaddr, BDADDR_BCM43430A0)) {
+ !bacmp(&bda->bdaddr, BDADDR_BCM43430A0) ||
+ !bacmp(&bda->bdaddr, BDADDR_BCM43341B)) {
bt_dev_info(hdev, "BCM: Using default device address (%pMR)",
&bda->bdaddr);
set_bit(HCI_QUIRK_INVALID_BDADDR, &hdev->quirks);
--
2.19.1
^ permalink raw reply related [flat|nested] 4+ messages in thread* Re: [PATCH] Bluetooth: btbcm: Add default address for BCM43341B
2019-04-09 14:15 [PATCH] Bluetooth: btbcm: Add default address for BCM43341B Ferry Toth
@ 2019-04-09 14:45 ` Andy Shevchenko
2019-04-09 15:17 ` Ferry Toth
2019-04-23 17:09 ` Marcel Holtmann
1 sibling, 1 reply; 4+ messages in thread
From: Andy Shevchenko @ 2019-04-09 14:45 UTC (permalink / raw)
To: Ferry Toth
Cc: wagi, Marcel Holtmann, Johan Hedberg, linux-bluetooth,
linux-kernel
On Tue, Apr 09, 2019 at 04:15:50PM +0200, Ferry Toth wrote:
> The BCM43341B has the default MAC address 43:34:1B:00:1F:AC if none
> is given. This address was found when enabling Bluetooth on multiple
> Intel Edison modules. It also contains the sequence 43341B, the name
> the chip identifies itself as. Using the same BD_ADDR is problematic
> when having multiple Intel Edison modules in each others range.
> The default address also has the LAA (locally administered address)
> bit set which prevents a BNEP device from being created, needed for
> BT tethering.
>
> Add this to the list of black listed default MAC addresses and let
> the user configure a valid one using f.i.
> `btmgmt -i hci0 public-addr xx:xx:xx:xx:xx:xx`
>
Thank you!
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
P.S. It seems the To: field was empty, dunno if it prevents bots to parse the
original message.
> Suggested-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
> Signed-off-by: Ferry Toth <ftoth@exalondelft.nl>
> ---
> drivers/bluetooth/btbcm.c | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/bluetooth/btbcm.c b/drivers/bluetooth/btbcm.c
> index d5d6e6e5da3b..62d3aa2b26f6 100644
> --- a/drivers/bluetooth/btbcm.c
> +++ b/drivers/bluetooth/btbcm.c
> @@ -37,6 +37,7 @@
> #define BDADDR_BCM43430A0 (&(bdaddr_t) {{0xac, 0x1f, 0x12, 0xa0, 0x43, 0x43}})
> #define BDADDR_BCM4324B3 (&(bdaddr_t) {{0x00, 0x00, 0x00, 0xb3, 0x24, 0x43}})
> #define BDADDR_BCM4330B1 (&(bdaddr_t) {{0x00, 0x00, 0x00, 0xb1, 0x30, 0x43}})
> +#define BDADDR_BCM43341B (&(bdaddr_t) {{0xac, 0x1f, 0x00, 0x1b, 0x34, 0x43}})
>
> int btbcm_check_bdaddr(struct hci_dev *hdev)
> {
> @@ -82,7 +83,8 @@ int btbcm_check_bdaddr(struct hci_dev *hdev)
> !bacmp(&bda->bdaddr, BDADDR_BCM20702A1) ||
> !bacmp(&bda->bdaddr, BDADDR_BCM4324B3) ||
> !bacmp(&bda->bdaddr, BDADDR_BCM4330B1) ||
> - !bacmp(&bda->bdaddr, BDADDR_BCM43430A0)) {
> + !bacmp(&bda->bdaddr, BDADDR_BCM43430A0) ||
> + !bacmp(&bda->bdaddr, BDADDR_BCM43341B)) {
> bt_dev_info(hdev, "BCM: Using default device address (%pMR)",
> &bda->bdaddr);
> set_bit(HCI_QUIRK_INVALID_BDADDR, &hdev->quirks);
> --
> 2.19.1
>
--
With Best Regards,
Andy Shevchenko
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [PATCH] Bluetooth: btbcm: Add default address for BCM43341B
2019-04-09 14:45 ` Andy Shevchenko
@ 2019-04-09 15:17 ` Ferry Toth
0 siblings, 0 replies; 4+ messages in thread
From: Ferry Toth @ 2019-04-09 15:17 UTC (permalink / raw)
To: Andy Shevchenko
Cc: wagi, Marcel Holtmann, Johan Hedberg, linux-bluetooth,
linux-kernel
Op 09-04-19 om 16:45 schreef Andy Shevchenko:
> On Tue, Apr 09, 2019 at 04:15:50PM +0200, Ferry Toth wrote:
>> The BCM43341B has the default MAC address 43:34:1B:00:1F:AC if none
>> is given. This address was found when enabling Bluetooth on multiple
>> Intel Edison modules. It also contains the sequence 43341B, the name
>> the chip identifies itself as. Using the same BD_ADDR is problematic
>> when having multiple Intel Edison modules in each others range.
>> The default address also has the LAA (locally administered address)
>> bit set which prevents a BNEP device from being created, needed for
>> BT tethering.
>>
>> Add this to the list of black listed default MAC addresses and let
>> the user configure a valid one using f.i.
>> `btmgmt -i hci0 public-addr xx:xx:xx:xx:xx:xx`
>>
> Thank you!
>
> Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
>
> P.S. It seems the To: field was empty, dunno if it prevents bots to parse the
> original message.
>
Sorry, is my first kernel patch. Seems it has been picked up by
marc.info and gmane, so I hope those are representative.
>> Suggested-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
>> Signed-off-by: Ferry Toth <ftoth@exalondelft.nl>
>> ---
>> drivers/bluetooth/btbcm.c | 4 +++-
>> 1 file changed, 3 insertions(+), 1 deletion(-)
>>
>> diff --git a/drivers/bluetooth/btbcm.c b/drivers/bluetooth/btbcm.c
>> index d5d6e6e5da3b..62d3aa2b26f6 100644
>> --- a/drivers/bluetooth/btbcm.c
>> +++ b/drivers/bluetooth/btbcm.c
>> @@ -37,6 +37,7 @@
>> #define BDADDR_BCM43430A0 (&(bdaddr_t) {{0xac, 0x1f, 0x12, 0xa0, 0x43, 0x43}})
>> #define BDADDR_BCM4324B3 (&(bdaddr_t) {{0x00, 0x00, 0x00, 0xb3, 0x24, 0x43}})
>> #define BDADDR_BCM4330B1 (&(bdaddr_t) {{0x00, 0x00, 0x00, 0xb1, 0x30, 0x43}})
>> +#define BDADDR_BCM43341B (&(bdaddr_t) {{0xac, 0x1f, 0x00, 0x1b, 0x34, 0x43}})
>>
>> int btbcm_check_bdaddr(struct hci_dev *hdev)
>> {
>> @@ -82,7 +83,8 @@ int btbcm_check_bdaddr(struct hci_dev *hdev)
>> !bacmp(&bda->bdaddr, BDADDR_BCM20702A1) ||
>> !bacmp(&bda->bdaddr, BDADDR_BCM4324B3) ||
>> !bacmp(&bda->bdaddr, BDADDR_BCM4330B1) ||
>> - !bacmp(&bda->bdaddr, BDADDR_BCM43430A0)) {
>> + !bacmp(&bda->bdaddr, BDADDR_BCM43430A0) ||
>> + !bacmp(&bda->bdaddr, BDADDR_BCM43341B)) {
>> bt_dev_info(hdev, "BCM: Using default device address (%pMR)",
>> &bda->bdaddr);
>> set_bit(HCI_QUIRK_INVALID_BDADDR, &hdev->quirks);
>> --
>> 2.19.1
>>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] Bluetooth: btbcm: Add default address for BCM43341B
2019-04-09 14:15 [PATCH] Bluetooth: btbcm: Add default address for BCM43341B Ferry Toth
2019-04-09 14:45 ` Andy Shevchenko
@ 2019-04-23 17:09 ` Marcel Holtmann
1 sibling, 0 replies; 4+ messages in thread
From: Marcel Holtmann @ 2019-04-23 17:09 UTC (permalink / raw)
To: Ferry Toth
Cc: andriy.shevchenko, Daniel Wagner, Johan Hedberg, linux-bluetooth,
linux-kernel
Hi Ferry,
> The BCM43341B has the default MAC address 43:34:1B:00:1F:AC if none
> is given. This address was found when enabling Bluetooth on multiple
> Intel Edison modules. It also contains the sequence 43341B, the name
> the chip identifies itself as. Using the same BD_ADDR is problematic
> when having multiple Intel Edison modules in each others range.
> The default address also has the LAA (locally administered address)
> bit set which prevents a BNEP device from being created, needed for
> BT tethering.
>
> Add this to the list of black listed default MAC addresses and let
> the user configure a valid one using f.i.
> `btmgmt -i hci0 public-addr xx:xx:xx:xx:xx:xx`
>
> Suggested-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
> Signed-off-by: Ferry Toth <ftoth@exalondelft.nl>
> ---
> drivers/bluetooth/btbcm.c | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
patch has been applied to bluetooth-next tree.
Regards
Marcel
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2019-04-23 17:09 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-04-09 14:15 [PATCH] Bluetooth: btbcm: Add default address for BCM43341B Ferry Toth
2019-04-09 14:45 ` Andy Shevchenko
2019-04-09 15:17 ` Ferry Toth
2019-04-23 17:09 ` Marcel Holtmann
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox