Received: by 2002:ab2:3c46:0:b0:1f5:f2ab:c469 with SMTP id x6csp244299lqf; Fri, 26 Apr 2024 05:45:36 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWQT+0zWX8zKwZ16wkexmlTOFp3XQDgIYL+L6fsFZX687v97c797T9qCh08ahg4Mv1vT5hl8uW/iRN2scKoz0M4CJnHQf7Gzqf+SV16qQ== X-Google-Smtp-Source: AGHT+IH30JkXPXUAeAh97+vkTau8PvTUwKRhA2CWsFEwI0kEXHC8wA9VmagU+MkdgWgDr9vJgilP X-Received: by 2002:a05:6a20:4c2f:b0:1a9:a32d:17cc with SMTP id fm47-20020a056a204c2f00b001a9a32d17ccmr2400037pzb.18.1714135536052; Fri, 26 Apr 2024 05:45:36 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714135536; cv=pass; d=google.com; s=arc-20160816; b=zzkq+86gU/PjPjoO9cVfa6Dvkp2sInson69IrP6nfXlw+xgH+it2iuHiSPvZUgfMtJ HgtVxhkomu1Ha8ac2TkjaDZaJi5GcrMDPYXcTwu92BfMzOz4uBGQBbMv2sL6hPo+Ussk rkdV3IbPmCbfc1ky2aYTQjKYkmBXZzGT//wnMOumhDmyweN9wXftvl7H8GFIz1CaYu5J rhJpeWw8DHM7M63rM4jg9xykeO3n86FZ1yZCI+firw/fbmgfyEqqFc0ItnaA8Cx7K2U0 W8fqk3cAQ9mqSNo+2lBkAqBSyVzv8UBiqohi5N0NcHleTgcenR+KyA9E42D+9UVdvOWO bwYg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=6lf6jof0tIq152bj9TJN+XkJ3roNnXlDBTW+xuT8VHU=; fh=7vjaIOSMuXio+4vXPaS/HyJz+qSF9HsfuUMDqsEJw00=; b=oBt3gkN5ZHhZTI8gRUVoE4T3xtcw1AwXS3uD27g/IGJP9zeynnAl+Z8FoLr9rRpWoV f1aMAT1KsgSj133lK1kppZ22BiB+BM1uJP1KxkOUhpF3RIzwEsTDqSPhYPSySbGKOP/W UhjkPOdVqnLwoVpE7tsKUh1QlcaT1FB7NIUUGEmZSnfttrU8nuceIypTELOKg3TdE8fe iPwAf7X8cl/qalyQkzTaGmxSSVU1BqbAriaKmEuB/r11RoIKemDAkwvw/0dD+piUQoTZ znnnVeUWoVA4da++quJXep0AAMfkHPbivMPAi/VlS5gh3r5yLp6U+O++RKjVR6AqvHLJ 3jkg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=CudDC94N; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-bluetooth+bounces-4108-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-4108-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id j62-20020a638b41000000b006003eff0049si8777500pge.680.2024.04.26.05.45.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Apr 2024 05:45:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth+bounces-4108-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=CudDC94N; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-bluetooth+bounces-4108-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-4108-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 507B32832D8 for ; Fri, 26 Apr 2024 12:45:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7F8AE146A99; Fri, 26 Apr 2024 12:45:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="CudDC94N" X-Original-To: linux-bluetooth@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D69C33715E; Fri, 26 Apr 2024 12:45:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714135525; cv=none; b=pxGtmTy2P1pUczBbjjp9tX7qEQ+8GIF/LnzJj1SkqcjaCtvgzdUVE699OukAVQV2gqDEiUxu7sTKtjpMi0PUyItZb1yfjnqEVBDn4XvxdzhSgAl5wNhjtIuEtHYOsnqm/6vAcrHlIrSiPrZFaxrD2mqE9ffwSlzK6foT9ilh+aE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714135525; c=relaxed/simple; bh=iS9C+v8odOTK6E1SnSMEn0Se9B5pqsQ8ixkLHQCB1Us=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=pl3Jw1ojQDNu422l6RD2bg8EYpX6M80YrS9xidR8WNBa4CGlsx+hfssy+/+2BKu116EHuD6HpV6Y4sJsmNwc3LXTkfiSDnSCiD1dRuC5gyDOHf+5R1OxzJJKmwW86oCwwZHzD+oAzwJtx9x3QT1u2GkA2V/cs1qxTnatpE9gdRU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=CudDC94N; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 57DBDC116B1; Fri, 26 Apr 2024 12:45:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1714135525; bh=iS9C+v8odOTK6E1SnSMEn0Se9B5pqsQ8ixkLHQCB1Us=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=CudDC94N4c2KaoET/lq+RGNVMilmMEq5P4LGB6ER77suK4XenFv/TTEiDhxj6A6JJ REdW4Mon161EvCE+B1s89JzFrI3i9VyOiZ8HDK1FrRqlEatJDJitnrDKUQTFk5DvvQ JdTI+GjWSNIIzKlcvMlINe9alDHMEt15g4MhGJUV1mYl1uzy92CdSpPsZFDRXAOJj2 eQhl7c4QuMYdT+j9fPdfkw3VuIt1V5DhrHQB0A4wyanA+O6yV9jAz0LGjMCJuX1K5a CdgdE807ARIZIqqlu2XmTFg5ZIjP2T/AGv+FibdkZghW6soY4IUsla/XXGWh8i3m2N 9PB83DntvrQFQ== Received: from johan by xi.lan with local (Exim 4.97.1) (envelope-from ) id 1s0KxC-000000005fQ-2hYf; Fri, 26 Apr 2024 14:45:26 +0200 Date: Fri, 26 Apr 2024 14:45:26 +0200 From: Johan Hovold To: Janaki Ramaiah Thota Cc: Doug Anderson , Johan Hovold , Marcel Holtmann , Luiz Augusto von Dentz , Matthias Kaehlcke , linux-bluetooth@vger.kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org, Stephen Boyd , quic_mohamull@quicinc.com, quic_hbandi@quicinc.com Subject: Re: [PATCH] Bluetooth: qca: fix invalid device address check Message-ID: References: <20240416091509.19995-1-johan+linaro@kernel.org> Precedence: bulk X-Mailing-List: linux-bluetooth@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: On Fri, Apr 26, 2024 at 04:12:07PM +0530, Janaki Ramaiah Thota wrote: > Please note BDA values listed below are in the firmware (FW) data > order, but the actual BDA value should be in the reverse of that order. Thanks for clarifying. I realised this when I looked at the hexdump for the Trogdor firmware. > On 4/26/2024 11:53 AM, Janaki Ramaiah Thota wrote: > > On 4/25/2024 9:28 PM, Johan Hovold wrote: > >>> --------------------------------------------------------- > >>> |   BDA            |      Chipset                       | > >>> --------------------------------------------------------- > >>> | 20 00 00 10 80 39  | WCN3988 with ROM Version 0x0200    | > >>> --------------------------------------------------------- > >>> | 00 08 74 12 80 39  |  WCN3988 with ROM Version 0x0201    | > >>> --------------------------------------------------------- > >>> | 00 07 64 21 90 39  |  WCN3990                    | > >>> --------------------------------------------------------- > >> > >> Thanks a lot for these. I see now that the default Trogdor address Doug > >> reported (39:98:00:00:5a:ad) appears to comes from the fw too: > >> > >>     $ od -x crnv32.bin | grep 5aad > >> > >>     0000020 0000 0000 5aad 0000 3998 0008 0008 0000 It seems the most significant bytes here indeed do reflect the hardware even if it's not entirely consistent: WCN3988 39:80 WCN3990 39:90 WCN3991 39:98 but I guess that doesn't help much unless also the remaining bytes on WCN3988 and WCN3990 can be inferred somehow. Johan