Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp5321556pxb; Mon, 28 Mar 2022 10:54:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyBuCs1rtQ05QlBF4jokZ1ZtQOVjhfk5vrf5PnpGsFh2a3QaKkeArz4O/ov3SOgoINRQwDv X-Received: by 2002:a17:906:af6b:b0:6df:83a9:67db with SMTP id os11-20020a170906af6b00b006df83a967dbmr29568815ejb.222.1648490042437; Mon, 28 Mar 2022 10:54:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648490042; cv=none; d=google.com; s=arc-20160816; b=OhuxB7D6cbJM1DfOKde6kOCcT8hwL7Ady9k0Qf17ePp+XAKcLllzueunY9GJlSqv78 DqrasBObrqV5r5g/x3PstwsH1tpNPZEreH2z+2l5GMVWKYHJaM0UVoWclaw/xqMVDjZ/ 8umRMxOYkHrN26kzpG0pU5v53VzkpGeV0zS3XRzumuoOZ3b8rSOUCZMLWXqSppo2RHI6 56DCnXicGEaW3fg3DZhmZOhE+gfWJfX7+OMWZq1zrV89EBw1pQbViwYJK5T2viuwAs3s YQUp7ooxNzGsVT+tgAd7fG3kcufbv2ywPr90LrPWyI6iN8odgmOsO+qSsJS5Xgtal852 KKZA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=3UfOAs3TkTQChKmeOaobtliZsrFHAKOmPnwrvKnlnE8=; b=V45vBUOn/NQYYd/g4rDBuMjxSPyQJdjbj7D72B9jhOIaTFlnVhuYIJfE8L6/OLoOo5 YQPQi5IVFF7B5N3Dll8X9WRiXoEQlfW+a4xWKT8z7ae/wJ4hFSB7POV79ugl+/02UJ8C rXdaMNVer6teCyZEj8qzZhud8p6eOBpHnYaXZ2NjVH5gGSPLM4XEGy5zxpixrNVyTwlp XMoV89GE6zirdU/OIZig7BLIvSx3BxeVUB+1dzUWAjePz+rBBvwb7LKsAnYGkbnaSejb Pw9IeCjqGoFB4nZ/7rATiHwsL4Zq9nxqvIepe5na2CPhsathb67TnzvyJGTg+pb/Mof8 emlA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=rfoRflw0; 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=quicinc.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gv47-20020a1709072bef00b006df9fe76021si13485722ejc.273.2022.03.28.10.53.44; Mon, 28 Mar 2022 10:54:02 -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=@quicinc.com header.s=qcdkim header.b=rfoRflw0; 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=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238319AbiC1GMl (ORCPT + 68 others); Mon, 28 Mar 2022 02:12:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47762 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234924AbiC1GMj (ORCPT ); Mon, 28 Mar 2022 02:12:39 -0400 Received: from alexa-out.qualcomm.com (alexa-out.qualcomm.com [129.46.98.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B952C515AB for ; Sun, 27 Mar 2022 23:10:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1648447860; x=1679983860; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=3UfOAs3TkTQChKmeOaobtliZsrFHAKOmPnwrvKnlnE8=; b=rfoRflw0YondUw5O2fNrN9MkiO5j8ShaGGCK3vj8lK3AxO5MYGbKwD4n jENffRB4BGzWxtv4pX5QO9hA1LXoaeTaLdv6C/H9iT+WiyrOtwDwHcW5B icq5qSiOXc5QdoELlgOs9VHAWjzRDHeCDZRdoSW0AEmQCLOsVRu1LmB4h 0=; Received: from ironmsg-lv-alpha.qualcomm.com ([10.47.202.13]) by alexa-out.qualcomm.com with ESMTP; 27 Mar 2022 23:11:00 -0700 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg-lv-alpha.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Mar 2022 23:10:29 -0700 Received: from nalasex01a.na.qualcomm.com (10.47.209.196) by nasanex01c.na.qualcomm.com (10.47.97.222) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Sun, 27 Mar 2022 23:10:29 -0700 Received: from mpubbise-linux.qualcomm.com (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Sun, 27 Mar 2022 23:10:27 -0700 From: Manikanta Pubbisetty To: CC: , Manikanta Pubbisetty Subject: [PATCH v3 10/12] ath11k: WMI changes to support WCN6750 Date: Mon, 28 Mar 2022 11:39:35 +0530 Message-ID: <20220328060937.16738-11-quic_mpubbise@quicinc.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220328060937.16738-1-quic_mpubbise@quicinc.com> References: <20220328060937.16738-1-quic_mpubbise@quicinc.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01a.na.qualcomm.com (10.47.209.196) X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_PASS,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 WCN6750 is a single PDEV non-DBS chip which supports 2G, 5G and 6G bands. It is a single LMAC device which can be either hooked to 2G/5G/6G bands. Add WMI changes to support WCN6750. Tested-on: WCN6750 hw1.0 AHB WLAN.MSL.1.0.1-00573-QCAMSLSWPLZ-1 Tested-on: WCN6855 hw2.0 PCI WLAN.HSP.1.1-01720.1-QCAHSPSWPL_V1_V2_SILICONZ_LITE-1 Tested-on: QCN9074 hw1.0 PCI WLAN.HK.2.5.0.1-01100-QCAHKSWPL_SILICONZ-1 Tested-on: IPQ8074 hw2.0 AHB WLAN.HK.2.4.0.1-00192-QCAHKSWPL_SILICONZ-1 Signed-off-by: Manikanta Pubbisetty --- drivers/net/wireless/ath/ath11k/wmi.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/drivers/net/wireless/ath/ath11k/wmi.c b/drivers/net/wireless/ath/ath11k/wmi.c index 119fe1e6a07a..b814d43672df 100644 --- a/drivers/net/wireless/ath/ath11k/wmi.c +++ b/drivers/net/wireless/ath/ath11k/wmi.c @@ -391,6 +391,10 @@ ath11k_pull_mac_phy_cap_svc_ready_ext(struct ath11k_pdev_wmi *wmi_handle, ab->target_pdev_ids[ab->target_pdev_count].pdev_id = mac_phy_caps->pdev_id; ab->target_pdev_count++; + if (!(mac_phy_caps->supported_bands & WMI_HOST_WLAN_2G_CAP) && + !(mac_phy_caps->supported_bands & WMI_HOST_WLAN_5G_CAP)) + return -EINVAL; + /* Take non-zero tx/rx chainmask. If tx/rx chainmask differs from * band to band for a single radio, need to see how this should be * handled. @@ -398,7 +402,9 @@ ath11k_pull_mac_phy_cap_svc_ready_ext(struct ath11k_pdev_wmi *wmi_handle, if (mac_phy_caps->supported_bands & WMI_HOST_WLAN_2G_CAP) { pdev_cap->tx_chain_mask = mac_phy_caps->tx_chain_mask_2g; pdev_cap->rx_chain_mask = mac_phy_caps->rx_chain_mask_2g; - } else if (mac_phy_caps->supported_bands & WMI_HOST_WLAN_5G_CAP) { + } + + if (mac_phy_caps->supported_bands & WMI_HOST_WLAN_5G_CAP) { pdev_cap->vht_cap = mac_phy_caps->vht_cap_info_5g; pdev_cap->vht_mcs = mac_phy_caps->vht_supp_mcs_5g; pdev_cap->he_mcs = mac_phy_caps->he_supp_mcs_5g; @@ -408,8 +414,6 @@ ath11k_pull_mac_phy_cap_svc_ready_ext(struct ath11k_pdev_wmi *wmi_handle, WMI_NSS_RATIO_ENABLE_DISABLE_GET(mac_phy_caps->nss_ratio); pdev_cap->nss_ratio_info = WMI_NSS_RATIO_INFO_GET(mac_phy_caps->nss_ratio); - } else { - return -EINVAL; } /* tx/rx chainmask reported from fw depends on the actual hw chains used, -- 2.35.1