Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp8957809rwb; Thu, 24 Nov 2022 06:24:03 -0800 (PST) X-Google-Smtp-Source: AA0mqf5pI1gSOpD5jm5okt2neBmS6OKBOTlXcKbudsBQ2/CEYx5jVLZlYxDGxmuhpzLszeyaCP+8 X-Received: by 2002:a05:6a00:4c11:b0:56d:93d8:d81a with SMTP id ea17-20020a056a004c1100b0056d93d8d81amr14273218pfb.14.1669299842848; Thu, 24 Nov 2022 06:24:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669299842; cv=none; d=google.com; s=arc-20160816; b=w2AX/XSrLVN6dc7BYTBhFdmmaXltqf6Fs+A2LdFYIm7Qw/gmvKHZlVFxDNrcvC93Ot rJRphpDvPSOvAfVRhwglzqInVJLfggThF1QG0y2nZnTeqBOI9ANPHscK/4Dog5MI+itj Qna7X+DG5XOvbj7hq36kNxX9BNT6SOC5IQxPDHKNlMafCBsaDxYCvd5AsuPRyxhi9XVs pNg9277g0tFYw+lZdjolTjd1WO0QQV1QEmUGwth3Gumjz5A5xhgc+o+vvqy/3dYKW2u6 EQ1P0ilLfR9ZuC4lH2nhwljCa8I2fz4wtwz1nRKd9vMfYAyYdweJLRsK3esbQhjXLU4f 76ew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature:dkim-filter; bh=cxfMRPxWcAxN73xwfIHrIRA2Qfatt3E1/NO++GVfQ94=; b=MkU4VZFiHM1Pwir237ikRCWor4KhnbMYx9qVD9JJLbZtWw9Bfuu5vdg6UUAMi/P26g bqJkS0yez8UNMnjeyKtbz3hO51/4BtXi+fb6pL1peIsOHdDcKF0FQrQD5Zc4uZk1mnTH vWeET6tWJ8+NRG2xB0CwumDpaQfVXmLwD5E8LAE8ScH+7DsBc6s6EjaN1xIaRp++yFds gr4TZ/V7SnZiosT89OOnLheZDmW3sF8ChZ8xNSMGQG6jwj0Um8gJIYxZNmxY4xtO1GNB FKBD42dRxjQQ7FVFXdoRwetoSEv6z+caShfT0w9hoCxHnusDZmSbOYrH6hjMey6ZxoNO LJyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@warmcat.com header.s=default header.b=jnJAmYWq; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=warmcat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 3-20020a630403000000b00477cfa47174si1532392pge.180.2022.11.24.06.23.54; Thu, 24 Nov 2022 06:24:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless-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; dkim=pass header.i=@warmcat.com header.s=default header.b=jnJAmYWq; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=warmcat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230378AbiKXOSX (ORCPT + 67 others); Thu, 24 Nov 2022 09:18:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47362 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230405AbiKXORs (ORCPT ); Thu, 24 Nov 2022 09:17:48 -0500 Received: from mog.warmcat.com (mog.warmcat.com [178.170.10.5]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id A7D4D12A4D3 for ; Thu, 24 Nov 2022 06:16:53 -0800 (PST) Received: from mx.warmcat.com (host31-53-12-215.range31-53.btcentralplus.com [31.53.12.215]) by mog.warmcat.com (Postfix) with ESMTPSA id 2D8AE13562B; Thu, 24 Nov 2022 14:16:52 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 mog.warmcat.com 2D8AE13562B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=warmcat.com; s=default; t=1669299412; bh=cxfMRPxWcAxN73xwfIHrIRA2Qfatt3E1/NO++GVfQ94=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=jnJAmYWq1tLJn8htM+gnfcRLweHwS9aY1FGDfGhoPefmf23XlMXcFXW45jXrvf7vT bATOttvmfGnLXoXP7dYHgM/W9omWeuV6e+HKloL0zQ2LKGumZcDZKqEAjr+8VkJCNR qtTXmxq6zlO//tDjY0t22MZOVNUapEUHyndVNEPk= Received: from [192.168.4.115] (unknown [192.168.4.115]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (Client did not present a certificate) by mx.warmcat.com (Postfix) with ESMTPSA id 995F12A00C0; Thu, 24 Nov 2022 14:16:51 +0000 (GMT) Message-ID: <3448c815-f077-dcfe-9eaa-10ae9be2a8df@warmcat.com> Date: Thu, 24 Nov 2022 14:16:49 +0000 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.1 Subject: Re: AP6275 / bcm43752 pcie on mainline brcmf Content-Language: en-US To: Arend van Spriel , Shengyu Qu Cc: franky.lin@broadcom.com, linux-wireless@vger.kernel.org References: <18470a1e910.279b.9b12b7fc0a3841636cfb5e919b41b954@broadcom.com> <184720fc920.279b.9b12b7fc0a3841636cfb5e919b41b954@broadcom.com> <625f1d5d-e137-7ad7-96b9-92035e87df8b@broadcom.com> <638afa8e-a393-410c-3182-0d8e9b6da17d@warmcat.com> <1848793db88.279b.9b12b7fc0a3841636cfb5e919b41b954@broadcom.com> <3a562a50-0cef-4879-3691-3258596f5213@warmcat.com> <1cbb3bf5-fd70-e9db-2405-640178862857@broadcom.com> <6c3f592e-3e20-edef-ce7a-cde8988eef2d@warmcat.com> <9fe8caec-453a-28c1-04d3-5966200b8db1@broadcom.com> <56fbcc03-b5dc-34b2-f15a-13c46447ffa0@broadcom.com> <41158f1f-b281-8d77-c5f3-f67adb0b2fde@broadcom.com> From: Andy Green In-Reply-To: <41158f1f-b281-8d77-c5f3-f67adb0b2fde@broadcom.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,SPF_HELO_NONE, SPF_PASS 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-wireless@vger.kernel.org On 11/24/22 13:47, Arend van Spriel wrote: > On 11/24/2022 1:54 PM, Andy Green wrote: >> [   17.202348] brcmfmac: brcmf_escan_prep ### List of SSIDs to scan ### 1 >> [   17.202350] brcmfmac: brcmf_escan_prep 0: Broadcast scan >> [   17.202352] brcmfmac: brcmf_fil_iovar_data_set ifidx=0, name=escan, >> len=180 >> [   17.204223] brcmfmac: brcmf_fil_cmd_data Firmware error: >> BCME_VERSION (-37) >> root@inmusic-az04-mpc:~# [   44.202645] ieee80211 phy0: >> brcmf_run_escan: error (-52) >> [   44.202649] ieee80211 phy0: brcmf_cfg80211_scan: scan error (-52) > > The root cause is easy. Basically the brcmfmac driver is not on par with > the firmware. brcmfmac uses escan api version 1 and firmware expects > version 2. Fixing it is going to be more difficult. Things start to It seems so. > diverge on firmware API level. I already had a patch on the shelf > supporting version 2, but it does not match the API your firmware expects. > > I was working on supporting multiple vendors, but I need some rework. > The scanning issue confirms the need for per-vendor support. Hopefully I > can spend some time on it. If it makes sense for you, I'm willing take a look at your alpha patch with the idea to align with what the OOT driver does for scan, but I'm not sure how intricate wading in there is going to get. I'd need at least some guidance about how to detect which api stack it wants dynamically if there's more than one "version 2" and likely some hand-holding about firmware or soc-specific things in places. -Andy