Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp2199974pxb; Fri, 25 Mar 2022 12:55:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw9yA/9mR6GE1pCfnHjTUu65Nlz9sYE4zi3DZWTh8Vymj7QUn5EYYAakJEPyropCjPUt+yl X-Received: by 2002:a17:902:c745:b0:151:e8fa:629b with SMTP id q5-20020a170902c74500b00151e8fa629bmr13614201plq.90.1648238105370; Fri, 25 Mar 2022 12:55:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648238105; cv=none; d=google.com; s=arc-20160816; b=M0u1SxIGZmcxTGjOSu5K7nrevUpN8CDlapac99PrhHh3dun4s4IkKPogtQ7iaZGYfi hfXeRlI5oOQ9ajITB/rReddK7yrdYT6P5Wz600QIKOS8UTkZvLH7XsD17ui8y4UZzcmK mXDHIgNHBa6jlmrlq6nVF+yl2llkXp894IQbqU/cQWqITw5Qfr3PQs/YY3dbanFozFOL XEk8bvwMSKglYEsRNxCvN50FIqEljiY2esnQpVz5Uef+GuXqr1hSCKss6j+JU7i5ScWw onmGV3TvJI4tkIYGbDzonrIRLy+kvpYiDhD5MaN9klLjxgYCQeOBDE/EgnwomxIlRPjR uiVA== 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=K8/7fZGYuBSMBc0aPBCb7xMHsp0DWyQleFfJfH25afA=; b=IrSCqX4mmT2elAD9kJAz4ldp08R6pJaNNKe368SkUOXOo3OgI4M3ECF4FdHi88jAbw 7wNYDCjYdycqRESoBKJ7cIRDvpmLllQyDS0ToaCyGv6cMtCFs8BXSkmOMEuGt84TVZ86 BWQGBiP5o85f3Lb2sozq4Hk69JhlDTrVnNzQAef6iZlW69x26e+2tsIAfz6n49RlAG6o ehFF4eLafswiodpQ2GzmPuMjzrmr+82CcVxRxFZQ3sbD0EYgdkiCYV6Ka9LYZEbWEQFL bnN7bHi1A3xgzR0z3xbsMvf5hDdlM36KJZg4rdxy8a7wyGAovEClsQq+DuTe+6UGLW2S iXLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=f6A1EMKL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id w14-20020a17090a528e00b001bf0d8e98d1si6435783pjh.89.2022.03.25.12.55.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Mar 2022 12:55:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=f6A1EMKL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 517D82E8CFA; Fri, 25 Mar 2022 11:44:05 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1378685AbiCYPfa (ORCPT + 99 others); Fri, 25 Mar 2022 11:35:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54200 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1377360AbiCYPYG (ORCPT ); Fri, 25 Mar 2022 11:24:06 -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 F27EBE6C6E; Fri, 25 Mar 2022 08:17:50 -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 86FED60A1B; Fri, 25 Mar 2022 15:17:50 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 98D9AC340E9; Fri, 25 Mar 2022 15:17:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1648221470; bh=FQ1u8yPWxi0An71a6D9PM9mhOZjP8Swoix1nujNZoeM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=f6A1EMKL4SC0vSZNZ0Zx+FdLUEAvDGmz63t2WswyISON5sW8V6BhfPnu7mqc0k2G6 3yalkomspoPPXb1fnMV/PmAWcx0w52a2TNjpigXEUUZmXRWX/4y0yo6nTtRDo1z+ki 0RMVj4IBtm80VbM6FHLR/cq118ACLbm8xm973V/s= 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.16 35/37] wcn36xx: Differentiate wcn3660 from wcn3620 Date: Fri, 25 Mar 2022 16:14:45 +0100 Message-Id: <20220325150421.050879289@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220325150420.046488912@linuxfoundation.org> References: <20220325150420.046488912@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 @@ -1483,6 +1483,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)