Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1406352pxb; Thu, 28 Oct 2021 03:08:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz2A3IbVmHw16Kf6zwWMquspJlgfg3vW088+ALmxye5OB0Mni/lKGKP3TVeOj66XHer89vQ X-Received: by 2002:a17:906:1451:: with SMTP id q17mr4121586ejc.36.1635415687540; Thu, 28 Oct 2021 03:08:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635415687; cv=none; d=google.com; s=arc-20160816; b=cqasdzRDIYYF+vVr/40wDXzwBoPQJx4YL8YwV0DnPa4bkJjQ4DQh5f3i3uvPpSnoGw Pa4MTFY47xKXPwqXNL/mfMbaR5peDyfsYrhp0YMsLvDio405Zgmsv7oVX5ogM4p44thX cpQGv0GcUo8ZTNPwneTRaVIcVLyFzo6QGqUm3xt8zB9meiVvqj+F0aHKZbE1F9CAMp3B 9gT2q6usfRGzR82cLKkS63yFEEi42rUfrTSsCYmVgBjFmDe2UWqH2MoUgKsPXmpIPtSB sHl9gD5xmQlfULRasNamg+O1m0FpdnLepxBPZSaFcnfYpcRqgQ47JNn5zXLIYgTEvnEt pTtA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:message-id:in-reply-to :date:references:subject:cc:to:from:dmarc-filter:sender :dkim-signature; bh=3AZaDE+Iw8g7xCcE9V3ga0XRcUE6ZHwB7hURcTld6+I=; b=CZj2h0GsoNkVV/uh9Jn66FaBxeJaTc96pq+6r+lxWXycgJ4WBWYHIEJF4A86fqQyhY wd6ieFZ7Rd/vxZ+dcg30xtUO1LrssySdcc2ef7EmsnE9rtAaZLvXva8VNS1Wg4DAPDiM Aa5adCHqxCsEePJANXQ1spA4mRs2Hjqlnyac19uQMLBSBGTAnndKICMZakFxppRBJjuW 9/4fDaWpMMFarzeRFFcU1YkNZSGsEIlHXoQwtgbiFsi0aV1afRqe2kI5ux/cGTQuKh4L INBeGwZcDQvyO2Fu/hX5lNjsCqbiDLpO2Mwly4kLRVRCx8Mo8pQEiR2ocLJ49qdHQ2J+ Il0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=hCSkHQUl; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hs9si4239765ejc.109.2021.10.28.03.07.45; Thu, 28 Oct 2021 03:08:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-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=@mg.codeaurora.org header.s=smtp header.b=hCSkHQUl; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229809AbhJ1KKD (ORCPT + 67 others); Thu, 28 Oct 2021 06:10:03 -0400 Received: from so254-9.mailgun.net ([198.61.254.9]:29034 "EHLO so254-9.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229775AbhJ1KKA (ORCPT ); Thu, 28 Oct 2021 06:10:00 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1635415654; h=Content-Type: MIME-Version: Message-ID: In-Reply-To: Date: References: Subject: Cc: To: From: Sender; bh=3AZaDE+Iw8g7xCcE9V3ga0XRcUE6ZHwB7hURcTld6+I=; b=hCSkHQUlPB+q4YLHBlGjdqXfQ/5vw2eVBsTu2GmEDSkQNOQ5oVNjuOqDcwhOZQLNpkDtT3V0 qJImCJOrzhqqEMH17TVhYh8p0I5q6lwxuA0qiiNbcrQfOWRFcDst4zZraFbAorpsrU/RpJup 0SsfBS5rWT7KIBj7QyeWZeEYeSU= X-Mailgun-Sending-Ip: 198.61.254.9 X-Mailgun-Sid: WyI3YTAwOSIsICJsaW51eC13aXJlbGVzc0B2Z2VyLmtlcm5lbC5vcmciLCAiYmU5ZTRhIl0= Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n01.prod.us-east-1.postgun.com with SMTP id 617a7656545d7d365ff7b912 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Thu, 28 Oct 2021 10:07:18 GMT Sender: kvalo=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id D6779C43460; Thu, 28 Oct 2021 10:07:17 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=ALL_TRUSTED,BAYES_00,SPF_FAIL, URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from tykki (tynnyri.adurom.net [51.15.11.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: kvalo) by smtp.codeaurora.org (Postfix) with ESMTPSA id 425CBC4338F; Thu, 28 Oct 2021 10:07:16 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 smtp.codeaurora.org 425CBC4338F Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=fail smtp.mailfrom=codeaurora.org From: Kalle Valo To: Jouni Malinen Cc: ath11k@lists.infradead.org, linux-wireless@vger.kernel.org, Wen Gong Subject: Re: [PATCH 3/3] ath11k: set correct NL80211_FEATURE_DYNAMIC_SMPS for WCN6855 References: <20210914163726.38604-1-jouni@codeaurora.org> <20210914163726.38604-3-jouni@codeaurora.org> Date: Thu, 28 Oct 2021 13:07:11 +0300 In-Reply-To: <20210914163726.38604-3-jouni@codeaurora.org> (Jouni Malinen's message of "Tue, 14 Sep 2021 19:37:26 +0300") Message-ID: <87a6it5upc.fsf@codeaurora.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Jouni Malinen writes: > From: Wen Gong > > Commit "ath11k: support SMPS configuration for 6 GHz" changed "if > (ht_cap & WMI_HT_CAP_DYNAMIC_SMPS)" to "if (ht_cap & > WMI_HT_CAP_DYNAMIC_SMPS || ar->supports_6ghz)" which means > NL80211_FEATURE_DYNAMIC_SMPS is enabled for all chips which support 6 > GHz. However, WCN6855 supports 6 GHz but it does not support feature > NL80211_FEATURE_DYNAMIC_SMPS, and this can lead to MU-MIMO test failures > for WCN6855. > > Disable NL80211_FEATURE_DYNAMIC_SMPS for WCN6855 since its ht_cap does > not support WMI_HT_CAP_DYNAMIC_SMPS. > > 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: Jouni Malinen > --- > drivers/net/wireless/ath/ath11k/core.c | 1 + > drivers/net/wireless/ath/ath11k/hw.h | 1 + > drivers/net/wireless/ath/ath11k/mac.c | 3 ++- > 3 files changed, 4 insertions(+), 1 deletion(-) > > diff --git a/drivers/net/wireless/ath/ath11k/core.c b/drivers/net/wireless/ath/ath11k/core.c > index 265ff225bd81..2bae8c5184d4 100644 > --- a/drivers/net/wireless/ath/ath11k/core.c > +++ b/drivers/net/wireless/ath/ath11k/core.c > @@ -279,6 +279,7 @@ static const struct ath11k_hw_params ath11k_hw_params[] = { > .sram_dump = &sram_dump_wcn6855, > .max_tx_ring = DP_TCL_NUM_RING_MAX_QCA6390, > .hal_params = &ath11k_hal_params_qca6390, > + .check_dynamic_smps = true, > }, > }; > > diff --git a/drivers/net/wireless/ath/ath11k/hw.h b/drivers/net/wireless/ath/ath11k/hw.h > index c6831fb110ba..7463b96770b7 100644 > --- a/drivers/net/wireless/ath/ath11k/hw.h > +++ b/drivers/net/wireless/ath/ath11k/hw.h > @@ -180,6 +180,7 @@ struct ath11k_hw_params { > const struct ath11k_hw_sram_dump *sram_dump; > u8 max_tx_ring; > const struct hal_param *hal_params; > + bool check_dynamic_smps; > }; > > struct ath11k_hw_ops { > diff --git a/drivers/net/wireless/ath/ath11k/mac.c b/drivers/net/wireless/ath/ath11k/mac.c > index 1f4765e43546..97a2c92b7b9b 100644 > --- a/drivers/net/wireless/ath/ath11k/mac.c > +++ b/drivers/net/wireless/ath/ath11k/mac.c > @@ -7570,7 +7570,8 @@ static int __ath11k_mac_register(struct ath11k *ar) > * for each band for a dual band capable radio. It will be tricky to > * handle it when the ht capability different for each band. > */ > - if (ht_cap & WMI_HT_CAP_DYNAMIC_SMPS || ar->supports_6ghz) > + if (ht_cap & WMI_HT_CAP_DYNAMIC_SMPS || > + (ar->supports_6ghz && !ab->hw_params.check_dynamic_smps)) > ar->hw->wiphy->features |= NL80211_FEATURE_DYNAMIC_SMPS; Instead of a "negative" flag I reverted the test and renamed the flag to supports_dynamic_smps_6ghz. AFAIK QCN9074 is the only device supporting 6 GHz band so I enabled the flag only for it. Please review my changes in the pending branch: https://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git/commit/?h=pending&id=cc692cfb9f2981691b39b601b37e4544ecf01136 -- https://patchwork.kernel.org/project/linux-wireless/list/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches