From: Andrei-Alexandru Bleortu <me@andrei-z.com>
To: Jeff Johnson <jjohnson@kernel.org>
Cc: <ath11k@lists.infradead.org>, <linux-kernel@vger.kernel.org>,
<linux-wireless@vger.kernel.org>, Felix Fietkau <nbd@nbd.name>
Subject: [PATCH ath-next 2/2] wifi: ath11k: keep the BSS color while it is disabled
Date: Sun, 4 Oct 2026 14:24:40 +0300 [thread overview]
Message-ID: <c180e6f0f96e4d27d96130aaef7d7d363b67e549.1791111136.git.me@andrei-z.com> (raw)
In-Reply-To: <cover.1791111135.3.git.me@andrei-z.com>
While the BSS Color Disabled subfield is 1, an HE STA shall keep
advertising its nonzero BSS color in the TXVECTOR of the HE PPDUs it
transmits (IEEE Std 802.11-2024, 26.11.4). hostapd disables the color
while it counts down to a color change, and ath11k then set the vdev's
BSS color parameter to "disabled" with color 0.
Keep the color in the parameter and add the disabled flag to it.
Tested-on: QCN9074 hw1.0 PCI WLAN.HK.2.9.0.1-02146-QCAHKSWPL_SILICONZ-1
Assisted-by: LLM
Signed-off-by: Andrei-Alexandru Bleortu <me@andrei-z.com>
---
drivers/net/wireless/ath/ath11k/mac.c | 12 +++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)
diff --git a/drivers/net/wireless/ath/ath11k/mac.c b/drivers/net/wireless/ath/ath11k/mac.c
index 183796ce1c..58d222a888 100644
--- a/drivers/net/wireless/ath/ath11k/mac.c
+++ b/drivers/net/wireless/ath/ath11k/mac.c
@@ -3812,12 +3812,14 @@ static void ath11k_mac_op_bss_info_changed(struct ieee80211_hw *hw,
ath11k_warn(ar->ab, "failed to set bss color collision on vdev %i: %d\n",
arvif->vdev_id, ret);
+ /* A disabled color stays in the PPDUs the AP transmits
+ * (IEEE Std 802.11-2024, 26.11.4)
+ */
param_id = WMI_VDEV_PARAM_BSS_COLOR;
- if (info->he_bss_color.enabled)
- param_value = info->he_bss_color.color <<
- IEEE80211_HE_OPERATION_BSS_COLOR_OFFSET;
- else
- param_value = IEEE80211_HE_OPERATION_BSS_COLOR_DISABLED;
+ param_value = info->he_bss_color.color <<
+ IEEE80211_HE_OPERATION_BSS_COLOR_OFFSET;
+ if (!info->he_bss_color.enabled)
+ param_value |= IEEE80211_HE_OPERATION_BSS_COLOR_DISABLED;
ret = ath11k_wmi_vdev_set_param_cmd(ar, arvif->vdev_id,
param_id,
--
2.47.3
prev parent reply other threads:[~2026-10-04 11:26 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-04 11:24 [PATCH ath-next 0/2] wifi: ath11k: firmware airtime fairness, BSS color while disabled Andrei-Alexandru Bleortu
2026-10-04 11:24 ` [PATCH ath-next 1/2] wifi: ath11k: support firmware airtime fairness Andrei-Alexandru Bleortu
2026-10-04 11:24 ` Andrei-Alexandru Bleortu [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=c180e6f0f96e4d27d96130aaef7d7d363b67e549.1791111136.git.me@andrei-z.com \
--to=me@andrei-z.com \
--cc=ath11k@lists.infradead.org \
--cc=jjohnson@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-wireless@vger.kernel.org \
--cc=nbd@nbd.name \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®