Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp2215213pxb; Fri, 25 Mar 2022 13:11:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwHC0DdM08fZT3vT52nTyzXn7hXcveXJez70wMLPOWEGIqcnbZ/53/R7RLMWCcMVZr046ik X-Received: by 2002:a65:6a4a:0:b0:380:fd52:1677 with SMTP id o10-20020a656a4a000000b00380fd521677mr946089pgu.597.1648239113179; Fri, 25 Mar 2022 13:11:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648239113; cv=none; d=google.com; s=arc-20160816; b=eFHtU1pAq9R8yWV+/SQGCeM+jZm76VqVpLT4jZsmIPOslVN772VAURzqqomdDvr1rC vC51Day+lY2RniavHK7XXPSeo1QhLApNAIZ9A/jqG0i5hKq50nNAg0E2FGIgdnleWTDc 4b49ElHaReyaeN3epzXNsrzO2u/10PTXXGi7c9t0iHsRyQC78YrGeta6kaeriDZnupNA Bro78JC23NeVEyRiDE3BmL9dFZ+1K5avqbnrgqUCSj/MjN7E5Ddt+IWD2OkX7vIN2gkK eXeo4gRwyOAFSOQpwfHEgmkMFbLIYRVC18CZQAwhrER/cEXsW2h1yFJg573gipMVGZyc Hvkg== 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=CIBF+VKXXbTu62z15iHe/OdCmMOTPVYFFAfurfOkS1A=; b=PW/+yTuSLorO0ZK5SZz67kKrdbTpIaYLLIkx209AveuD0TbhqtRLrBGLEqaoJkDOom TB4bpo37xSC/vqFJ9sBzvQme/MYFkJXMFaKcRerOQvUPbxWWcaWyBqbjiSxnIlaATvjb /I6L7w3VOYn/OBDkBq0GVtEG2mBKpMEkD0D8vwXjBnlFn15r08PoeBJrgfxyPzeB1BAi YvHvJsFm3NuGf+/dGg3TM0epDTxHWz8Pl8VSe2jw4hjyqWcuHOEhx1RA5VLnt7PNklPp SA0jxN8ktvkGYFHx7g1aX7SRMZGyVc0cf0AFBzTQ1l1OvibCMdgSnzf3J3M50Zmehm70 yYAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=kRGFSHEZ; 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 c14-20020a630d0e000000b00398068cc21bsi1892600pgl.0.2022.03.25.13.11.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Mar 2022 13:11:53 -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=kRGFSHEZ; 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 056E113E404; Fri, 25 Mar 2022 11:54:29 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347321AbiCYPcG (ORCPT + 99 others); Fri, 25 Mar 2022 11:32:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34440 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1378255AbiCYPZP (ORCPT ); Fri, 25 Mar 2022 11:25:15 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6247AECC72; Fri, 25 Mar 2022 08:20:08 -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 EE7616120E; Fri, 25 Mar 2022 15:20:07 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 008FEC340E9; Fri, 25 Mar 2022 15:20:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1648221607; bh=eJrW6Ukr9LCgkxmA3uxYDl3On3sy31wqlS+EnIVN4dg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=kRGFSHEZTO2T6znn1wkND2cY46NbH6jeYiQ/k6ulpPP37ChrINk7jDh2bjlSeuJyW v3byM1/DDCqoD2Zq89hxsmlP8gawOkncnvAW3450A8OIsXMeydkSxkb9F2dA/Cla3G XrL5NuqIlSN6imuY2C6cr6Ye/a2acAEmtD0yCYYE= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Bryan ODonoghue , Loic Poulain , Kalle Valo Subject: [PATCH 5.17 37/39] wcn36xx: Differentiate wcn3660 from wcn3620 Date: Fri, 25 Mar 2022 16:14:52 +0100 Message-Id: <20220325150421.305865415@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: Bryan O'Donoghue commit 98d504a82cc75840bec8e3c6ae0e4f411921962b upstream. The spread of capability between the three WiFi silicon parts wcn36xx supports is: wcn3620 - 802.11 a/b/g wcn3660 - 802.11 a/b/g/n wcn3680 - 802.11 a/b/g/n/ac We currently treat wcn3660 as wcn3620 thus limiting it to 2GHz channels. Fix this regression by ensuring we differentiate between all three parts. Fixes: 8490987bdb9a ("wcn36xx: Hook and identify RF_IRIS_WCN3680") Cc: stable@vger.kernel.org Signed-off-by: Bryan O'Donoghue Reviewed-by: Loic Poulain Signed-off-by: Kalle Valo Link: https://lore.kernel.org/r/20220125004046.4058284-1-bryan.odonoghue@linaro.org Signed-off-by: Greg Kroah-Hartman --- drivers/net/wireless/ath/wcn36xx/main.c | 3 +++ drivers/net/wireless/ath/wcn36xx/wcn36xx.h | 1 + 2 files changed, 4 insertions(+) --- a/drivers/net/wireless/ath/wcn36xx/main.c +++ b/drivers/net/wireless/ath/wcn36xx/main.c @@ -1513,6 +1513,9 @@ static int wcn36xx_platform_get_resource if (iris_node) { if (of_device_is_compatible(iris_node, "qcom,wcn3620")) wcn->rf_id = RF_IRIS_WCN3620; + if (of_device_is_compatible(iris_node, "qcom,wcn3660") || + of_device_is_compatible(iris_node, "qcom,wcn3660b")) + wcn->rf_id = RF_IRIS_WCN3660; if (of_device_is_compatible(iris_node, "qcom,wcn3680")) wcn->rf_id = RF_IRIS_WCN3680; of_node_put(iris_node); --- a/drivers/net/wireless/ath/wcn36xx/wcn36xx.h +++ b/drivers/net/wireless/ath/wcn36xx/wcn36xx.h @@ -97,6 +97,7 @@ enum wcn36xx_ampdu_state { #define RF_UNKNOWN 0x0000 #define RF_IRIS_WCN3620 0x3620 +#define RF_IRIS_WCN3660 0x3660 #define RF_IRIS_WCN3680 0x3680 static inline void buff_to_be(u32 *buf, size_t len)