Received: by 2002:a05:7208:b08c:b0:82:bbfa:f723 with SMTP id c12csp391803rbb; Fri, 26 Apr 2024 07:15:56 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWjC0oqhpGJJ9kyGLSBJx5DvG015cy52EJ60L76LDGjQa73YKvRri4QOflAFGjKc6dJK7lXPhmF/SFI3p1gkkgywNq4P68kbIGR+Djhxg== X-Google-Smtp-Source: AGHT+IHaSI2BGp9dZnWTefaOZAs6X0AkcB7+aRrE1tDhkvCYFMl/g3VHZTULF3OOK9iHpqzFPqoH X-Received: by 2002:ac8:5a54:0:b0:437:b995:98b5 with SMTP id o20-20020ac85a54000000b00437b99598b5mr3274285qta.57.1714140956607; Fri, 26 Apr 2024 07:15:56 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714140956; cv=pass; d=google.com; s=arc-20160816; b=0+joFfTTc2BKz3OK0i57ARq3UwnLSE3TP31cjeED4WQdm/INIA3TSSTN1VFZIGlXlC CRKstcA6V/fgaSnIS7k08rS4P4n1SvnrInpiZzettLSWE6/GOFg8iUadOCqA8JK8mq1G 25fa6Fsi4nqMysq6RcEd6cm5Pz5ceFaSq+livhE83Xs2bnoD0xb3jQ6nLLgcCC3goo45 eHsmIFt95vFKnLx1JG1tJ+YZ2W2wpIzIZSOCJePXNopsn48g9noes7oGWcexhRjwySqm hMc6gLCbMXeW2w6v79H8YG4W/I7+Pzo5rH7dCeDu0FOXXPuwxbAqE1zBI52Kx4jO8Zk7 tJTA== 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=vHwphVY9R9gHlIczykudcfQXMFvgMLjNLlypjlDkYr8=; fh=7vjaIOSMuXio+4vXPaS/HyJz+qSF9HsfuUMDqsEJw00=; b=nKDPXxH69v9+XuLoaxqeX3ts/j7uZ38HtcoCpthvlGsBemes8Fha4X03b90m8HXpuP CMfvbIedo5KhSRIDmXud17SRW3vl6e6+kwg1kFbxtwnz1YQ6ho9iJcSlsuBNQnaP5zts +scbW3rkZV+bGCtpExSXfCVgWPf8q9AqvsfGMK7DuWsrEOdVSiwoyBWgQZcsCfPvxz2F M68D36GIsKYF7fjmVhNwguJhn9BN/IqcDOyxwKJQH4iaX77l3VfzugxLTdonBIHpWcRO 0EaxZIOZV08FbXRjGcuh0MWpwqvUhxpf5io0SNmzYHCWKC0SYwIFs4eqDP/lD65VvKzS 3dgg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=UHUkCn0q; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-bluetooth+bounces-4112-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-4112-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id bp7-20020a05622a1b8700b00434ebb4a080si20238525qtb.681.2024.04.26.07.15.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Apr 2024 07:15:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth+bounces-4112-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=UHUkCn0q; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-bluetooth+bounces-4112-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-4112-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 42CAC1C23C37 for ; Fri, 26 Apr 2024 14:15:56 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4E003148825; Fri, 26 Apr 2024 14:15:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="UHUkCn0q" 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 A14D9147C71; Fri, 26 Apr 2024 14:15:46 +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=1714140946; cv=none; b=fqG458mK9G+3IPTxUwO24yPkZQCUwamE4wkLx+RIJH1uQ5aCOwnB2eZ/bWU48eEk04oJoD2Gtzs0tgQn6kIdmeHRtAzEQZMCnCvL+2r1I6O1+wREmJjSGahRoYNOAhq2Mhv+sm53cZ6MXMA/SnMxdtBJOtCpsBIJaDlZ8rPU4sw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714140946; c=relaxed/simple; bh=vHwphVY9R9gHlIczykudcfQXMFvgMLjNLlypjlDkYr8=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=o2505pwVWq5lbnpvYy8ohZcEfwzL7mpAaOwSsXO+O+COSFERN9ofM4vLOiV0q5/YXhthHbshKahaPS+JXp146GdPH4tTb5ZcSjinxCOH5dlCdok6wkcggeRSRYXeoqzyphZkxeVlyT1hWqVjsslKctpfNpsHFLNZZXrchnISh2k= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=UHUkCn0q; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 205F0C113CD; Fri, 26 Apr 2024 14:15:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1714140946; bh=vHwphVY9R9gHlIczykudcfQXMFvgMLjNLlypjlDkYr8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=UHUkCn0qyWJvHy+b7VEzxtGK24ZAHQXSQVCdjJjHLa49do+gq25/eEm8lIEU1RftA nAOFlO31R0WT84k40Y+h6vFRtpAgLPLOv63f5jFWsGVghsSez5S3AI4SmnQo5cO4e/ SRBbrohz8KKfxMzHGrShkMS0hd5oaltGy65qbRjVi6DwDJdQ8hEFWk5vXLUQIafPzq Zo3hIplTpEbLhrRC1LcIJ6eSwuDkWrFW+ZTXFRImHtwkIsfurYEOx0XfA+YjwrF254 lNBco8R2/eIzneVbtMr1W0yEoJkf3RfWWsktcESGZo7Uk8dnyNbcMB3+b3Dk8B+LP9 lN3XzObktbUuw== Received: from johan by xi.lan with local (Exim 4.97.1) (envelope-from ) id 1s0MMd-000000000Rx-2Fzy; Fri, 26 Apr 2024 16:15:47 +0200 Date: Fri, 26 Apr 2024 16:15:47 +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 02:45:26PM +0200, Johan Hovold wrote: > On Fri, Apr 26, 2024 at 04:12:07PM +0530, Janaki Ramaiah Thota wrote: > > 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 I took a closer look at the configuration file format and it seems we can just fetch the default address from the file. The driver is already parsing it so this should be straight forward. I'll cook up a patch. Johan