Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3708553pxb; Mon, 24 Jan 2022 16:00:00 -0800 (PST) X-Google-Smtp-Source: ABdhPJx+7RBPe/mfrvtahwoYJZ2xOTuI9jaASHHZjWpzCmQ3CfLr+IO0hcpuv92oP0lcV+pAPe+p X-Received: by 2002:a17:902:da8a:b0:14b:370b:23fe with SMTP id j10-20020a170902da8a00b0014b370b23femr10436465plx.103.1643068693446; Mon, 24 Jan 2022 15:58:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643068693; cv=none; d=google.com; s=arc-20160816; b=svmQa4wkxMulWUN39jjqovuVffJNS5imhX/Q225wBKREDFXXBJZWThmt/ef2ksbChC sGKaHohCWJrho6B7sS6CpZjUswhWuQqinqE3wueX3lknz1/tlckSruW3s0ROrw3jjJs7 0dFo5pypa6zcAOzg+pal0hUStIzzmlUT+G9XTS7kcxYVT0HXrldRqwBqy636fvwXNTiz 4zCb32SUJ5Aprlr/jm2I5MmZp0fJJbYvdtmLlT8etvV7d4KRVIK0wG0s2ZhDZh3fy7ZL BvK9ZvsYFKRCpdAfH58YI9z0yQ3Y3jpK8bkiA2bYlgPl9cHrPxcdif/mS0PbI0SJFkL+ gDxA== 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=BFx0rgCZVaersIEzNY3lQPln+GI3FOJE+UGMeSXBSj0=; b=K19yBWsFjq3kQ1Anth7PuAnC1nsUlRP7NK+A86AWxw7uRGtraOvEI4KpNPB9sifpvN Bm+y+CeNegfpKDCxYnkD7wETwWQ8HCjUpI3+wiqzI4Kyb+rtrxDGUBoGa6rwSAQYla1D FowpnM6oxFGqi6h/RHrvmirZ5s/+WjHfs2jpOlW6agnrjzh5qgXuoAZTHYYxcqE3tFnq paEso1qnQQqAcVa4uP4BMiNuEE5YhOw7T49YYkK/SMInXy0Qdu02JGbgPQOsQLBB8bnq 6YkshughY/hdzD0XoG/Tul2z9vwGEW5BF8RErjS2AjwXg5xVQGd88WNBq6hKV3Vcg7Io aBIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=a3FvMFbf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t6si497727plr.244.2022.01.24.15.58.01; Mon, 24 Jan 2022 15:58:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=a3FvMFbf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.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: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2366894AbiAXXxo (ORCPT + 99 others); Mon, 24 Jan 2022 18:53:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49182 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1846007AbiAXXOO (ORCPT ); Mon, 24 Jan 2022 18:14:14 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7752CC061A80; Mon, 24 Jan 2022 13:21:14 -0800 (PST) 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 ams.source.kernel.org (Postfix) with ESMTPS id 3E0A1B8123A; Mon, 24 Jan 2022 21:21:13 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6D85AC340E4; Mon, 24 Jan 2022 21:21:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643059272; bh=bep6sJR3PXgQxcO9jA0MP5nJ6KAIdBpiWgtPVOcKKEU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=a3FvMFbfw7dj8EVAXAZdxTxeWKLxGSIJtXlQjtr0KyDug1cTCTLkWffKKQwv9mB6U 15RHwf4WVgFksZ5RKkXCwjYrdEBluS96K8hPltXYHvDyUOZte+Ms3jJylw567MofC8 OtDOPql2NDchDRjXJ53C1x8BwRP189uYzt9vVuZs= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Wen Gong , Kalle Valo , Sasha Levin Subject: [PATCH 5.16 0561/1039] ath11k: enable IEEE80211_VHT_EXT_NSS_BW_CAPABLE if NSS ratio enabled Date: Mon, 24 Jan 2022 19:39:10 +0100 Message-Id: <20220124184144.170113354@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124184125.121143506@linuxfoundation.org> References: <20220124184125.121143506@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Wen Gong [ Upstream commit 78406044bdd0cc8987bc082b76867c63ab1c6af8 ] When NSS ratio enabled reported by firmware, SUPPORTS_VHT_EXT_NSS_BW is set in ath11k, meanwhile IEEE80211_VHT_EXT_NSS_BW_CAPABLE also need to be set, otherwise it is invalid because spec in IEEE Std 802.11™‐2020 as below. Table 9-273-Supported VHT-MCS and NSS Set subfields, it has subfield VHT Extended NSS BW Capable, its definition is: Indicates whether the STA is capable of interpreting the Extended NSS BW Support subfield of the VHT Capabilities Information field. dmesg have a message without this patch: ieee80211 phy0: copying sband (band 1) due to VHT EXT NSS BW flag It means mac80211 will set IEEE80211_VHT_EXT_NSS_BW_CAPABLE if ath11k not set it in ieee80211_register_hw(). So it is better to set it in ath11k. Tested-on: WCN6855 hw2.0 PCI WLAN.HSP.1.1-01720.1-QCAHSPSWPL_V1_V2_SILICONZ_LITE-1 Signed-off-by: Wen Gong Signed-off-by: Kalle Valo Link: https://lore.kernel.org/r/20211013073704.15888-1-wgong@codeaurora.org Signed-off-by: Sasha Levin --- drivers/net/wireless/ath/ath11k/mac.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/net/wireless/ath/ath11k/mac.c b/drivers/net/wireless/ath/ath11k/mac.c index 5d49a7ea51fae..cb41c3e5708cb 100644 --- a/drivers/net/wireless/ath/ath11k/mac.c +++ b/drivers/net/wireless/ath/ath11k/mac.c @@ -4566,6 +4566,10 @@ ath11k_create_vht_cap(struct ath11k *ar, u32 rate_cap_tx_chainmask, vht_cap.vht_supported = 1; vht_cap.cap = ar->pdev->cap.vht_cap; + if (ar->pdev->cap.nss_ratio_enabled) + vht_cap.vht_mcs.tx_highest |= + cpu_to_le16(IEEE80211_VHT_EXT_NSS_BW_CAPABLE); + ath11k_set_vht_txbf_cap(ar, &vht_cap.cap); rxmcs_map = 0; -- 2.34.1