summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHu Wang <huw@codeaurora.org>2021-09-22 08:54:38 +0530
committerJouni Malinen <j@w1.fi>2021-09-28 11:04:08 +0300
commit41ec97cd09486a6bda21f5f5b89e5242e6ade2a2 (patch)
treed4b1b6b2ccef814d8ba9e6602bbd91bb8a6ac9f7
parent1518638b70ed90fb3261fde9e281769c8be4ea8d (diff)
downloadhostap-master.tar.gz
HE: Use a random BSS Color if not defined in the config filemaster
Commit 0cb39f4fd5 ("HE: Extend BSS color support") sets the BSS Color default value to 1 as "Interoperability testing showed that stations will require a BSS color to be set even if the feature is disabled." A new interop issue was observed with hardcoded BSS color value of 1: - REF device using one interface (e.g., wlan0) to connect to an HE AP, whose BSS color is enabled and value is 1. - REF device using another interface (e.g., p2p0) to connect to a P2P GO using BSS color default settings. (i.e., BSS color disabled and value is 1). - REF device checks both AP's and P2P GO's BSS Color values even though GO's BSS color is disabled. This causes collision of the BSS color somehow causing RX problems. For DUT as a P2P GO, its firmware uses default BSS color value 1 from wpa_supplicant, then triggers a timer (e.g., 120 s) to update its BSS color values based on its neighboring BSSes. To reduce the likelihood of BSS color collision with REF device before that, use a random BSS Color if not defined in the config file. Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
-rw-r--r--src/ap/ap_config.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ap/ap_config.c b/src/ap/ap_config.c
index 7b6d54c35..2e0af2b7e 100644
--- a/src/ap/ap_config.c
+++ b/src/ap/ap_config.c
@@ -273,7 +273,7 @@ struct hostapd_config * hostapd_config_defaults(void)
conf->he_op.he_basic_mcs_nss_set = 0xfffc;
conf->he_op.he_bss_color_disabled = 1;
conf->he_op.he_bss_color_partial = 0;
- conf->he_op.he_bss_color = 1;
+ conf->he_op.he_bss_color = os_random() % 63 + 1;
conf->he_op.he_twt_responder = 1;
conf->he_6ghz_max_mpdu = 2;
conf->he_6ghz_max_ampdu_len_exp = 7;