Skip to content

Commit f9eaa34

Browse files
qca-wifi-7/hostapd: keep BSS coloring enabled with the same color if there is no free colors
Fixes: WIFI-15279 Signed-off-by: Sebastian Huang <[email protected]>
1 parent 20f5fa0 commit f9eaa34

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
diff -urp a/src/ap/hostapd.c b/src/ap/hostapd.c
2+
--- a/src/ap/hostapd.c 2025-10-28 15:50:59.024346272 +0800
3+
+++ b/src/ap/hostapd.c 2025-12-09 23:03:55.351738472 +0800
4+
@@ -5115,14 +5115,11 @@ static void hostapd_switch_color_timeout
5+
}
6+
7+
if (i == HE_OPERATION_BSS_COLOR_MAX) {
8+
- /* There are no free colors so turn BSS coloring off */
9+
+ /* There are no free colors so do not change color and wait for next check */
10+
wpa_printf(MSG_INFO,
11+
- "No free colors left, turning off BSS coloring");
12+
+ "No free colors left, stay at the same color");
13+
hapd->iface->conf->he_op.he_bss_color_disabled = 1;
14+
- hapd->iface->conf->he_op.he_bss_color = os_random() % 63 + 1;
15+
hapd->no_free_color = 1;
16+
- for (b = 0; b < hapd->iface->num_bss; b++)
17+
- ieee802_11_set_beacon(hapd->iface->bss[b]);
18+
19+
/* Enabling for next check after timeout*/
20+
hapd->iface->conf->he_op.he_bss_color_disabled = 0;

0 commit comments

Comments
 (0)