Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp2130105pxb; Fri, 25 Mar 2022 11:36:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxjDqEdXCYGPnuok3djG0SpqQm79JQ7riD7O+FEKMcxbG75pJ4mVPgqypOx1zgJ2k0yq3uC X-Received: by 2002:a17:90b:1bc7:b0:1c6:c3ac:894a with SMTP id oa7-20020a17090b1bc700b001c6c3ac894amr14166260pjb.125.1648233415988; Fri, 25 Mar 2022 11:36:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648233415; cv=none; d=google.com; s=arc-20160816; b=RCg+WqEDwCrtZHgR9hH510lOQce/AYpj7stJ1///brbDsGgnxfHmtJwzBzE+gMJV85 mpbN0VF3JGOQrL2YA5DBz6AE3tTx+mkbYASNKc/HHA++kGKTY69wIrkmCpqj1+oHiBqf uT0rneOPQ1zy8YlGhoyGwLlCjEJCFjfST4RzaUEaMj2jjK4aUq+J+zvbK8Wjd4vk6iNt GTZfoRRTKJErlRoodBflX7IoU3todrocKGDoWtK1ugD7qz46qOBjvpzBIAYidWbX027j zHGyqgIGPW7WY+1dMWctp0a4XZlt0qvhp3dGA30L4QdFVy6H1AUizvMLdXwNkalRBLsr cV4Q== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=9GB2reD0JsC7lgb6n6v7MorWQktSHfCtlY7/W5jJVu8=; b=PY9sT7a1obeWdKfsqWkpUBiums0vwGE5YVsQJuE1RA1hVR69Wz7zgR1Ok5WBdSi3cF cUNykSXKSezG3C3OGPSkFpyA+J8SwaheMYieUJmVE+d0BHpLh/ZmDL68do/+c1ELWyO6 PKCR5wheht8S9NQ8BNhXz9/fpqG12vU3VoGVaLyHNLRVxiigzeAsdXR3fkfDP8vpXldX gK/+bgfu/QnQfZMzl3fgVtGZYWPuDZkwcHpHhNuLc+vri98QCVkREtbGHRT4aVb68Arr oVpjhWDahlbrA3fnWEIufEXDU+ANHWwdyBNf7eAZ8YLvkB4IJvr34a9ebjOKB/43PBYA v8Zw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=DYp6NkZo; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id 60-20020a17090a0fc200b001bd14e01fb4si6184887pjz.162.2022.03.25.11.36.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Mar 2022 11:36:55 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=DYp6NkZo; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 62B0D198EC7; Fri, 25 Mar 2022 10:57:50 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1376685AbiCYPau (ORCPT + 99 others); Fri, 25 Mar 2022 11:30:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33106 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1377946AbiCYPYo (ORCPT ); Fri, 25 Mar 2022 11:24:44 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5199DEAC9A; Fri, 25 Mar 2022 08:19:24 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id D504C60AB7; Fri, 25 Mar 2022 15:19:23 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E42E1C340F3; Fri, 25 Mar 2022 15:19:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1648221563; bh=bYSefRWEQBGZ6V7g4qvKgTV4xvV30nsyFbO/KZhTytQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=DYp6NkZokdbBVQ0YmeKOGGnH7TAEXPD+Eo+81yIDNCbdatWrRgrkOxxRl/tX1Ex2o souPQZ9a2C1uuFNw4Wwly53buuz2BVzhVS6bdrSp9vibrBmS8oR+yvp/36g4Hi7iyE evViiKw5w6Eb5JEUXBc4t9o0L76aGMcs1HYVn+bA= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Wen Gong , Brian Norris , Kalle Valo Subject: [PATCH 5.17 29/39] Revert "ath: add support for special 0x0 regulatory domain" Date: Fri, 25 Mar 2022 16:14:44 +0100 Message-Id: <20220325150421.076310835@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220325150420.245733653@linuxfoundation.org> References: <20220325150420.245733653@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE 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 From: Brian Norris commit 1ec7ed5163c70a0d040150d2279f932c7e7c143f upstream. This reverts commit 2dc016599cfa9672a147528ca26d70c3654a5423. Users are reporting regressions in regulatory domain detection and channel availability. The problem this was trying to resolve was fixed in firmware anyway: QCA6174 hw3.0: sdio-4.4.1: add firmware.bin_WLAN.RMH.4.4.1-00042 https://github.com/kvalo/ath10k-firmware/commit/4d382787f0efa77dba40394e0bc604f8eff82552 Link: https://bbs.archlinux.org/viewtopic.php?id=254535 Link: http://lists.infradead.org/pipermail/ath10k/2020-April/014871.html Link: http://lists.infradead.org/pipermail/ath10k/2020-May/015152.html Link: https://lore.kernel.org/all/1c160dfb-6ccc-b4d6-76f6-4364e0adb6dd@reox.at/ Fixes: 2dc016599cfa ("ath: add support for special 0x0 regulatory domain") Cc: Cc: Wen Gong Signed-off-by: Brian Norris Signed-off-by: Kalle Valo Link: https://lore.kernel.org/r/20200527165718.129307-1-briannorris@chromium.org Signed-off-by: Greg Kroah-Hartman --- drivers/net/wireless/ath/regd.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) --- a/drivers/net/wireless/ath/regd.c +++ b/drivers/net/wireless/ath/regd.c @@ -667,14 +667,14 @@ ath_regd_init_wiphy(struct ath_regulator /* * Some users have reported their EEPROM programmed with - * 0x8000 or 0x0 set, this is not a supported regulatory - * domain but since we have more than one user with it we - * need a solution for them. We default to 0x64, which is - * the default Atheros world regulatory domain. + * 0x8000 set, this is not a supported regulatory domain + * but since we have more than one user with it we need + * a solution for them. We default to 0x64, which is the + * default Atheros world regulatory domain. */ static void ath_regd_sanitize(struct ath_regulatory *reg) { - if (reg->current_rd != COUNTRY_ERD_FLAG && reg->current_rd != 0) + if (reg->current_rd != COUNTRY_ERD_FLAG) return; printk(KERN_DEBUG "ath: EEPROM regdomain sanitized\n"); reg->current_rd = 0x64;