Received: by 2002:a05:6359:322:b0:b3:69d0:12d8 with SMTP id ef34csp229144rwb; Wed, 10 Aug 2022 07:26:09 -0700 (PDT) X-Google-Smtp-Source: AA6agR4kDvIj2CoREINPBfbUqSsEnnFqZE0r/+EmzXUZIo/DEb8Yk7wUbOO/JGBxaRdR0OnSe9jk X-Received: by 2002:a17:902:e848:b0:16f:8f:9027 with SMTP id t8-20020a170902e84800b0016f008f9027mr28451062plg.66.1660141568792; Wed, 10 Aug 2022 07:26:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660141568; cv=none; d=google.com; s=arc-20160816; b=YG8FGB5pkbQsXzDMva3knmKDC/VtoC57TI51s6TBcp16qnFIlcCzTFFqcxvpXJOCZk pnY5dXBMQO4Ca0sMjFJPA80BHrLIKjvSKyVSinb0Q5nC3fF6tx4/VTOFQtjO0VAZzOxo qbSBYY8JP09Q/E0gbTm7SIAEWg5VDlkYlK4hgvfG+UB7sesJIyJdlB0QuUn4mK+DKQCo b2gdKsWNq+a5lD9i/YgK1hSPFmwXtKLvY73wbCVGaxYfPWLSQUznFBtv1pB0wQBeV2M8 dPe+s32wXJor/tfQ9tmkVCsMkeUthkNp/aY/sQ2QV7r3/Tf7HF3zOCnOiUybpMn9tGlE XS8w== 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:dkim-signature; bh=NN8mGs9CVjPhlyEkk12AePnxmaCw3LzKZ48WcNkXywM=; b=XYS8JsiEu/0oeJgdBCbvvRJDK/IVKogZuyOS5ePIHF8m3TJqZmXE7wElOBZ99iWU8c j6ZuKHzzN5/dJ0Pxkr9s3MLfBt2HFC3gM+4w4okKx5icInkMqeqv7DGoEuS3mJqNauX+ PYh7DYCaAGonGWN+cSQyKdcG7sqEhHkL9w4s6LAnq7ZHErjjKc+lyIRya2L6Tt3vELv2 8iujCCZtjPkMxO4j7EmnYT3aw2JtZ8CsPthIitZGIRx9hl1xHXT+Cx07ZOCdl0TeAVcx 0e0+LFVTggReyaWGNvix4w99z4qUXCj4qFipxndD8HZx5k4kHOC8rWTv5vLIdjHAUiwS umNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=WOctxfcI; 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=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d130-20020a636888000000b00419880b44a5si16054432pgc.773.2022.08.10.07.25.51; Wed, 10 Aug 2022 07:26:08 -0700 (PDT) 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=@redhat.com header.s=mimecast20190719 header.b=WOctxfcI; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232343AbiHJOXn (ORCPT + 65 others); Wed, 10 Aug 2022 10:23:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34236 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232272AbiHJOXl (ORCPT ); Wed, 10 Aug 2022 10:23:41 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id B852D12755 for ; Wed, 10 Aug 2022 07:23:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1660141418; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=NN8mGs9CVjPhlyEkk12AePnxmaCw3LzKZ48WcNkXywM=; b=WOctxfcIYYStSRVz5F+9IDuozEZPeSX8AgpGuGmXTGkaxrkjFuLCIUDIxMH7IzieqnUzfT 9UCWV22QMsMh/jAEcDhSSetlaZKh7gKsy2lk0/EMMxNo3iU6p6gK+gnqL/EQWRhGEgbUL+ p+EMWjlqroNFfU0oltwSKdFhQ8Bn38I= Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-659-sUTKTEecMFeMkzZ8_mfXKA-1; Wed, 10 Aug 2022 10:23:35 -0400 X-MC-Unique: sUTKTEecMFeMkzZ8_mfXKA-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.rdu2.redhat.com [10.11.54.2]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 8F8FA1C0BC67; Wed, 10 Aug 2022 14:23:30 +0000 (UTC) Received: from shalem.redhat.com (unknown [10.39.192.71]) by smtp.corp.redhat.com (Postfix) with ESMTP id 361AF40679C0; Wed, 10 Aug 2022 14:23:29 +0000 (UTC) From: Hans de Goede To: Arend van Spriel , Franky Lin , Hante Meuleman , Kalle Valo Cc: Hans de Goede , linux-wireless@vger.kernel.org, brcm80211-dev-list.pdl@broadcom.com, SHA-cyfmac-dev-list@infineon.com Subject: [PATCH] brcmfmac: Use ISO3166 country code and rev 0 as fallback on 43430 Date: Wed, 10 Aug 2022 16:23:28 +0200 Message-Id: <20220810142328.141030-1-hdegoede@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.84 on 10.11.54.2 X-Spam-Status: No, score=-3.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_NONE,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-wireless@vger.kernel.org Many devices ship with a nvram ccode value of X2/XT/XU/XV/ALL which are all special world-wide compatibility ccode-s. Most of these world-wide ccode-s allow passive scan mode only for 2.4GHz channels 12-14, only enabling them when an AP is seen on them. Since linux-firmware has moved to the new cyfmac43430-sdio.bin + cyfmac43430-sdio.clm_blob firmware files this no longer works and 43430 devices using e.g. an X2 ccode fail to connect to an AP on channel 13. Add the 43430 chip-id to the list of chips for which to use the ISO3166 country code + rev 0 as fallback in brcmf_translate_country_code() to fix this. Signed-off-by: Hans de Goede --- drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c index 605206abe424..5fe075fc22af 100644 --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c @@ -7480,6 +7480,7 @@ int brcmf_cfg80211_wait_vif_event(struct brcmf_cfg80211_info *cfg, static bool brmcf_use_iso3166_ccode_fallback(struct brcmf_pub *drvr) { switch (drvr->bus_if->chip) { + case BRCM_CC_43430_CHIP_ID: case BRCM_CC_4345_CHIP_ID: case BRCM_CC_43602_CHIP_ID: return true; -- 2.37.1