Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp383218pxt; Wed, 4 Aug 2021 13:49:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxD7grXwosOpywn043qUFNkcLTSW+kn+bYp2FsJCG8Y/XXstJK3Lr23PVTTTa5Qz/nkzU3q X-Received: by 2002:a92:8712:: with SMTP id m18mr726378ild.132.1628110156632; Wed, 04 Aug 2021 13:49:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628110156; cv=none; d=google.com; s=arc-20160816; b=lEzyN6pgmeaSgksaVvbrnpGPd9BvuFnnmBDBMk1SKymVVjzzQviUO2xOAXRkUFNLJD 9LYjO1Y/d/L608cnssbLUbs5v2N54DiJsp3yNsUzvABVO6rFLATVdekeN/MmjJEsChXk a8awUFfESMn/CRiraOz2prbWqwBRbPbNRT7giaAXgLKlHKpJyiwG0dCNEh5CcVKNH7Ru YC53Xy06OsCwANJzP0Jd6stTZZeDq/DqmgazkmsUpS2rBoQJ4N8rTS4ysyEaq6LDcDeK M3DkNwPuIlajK8k3da3LW+BFToK3+o3sP64myljOXA49WaFPIaWaibYwYx0TniMcicBA q0Pg== 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 :dmarc-filter:sender:dkim-signature; bh=cDAGFRmSgjMmOG4WH5Mc+HJAvd0xDlgPyVDPrnt/2hI=; b=g2cASiRECEtf4Yf/4tF9LEHWVIIPa+es97Sb4UahBO4THPWycLdJ8XvnEM9uMi+BSB YX68ZB7sB0VLcqjhWYr6sF8iAuxzzlPh/7y/I5SIzDuzvrvLFYL78odMvxDwdrJ4a9ap AIF2OsFRuX0no2HbxylmnNaYAY9l+q/Rq/zfpXmMya+5ozHH01rHvtJ65X32enyZCDTs dIquOKhtl905V+TIyat93fr9G9NPRYb56dVUKMyjfZcJt+L0OWPVUrQhaGWHQ351mjbs mKB2+qhtYItV1wZIQm4a3MAmLHe41P7LWlAXlCI1R5dQe6Jj2SVVVmiSJ+sBkICmxesu i8+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=frPj+AqK; 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 q18si3190705jao.21.2021.08.04.13.49.00; Wed, 04 Aug 2021 13:49:16 -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=frPj+AqK; 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 S240083AbhHDSM4 (ORCPT + 99 others); Wed, 4 Aug 2021 14:12:56 -0400 Received: from m43-7.mailgun.net ([69.72.43.7]:14340 "EHLO m43-7.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240087AbhHDSM4 (ORCPT ); Wed, 4 Aug 2021 14:12:56 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1628100763; h=Content-Transfer-Encoding: MIME-Version: References: In-Reply-To: Message-Id: Date: Subject: Cc: To: From: Sender; bh=cDAGFRmSgjMmOG4WH5Mc+HJAvd0xDlgPyVDPrnt/2hI=; b=frPj+AqKDHKpi5qcUILgWbe+st/pcucZaVScXDuelDq9L7Cijpdu0WYwp5YoIU3lbyQY/rcY 93sZxkUayE2PjKOV5eAt0xjKQTgJvIFk2Uopv01Ckppu++l448MWgkbHXPvbsGbFaNOQeyJ/ tNzIqVhsgzuOy8vm5LzY2wuxGcY= X-Mailgun-Sending-Ip: 69.72.43.7 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-n07.prod.us-west-2.postgun.com with SMTP id 610ad88e1a9008a23ebe9161 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Wed, 04 Aug 2021 18:12:30 GMT Sender: jouni=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 676A8C433D3; Wed, 4 Aug 2021 18:12:30 +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 jouni.codeaurora.org (85-76-77-199-nat.elisa-mobile.fi [85.76.77.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: jouni) by smtp.codeaurora.org (Postfix) with ESMTPSA id 97971C43460; Wed, 4 Aug 2021 18:12:28 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 97971C43460 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=jouni@codeaurora.org From: Jouni Malinen To: Kalle Valo Cc: ath11k@lists.infradead.org, linux-wireless@vger.kernel.org, Wen Gong , Jouni Malinen Subject: [PATCH 1/3] ath11k: re-enable ht_cap/vht_cap for 5G band for WCN6855 Date: Wed, 4 Aug 2021 21:12:15 +0300 Message-Id: <20210804181217.88751-2-jouni@codeaurora.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210804181217.88751-1-jouni@codeaurora.org> References: <20210804181217.88751-1-jouni@codeaurora.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org From: Wen Gong WCN6855 uses single_pdev_only, so it supports both the 5G and 6G bands in the same ath11k/pdev and it needs to enable ht_cap/vht_cap for the 5G band, otherwise it will downgrade to non-HT mode for the 5G band. Some chips like QCN9074 only support the 6G band, not the 5G band, and use the flag ar->supports_6ghz which is true to discard ht_cap/vht_cap. 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/mac.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/net/wireless/ath/ath11k/mac.c b/drivers/net/wireless/ath/ath11k/mac.c index 133ecb351365..c83a968fc7ba 100644 --- a/drivers/net/wireless/ath/ath11k/mac.c +++ b/drivers/net/wireless/ath/ath11k/mac.c @@ -4491,7 +4491,9 @@ static void ath11k_mac_setup_ht_vht_cap(struct ath11k *ar, rate_cap_rx_chainmask); } - if (cap->supported_bands & WMI_HOST_WLAN_5G_CAP && !ar->supports_6ghz) { + if (cap->supported_bands & WMI_HOST_WLAN_5G_CAP && + (ar->ab->hw_params.single_pdev_only || + !ar->supports_6ghz)) { band = &ar->mac.sbands[NL80211_BAND_5GHZ]; ht_cap = cap->band[NL80211_BAND_5GHZ].ht_cap_info; if (ht_cap_info) -- 2.25.1