Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp3814425rwp; Sat, 15 Jul 2023 09:54:15 -0700 (PDT) X-Google-Smtp-Source: APBJJlGToT1aeRdcqWbqztHxHuuRbm5BYOr+SJGy9fqVspkQPE40LMINeS7PhOEey8GjasvzftCh X-Received: by 2002:a05:6a00:10cb:b0:682:37be:c9fe with SMTP id d11-20020a056a0010cb00b0068237bec9femr10586579pfu.10.1689440055669; Sat, 15 Jul 2023 09:54:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689440055; cv=none; d=google.com; s=arc-20160816; b=G34KPPshrhs7BOkeq0yB4Ut7oD9D0OUF0IHI1xOfZf4jT4giKb5bbN4Hg0Gd/dEaNW LxXcK0f5UmArlX5VeJiTz8ty0zgqt9YBWXeqfjkH2uwU/JUZrzXcmeyiz0dppMq9S+vn O8EQd/1OqAybKEPGihpGdYXIEOi3nBKZ57qb3Cw/u41PdziH/mzYdp/yjX4Snh7rIQ5j aBWtDbtcau+ttbJuqdzhT2/4LM5kbBcHZA8aHzJdLoCsOPgXyZtXJ5tD/x46YaoU2ERi kF3B/7hGekRwRahrNVoIhJGz9dnyA5OJKPlFhjiKxv5e7CBYWln27DhekkAbCFrfTkzs 5bMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=j87C9EqmYq6ef9+LGgoozdZK/6JJ3iXW2zvBEK+9I+s=; fh=A59jXH9+TnWir20kMBhd2iLRolTVfgl6ii6vR5av3hE=; b=gQhuJisT1iPWBKP4RsVaSWgu8m1pMf4+7NPsopnStn/bu2ZIJmQoeGtSXBCDtc02Wf qYu8ou+ahnLheCEFOlIgeeSwxZO/A8O63F31dVcTvn+/klepVtxV/vqRNbg5o/Ao/aaN qPFvONzQU9EJ+G7D0G2SH6rLY43tSH8WbSUrCAwwBuL4LL3KiLGppWvOyi/Av/7r4wr3 i66mDe/uBDpsa5RdNduHbSNRsgAnbGXWF0ovd7ObDhrT9BSsdurhmUpCeseFynd5Ln8j FEXZtLa6MhVwN9OvLSAaLj3cyNj8RAKG5BZIRGg7Fn37Lfx+h3i3AcqO7Rt0PN4+F1rA cGmQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 192-20020a6302c9000000b00543d2b94731si2884449pgc.479.2023.07.15.09.53.45; Sat, 15 Jul 2023 09:54:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229919AbjGOQmJ (ORCPT + 99 others); Sat, 15 Jul 2023 12:42:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50416 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229483AbjGOQmI (ORCPT ); Sat, 15 Jul 2023 12:42:08 -0400 Received: from unicorn.mansr.com (unicorn.mansr.com [81.2.72.234]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BDFA62121; Sat, 15 Jul 2023 09:42:05 -0700 (PDT) Received: from raven.mansr.com (raven.mansr.com [81.2.72.235]) by unicorn.mansr.com (Postfix) with ESMTPS id 31D3015360; Sat, 15 Jul 2023 17:42:01 +0100 (BST) Received: by raven.mansr.com (Postfix, from userid 51770) id D6EA3220D45; Sat, 15 Jul 2023 17:42:00 +0100 (BST) From: Mans Rullgard To: Marcel Holtmann , Johan Hedberg , Luiz Augusto von Dentz Cc: linux-bluetooth@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] Bluetooth: btbcm: add default address for BCM43430A1 Date: Sat, 15 Jul 2023 17:41:59 +0100 Message-ID: <20230715164159.16368-1-mans@mansr.com> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org The BCM43430A1 has a default MAC address of AA:AA:AA:AA:AA:AA. Although, unlike some other entries, this does not include the chip name, it is clearly not a real address. This was found in AzureWave AW-NB197SM and AW-NM372SM modules. Signed-off-by: Mans Rullgard --- drivers/bluetooth/btbcm.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/bluetooth/btbcm.c b/drivers/bluetooth/btbcm.c index de2ea589aa49..0a5445ac5e1b 100644 --- a/drivers/bluetooth/btbcm.c +++ b/drivers/bluetooth/btbcm.c @@ -24,6 +24,7 @@ #define BDADDR_BCM20702A1 (&(bdaddr_t) {{0x00, 0x00, 0xa0, 0x02, 0x70, 0x20}}) #define BDADDR_BCM2076B1 (&(bdaddr_t) {{0x79, 0x56, 0x00, 0xa0, 0x76, 0x20}}) #define BDADDR_BCM43430A0 (&(bdaddr_t) {{0xac, 0x1f, 0x12, 0xa0, 0x43, 0x43}}) +#define BDADDR_BCM43430A1 (&(bdaddr_t) {{0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa}}) #define BDADDR_BCM4324B3 (&(bdaddr_t) {{0x00, 0x00, 0x00, 0xb3, 0x24, 0x43}}) #define BDADDR_BCM4330B1 (&(bdaddr_t) {{0x00, 0x00, 0x00, 0xb1, 0x30, 0x43}}) #define BDADDR_BCM4334B0 (&(bdaddr_t) {{0x00, 0x00, 0x00, 0xb0, 0x34, 0x43}}) @@ -115,6 +116,9 @@ int btbcm_check_bdaddr(struct hci_dev *hdev) * * The address 43:43:A0:12:1F:AC indicates a BCM43430A0 controller * with no configured address. + * + * The address AA:AA:AA:AA:AA:AA indicates a BCM43430A1 controller + * with no configured address. */ if (!bacmp(&bda->bdaddr, BDADDR_BCM20702A0) || !bacmp(&bda->bdaddr, BDADDR_BCM20702A1) || @@ -124,6 +128,7 @@ int btbcm_check_bdaddr(struct hci_dev *hdev) !bacmp(&bda->bdaddr, BDADDR_BCM4334B0) || !bacmp(&bda->bdaddr, BDADDR_BCM4345C5) || !bacmp(&bda->bdaddr, BDADDR_BCM43430A0) || + !bacmp(&bda->bdaddr, BDADDR_BCM43430A1) || !bacmp(&bda->bdaddr, BDADDR_BCM43341B)) { /* Try falling back to BDADDR EFI variable */ if (btbcm_set_bdaddr_from_efi(hdev) != 0) { -- 2.41.0