From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail.as201155.net (mail.as201155.net [185.84.6.188]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8C4C31FC101 for ; Tue, 12 May 2026 08:16:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.84.6.188 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778573763; cv=none; b=eDuDpLNGb6cf9oVoS9ObGmk9iCpTu5Wsys7qklzldikz4dFAp0ZdOGYxhZusq5ULkfjdedyEtYpgOqcxImEgGeKPVEdzMI240/4bvsGrWCcstuT1OWGpST82g5wOvW95nAhaJ9bXLGHxGE6NeTwMPc9N99gITrU5IuZWaSILKb0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778573763; c=relaxed/simple; bh=6RwYt3qBaE2l5UICmIe8KOSWsmk6DJrzr+C6VJY3UXw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=hu2/h7rtNhNtKsCcjJ6kCClI3bdmd13LEW1ZnPcXayIm+HU617JMhaHnCNiF04rVSlbl7pyYugu5msAuA00dOlMTTkO/AVsv73RRFfVUJxYyB99l/JVA19hnL6TbOlR9w0+DPMEBNAf+DG9iTjT6U8ircLxyrLdvg5MmRfxVMQI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=dd-wrt.com; spf=pass smtp.mailfrom=dd-wrt.com; dkim=pass (1024-bit key) header.d=dd-wrt.com header.i=@dd-wrt.com header.b=rt05J3CN; arc=none smtp.client-ip=185.84.6.188 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=dd-wrt.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=dd-wrt.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=dd-wrt.com header.i=@dd-wrt.com header.b="rt05J3CN" Received: from smtps.newmedia-net.de ([2a05:a1c0:0:de::167]:59280 helo=webmail.newmedia-net.de) by mail.as201155.net with esmtps (TLS1) tls TLS_RSA_WITH_AES_256_CBC_SHA (Exim 4.97.1) (envelope-from ) id 1wMiEn-000000007lO-17tF for linux-wireless@vger.kernel.org; Tue, 12 May 2026 10:13:09 +0200 X-SASI-Hits: BODYTEXTP_SIZE_3000_LESS 0.000000, BODY_SIZE_2000_2999 0.000000, BODY_SIZE_5000_LESS 0.000000, BODY_SIZE_7000_LESS 0.000000, CTE_8BIT 0.000000, DKIM_ALIGNS 0.000000, DKIM_SIGNATURE 0.000000, HTML_00_01 0.050000, HTML_00_10 0.050000, LEGITIMATE_SIGNS 0.000000, MULTIPLE_REAL_RCPTS 0.000000, NO_CTA_URI_FOUND 0.000000, NO_FUR_HEADER 0.000000, NO_URI_HTTPS 0.000000, OUTBOUND 0.000000, OUTBOUND_SOPHOS 0.000000, SENDER_NO_AUTH 0.000000, SUSP_DH_NEG 0.000000, __ANY_URI 0.000000, __BODY_NO_MAILTO 0.000000, __BULK_NEGATE 0.000000, __CC_NAME 0.000000, __CC_NAME_DIFF_FROM_ACC 0.000000, __CC_REAL_NAMES 0.000000, __CTE 0.000000, __DKIM_ALIGNS_1 0.000000, __DKIM_ALIGNS_2 0.000000, __DQ_NEG_DOMAIN 0.000000, __DQ_NEG_HEUR 0.000000, __DQ_NEG_IP 0.000000, __FRAUD_BADTHINGS 0.000000, __FROM_DOMAIN_IN_ANY_CC1 0.000000, __FROM_DOMAIN_IN_RCPT 0.000000, __FUR_RDNS_SOPHOS 0.000000, __HAS_CC_HDR 0.000000, __HAS_FROM 0.000000, __HAS_MSGID 0.000000, __HAS_X_MAILER 0.000000, __MIME_TEXT_ONLY 0.000000, __MIME_TEXT_P 0.000000, __MIME_TEXT_P1 0.000000, __MIME_VERSION 0.000000, __NO_HTML_TAG_RAW 0.000000, __OUTBOUND_SOPHOS_FUR 0.000000, __OUTBOUND_SOPHOS_FUR_IP 0.000000, __OUTBOUND_SOPHOS_FUR_RDNS 0.000000, __RCVD_PASS 0.000000, __SANE_MSGID 0.000000, __SL_HEAVY 0.000000, __SUBJ_ALPHA_END 0.000000, __SUBJ_STARTS_S_BRACKETS 0.000000, __TO_MALFORMED_2 0.000000, __TO_NO_NAME 0.000000, __URI_MAILTO 0.000000, __URI_NO_WWW 0.000000, __URI_NS 0.000000, __X_MAILSCANNER 0.000000 X-SASI-Probability: 7% X-SASI-RCODE: 200 X-SASI-Version: Antispam-Engine: 5.1.4, AntispamData: 2026.5.12.75719 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=dd-wrt.com; s=mikd; h=Content-Transfer-Encoding:MIME-Version:Message-ID:Date:Subject:Cc:To:From; bh=vKU4pQmE3L/XjIfYjhU7sj8Ooq/2wcIT1kv/cz8f7gk=; b=rt05J3CNoQKnXeE7VGv9cvW6ESci6Wb+i44gPoF1lp0xtFdtafvr5Reza4cvg0ez6CymPhyEKmC2rHPZ48Y8QrGogvpk8FD5TtujV72d+jNmk6RAdVcnnh9rctm1Qu/xpiETahX313uwIWyxbhkfdn2aOk0uQOaj4NUx1haA04c=; From: Sebastian Gottschall To: linux-wireless@vger.kernel.org Cc: Sebastian Gottschall Subject: [PATCH] wifi: ath11k: fix txpower in ap mode for 6 Ghz Date: Tue, 12 May 2026 14:12:59 +0600 Message-ID: <20260512081259.3208746-1-s.gottschall@dd-wrt.com> X-Mailer: git-send-email 2.51.0 Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass (webmail.newmedia-net.de: localhost is always allowed.) client-ip=127.0.0.1; envelope-from=s.gottschall@dd-wrt.com; helo=webmail.newmedia-net.de; X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: s.gottschall@dd-wrt.com X-SA-Exim-Scanned: No (on webmail.newmedia-net.de); SAEximRunCond expanded to false X-NMN-MailScanner-Information: Please contact the ISP for more information X-NMN-MailScanner-ID: 1wMiEm-000BId-WD X-NMN-MailScanner: Found to be clean X-NMN-MailScanner-From: s.gottschall@dd-wrt.com X-Received: from localhost ([127.0.0.1] helo=webmail.newmedia-net.de) by webmail.newmedia-net.de with esmtp (Exim 4.72) (envelope-from ) id 1wMiEm-000BId-WD; Tue, 12 May 2026 10:13:09 +0200 there is an issue which has been discovered a while ago while testing which killed txpower to 0dbm once scanning is triggered in AP mode on QCN9074 based chipsets if 6 Ghz is in use. ath11k_wmi_send_vdev_set_tpc_power must be set in AP mode in the same way is it is for STA as it is implemented in ath12k and in the qsdk version for ath11k. this patch must be considered to be backported (i discovered that issue already 2 years ago) Signed-off-by: Sebastian Gottschall --- drivers/net/wireless/ath/ath11k/mac.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/drivers/net/wireless/ath/ath11k/mac.c b/drivers/net/wireless/ath/ath11k/mac.c index a48b6bf1f29a..dc192152b2e8 100644 --- a/drivers/net/wireless/ath/ath11k/mac.c +++ b/drivers/net/wireless/ath/ath11k/mac.c @@ -3497,13 +3497,14 @@ static int ath11k_mac_config_obss_pd(struct ath11k *ar, return 0; } -static bool ath11k_mac_supports_station_tpc(struct ath11k *ar, +static bool ath11k_mac_supports_tpc(struct ath11k *ar, struct ath11k_vif *arvif, const struct cfg80211_chan_def *chandef) { return ath11k_wmi_supports_6ghz_cc_ext(ar) && test_bit(WMI_TLV_SERVICE_EXT_TPC_REG_SUPPORT, ar->ab->wmi_ab.svc_map) && - arvif->vdev_type == WMI_VDEV_TYPE_STA && + (arvif->vdev_type == WMI_VDEV_TYPE_STA || + arvif->vdev_type == WMI_VDEV_TYPE_AP) && arvif->vdev_subtype == WMI_VDEV_SUBTYPE_NONE && chandef->chan && chandef->chan->band == NL80211_BAND_6GHZ; @@ -7647,8 +7648,8 @@ ath11k_mac_vdev_start_restart(struct ath11k_vif *arvif, /* TODO: For now we only set TPC power here. However when * channel changes, say CSA, it should be updated again. */ - if (ath11k_mac_supports_station_tpc(ar, arvif, chandef)) { - ath11k_mac_fill_reg_tpc_info(ar, arvif->vif, &arvif->chanctx); + if (ath11k_mac_supports_tpc(ar, arvif, chandef)) { + ath11k_mac_fill_reg_tpc_info(ar, arvif->vif, ctx); ath11k_wmi_send_vdev_set_tpc_power(ar, arvif->vdev_id, &arvif->reg_tpc_info); } -- 2.51.0