Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp4839310pxb; Mon, 28 Mar 2022 04:22:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJym0U9wHkWluiuvc3vj7IG53I/2mWCNLy/0fTURKxg6ddXLNUkWQaylZfzyNu1sW7iHCiBc X-Received: by 2002:a17:907:8d1a:b0:6df:e513:540a with SMTP id tc26-20020a1709078d1a00b006dfe513540amr26947291ejc.340.1648466577685; Mon, 28 Mar 2022 04:22:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648466577; cv=none; d=google.com; s=arc-20160816; b=w8Lt3J/fzcM3XgcCGrAyIeHBztdX4fLVEgZk6CkMhGvVP6tKK5aHm/VsbeiQGV+Yuy 4Pk/GnvAlfft1bTHg81ouHwQ7btbJ+WNgOOikTUMHTPaidgf+ZwxzaUqUkHO8X5onHNh svBLmwHTgzJDHCLkilfXs2gHzqtKRSkQVOLod+oMcqv24HjoZSRpF8HyQPTHjYD04yxv +FH4nf0Swwp3kKmkkEFh0U+4/7y0XhoJz6AjYj3YoZpvrUt4EmMveBLvc2jhU+4u2XCK IxK/1S1m2pDhO1KE//7JYVz9XGNwrtByjSZffG9ea8qVRrJtWzJ/f1puW6JPQa89/bIS 1SDA== 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=0aLF84S7VmLls9YO1ViGryH0KE+CxagjSmIaBaPP7zTAm4fKqOwq9FiE5vp4zPW10Q 3r8g7yGfvTg95ch3xVJunXvo3B2rmZstkfgmvDmn+a6z2xdySYmGD1zyLDH5fxc36+Rb c5W4VaD+9EmNJONO8tW6IDMje48+fmi/Il+lCqeJ49+34ECS4e3E54/qBZu50jsdvzlv 9SGz660nBs49jHggSfQOYIaK6wPRAddUT0l0Sssq2v0vnFH043AFhXrZEq7+gKQcxenY 8bWqYbm/kyzT1KIrwrGY2N5RLwGz/UaXM+4wtg9UakIPXrk2Le9TJjp+0Ja5taCwggqE Scpg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=rMKJsHt7; 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 t10-20020a1709061bea00b006df76385c29si13033659ejg.201.2022.03.28.04.22.40; Mon, 28 Mar 2022 04:22:57 -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=rMKJsHt7; 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 S239980AbiC1JvP (ORCPT + 68 others); Mon, 28 Mar 2022 05:51:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49804 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231506AbiC1JvO (ORCPT ); Mon, 28 Mar 2022 05:51:14 -0400 Received: from alexa-out-sd-01.qualcomm.com (alexa-out-sd-01.qualcomm.com [199.106.114.38]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0D761443CE; Mon, 28 Mar 2022 02:49:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1648460964; x=1679996964; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=3UfOAs3TkTQChKmeOaobtliZsrFHAKOmPnwrvKnlnE8=; b=rMKJsHt7NgyrL+OwTPgG/tsfu9HWxxXAkUV4l9oGLw41UE+OUngR2GP0 /0KPm50OWE+SS2fcRgFj5/yUq2Ta0UR7r7NDBT2lqvHqhiCvXjcRwz45h ZhfQDrw+OiBW0UqqXIpDP9ukuFvgiDjaazFPjtsGS8NMHj+kG3oJBwk74 E=; Received: from unknown (HELO ironmsg01-sd.qualcomm.com) ([10.53.140.141]) by alexa-out-sd-01.qualcomm.com with ESMTP; 28 Mar 2022 02:49:23 -0700 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg01-sd.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Mar 2022 02:49:23 -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; Mon, 28 Mar 2022 02:49:23 -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; Mon, 28 Mar 2022 02:49:21 -0700 From: Manikanta Pubbisetty To: CC: , , , Manikanta Pubbisetty Subject: [PATCH v3 10/12] ath11k: WMI changes to support WCN6750 Date: Mon, 28 Mar 2022 15:18:36 +0530 Message-ID: <20220328094838.14093-11-quic_mpubbise@quicinc.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220328094838.14093-1-quic_mpubbise@quicinc.com> References: <20220328094838.14093-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=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,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