Received: by 2002:a05:6a10:5594:0:0:0:0 with SMTP id ee20csp614165pxb; Mon, 25 Apr 2022 18:15:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxX4RmbepvBt0k/CKeQeW1TwkP5tlrSauJxrNrmm7q4vWfihI9X4J77K1ggJomdv/Ql+Dqq X-Received: by 2002:a05:6402:2804:b0:420:caf1:961c with SMTP id h4-20020a056402280400b00420caf1961cmr22240246ede.280.1650935709323; Mon, 25 Apr 2022 18:15:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650935709; cv=none; d=google.com; s=arc-20160816; b=np+UXZlKVlpOHO3hiIzpRtVUk6GpATVfU/A17njIVzLEv6h0+wSoY/0kg8YPRYHgD/ kaI+vxx3I+1xSc4hEStPBrOeeEqlJN3n01+57y37Wcy5f59Wpi7xaWc8VTtA1E9OjIzZ Y5Vrz8J8N0Nxqmqzfqw4HeyaCQ387FlPb+wRqIDIXbaLQRSC3o8Jm20jeiFrNUZ1NiG4 0ngdZVtqrxsudCNuwokEz5PEUcJHK2RNIjge0K76sMQYqMLPUQRn7ukNIUKcbYwNqDTD LxtxbcVNrmEwuhK0zsemUIIA55SHfHYdh3u7E8iVPLKGzOvwlhG5zwYxrsBANu2DhVgh EGWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=yaCTjN5CZzui2ztqLkxvGGCYTFHIuiGBpbp3r9GpozM=; b=js8OeV3bbzhS13E45etdoka1PSApZ1NRiQeG2hcZfPR11id8ZDkFD+5Z/p5O9T4Ppz QZ9O/tlsc0eBm0zcxbOObmFruDDY0LT7hZp3hCV81sRSyw+yMQzlBAH6rgavX8SEXtNG o4ydAe7SFuVvkoZVZz/4HClvzjrQv7clVDLnNgKSX9+4wFk7ySPDGQDv778XtxlHgvCM /ANQ5bXLZGrsWAxNKQmZ+p4xbLNpKxS+krQCtMT1/I4pL/1+2KlXSJvaX/vAOdQesCl+ xZHjX8ICqYAkxgeUY9cmjktCmQyXp5qq80ebsgAgJzVvojpFYvaHUcDZ9zehR+3AAaSQ JFUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=L4K++dPQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id yk20-20020a17090770d400b006df76385f24si2726943ejb.964.2022.04.25.18.14.41; Mon, 25 Apr 2022 18:15:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=@chromium.org header.s=google header.b=L4K++dPQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244712AbiDYS5X (ORCPT + 99 others); Mon, 25 Apr 2022 14:57:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51272 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237656AbiDYS5V (ORCPT ); Mon, 25 Apr 2022 14:57:21 -0400 Received: from mail-ot1-x329.google.com (mail-ot1-x329.google.com [IPv6:2607:f8b0:4864:20::329]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7399DC6F18 for ; Mon, 25 Apr 2022 11:54:14 -0700 (PDT) Received: by mail-ot1-x329.google.com with SMTP id v12-20020a9d7d0c000000b006054b51c3d4so11416105otn.8 for ; Mon, 25 Apr 2022 11:54:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=yaCTjN5CZzui2ztqLkxvGGCYTFHIuiGBpbp3r9GpozM=; b=L4K++dPQRP+MDKtfMHchKPwefz1Mk5XkaIVfDC5UgwCSxVRbl8+VCMBFGhXXyigOFF b3Yjvi2VpRRnsVtMX32hY+SiEuIvgLnKyn3k6xyGLFzJyTeFX6czxPd7GO/CIEhhooCJ ulZXlRslJqczsGJMoOIXoEVfXD2T7C4ylx0vQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=yaCTjN5CZzui2ztqLkxvGGCYTFHIuiGBpbp3r9GpozM=; b=uzcazXbkhFK+kjz4ELCSFwH43BhUt1yPNF1cqlazsik28npndmfgBK3NP7UVnXK7Ir 169np3FzQUiXZBAs1MqCEADNEcGHn2iC6bU2KZUWp0Wl5BHFm5niq2BtJnbZf/hX45SG WQ2u/ze4xMs+0RnerbRP8tSW0Fv4SBYntRLhyz+SRAKQW5y78HzyvYdo1rfUWEdUPm3R Z5i7ykyP+8pMlPiJhF2IUnHxedeJdEc1RAwApME1+T879Xv+G+FfSs3V0bhX3TCPJyTW ftzOZKpkAz+AoVmsqe2IEFIyRnBCd75aGNMbh8y7G3Fm5USZrgjMhIwglv39AhlOfYDC Y/6A== X-Gm-Message-State: AOAM533lP5Q2WHJua01IWUzU2Mf+xfddOV3a3839S1/F+Jb8pdhnciu4 znmMUgAxSlTT3wWrVAm4UEnSQBaIGP8nMw== X-Received: by 2002:a9d:6ac7:0:b0:605:a666:5c06 with SMTP id m7-20020a9d6ac7000000b00605a6665c06mr3128800otq.15.1650912853066; Mon, 25 Apr 2022 11:54:13 -0700 (PDT) Received: from mail-oa1-f45.google.com (mail-oa1-f45.google.com. [209.85.160.45]) by smtp.gmail.com with ESMTPSA id e22-20020a9d5616000000b005ceb68be2f6sm4120316oti.63.2022.04.25.11.54.11 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 25 Apr 2022 11:54:12 -0700 (PDT) Received: by mail-oa1-f45.google.com with SMTP id 586e51a60fabf-d39f741ba0so17022227fac.13 for ; Mon, 25 Apr 2022 11:54:11 -0700 (PDT) X-Received: by 2002:a05:6870:4201:b0:e6:47c4:e104 with SMTP id u1-20020a056870420100b000e647c4e104mr11422188oac.257.1650912851468; Mon, 25 Apr 2022 11:54:11 -0700 (PDT) MIME-Version: 1.0 References: <20200527165718.129307-1-briannorris@chromium.org> In-Reply-To: From: Brian Norris Date: Mon, 25 Apr 2022 11:54:00 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] Revert "ath: add support for special 0x0 regulatory domain" To: Patrick Steinhardt Cc: ath10k , linux-wireless , Linux Kernel , stable Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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-kernel@vger.kernel.org Hi Patrick, On Sat, Apr 23, 2022 at 3:52 AM Patrick Steinhardt wrote: > This revert is in fact causing problems on my machine. I have a QCA9984, > which exports two network interfaces. While I was able to still use one > of both NICs for 2.4GHz, I couldn't really use the other card to set up > a 5GHz AP anymore because all frequencies were restricted. This has > started with v5.17.1, to which this revert was backported. > > Reverting this patch again fixes the issue on my system. So it seems > like there still are cards out there in the wild which have a value of > 0x0 as their regulatory domain. > > Quoting from your other mail: > > > My understanding was that no QCA modules *should* be shipped with a > > value of 0 in this field. The instance I'm aware of was more or less a > > manufacturing error I think, and we got Qualcomm to patch it over in > > software. > > This sounds like the issue should've already been fixed in firmware, > right? See the original patch: https://git.kernel.org/linus/2dc016599cfa9672a147528ca26d70c3654a5423 "Tested with QCA6174 SDIO with firmware WLAN.RMH.4.4.1-00029." That patch was only tested for QCA6174 SDIO, and the 6174 firmware has since been updated. So none of that really applies to QCA9984. I suppose your device was also not working before v5.6 either, and IIUC, according to Qualcomm your hardware is a manufacturing error (i.e., invalid country code). I don't know what to tell you exactly, other than that the original patch was wrong/unnecessary (and broke various existing systems) so it should be reverted. I'm not quite sure how to fix the variety of hardware out there (like yours) that may be using non-conforming EEPROM settings. It would seem to me that we might need some more targeted way of addressing broken hardware, rather than changing this particular default workaround. I'm honestly not that familiar with this Qualcomm regulatory stuff though, so my main contribution was just to suggest reverting (i.e., don't break what used to work); I'm not as savvy on providing alternative "fixes" for you. (That said: I *think* what's happening is that in the absence of a proper EEPROM code, ath drivers fall back to a default=US country code, and without further information to know you're compliant, regulatory rules disallow initiating radiation (such as, an AP) on 5GHz.) > I've added the relevant dmesg > snippets though in case I'm mistaken: With what kernel? That looks like pre-v5.17.1. The "broken" (post-5.17.1) logs might be a bit more informative. Sorry, Brian