Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.5 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_PASS,URIBL_BLOCKED, USER_AGENT_MUTT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 82134C10F0E for ; Tue, 9 Apr 2019 14:45:20 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 5B0D72084F for ; Tue, 9 Apr 2019 14:45:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726579AbfDIOpO (ORCPT ); Tue, 9 Apr 2019 10:45:14 -0400 Received: from mga11.intel.com ([192.55.52.93]:5779 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726396AbfDIOpO (ORCPT ); Tue, 9 Apr 2019 10:45:14 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 09 Apr 2019 07:45:14 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.60,329,1549958400"; d="scan'208";a="335195857" Received: from smile.fi.intel.com (HELO smile) ([10.237.72.86]) by fmsmga006.fm.intel.com with ESMTP; 09 Apr 2019 07:45:12 -0700 Received: from andy by smile with local (Exim 4.92) (envelope-from ) id 1hDrzr-0004Or-EO; Tue, 09 Apr 2019 17:45:11 +0300 Date: Tue, 9 Apr 2019 17:45:11 +0300 From: Andy Shevchenko To: Ferry Toth Cc: wagi@monom.org, Marcel Holtmann , Johan Hedberg , linux-bluetooth@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] Bluetooth: btbcm: Add default address for BCM43341B Message-ID: <20190409144511.GO9224@smile.fi.intel.com> References: <20190409141550.19458-1-ftoth@exalondelft.nl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190409141550.19458-1-ftoth@exalondelft.nl> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org 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 P.S. It seems the To: field was empty, dunno if it prevents bots to parse the original message. > Suggested-by: Andy Shevchenko > Signed-off-by: Ferry Toth > --- > 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