diff --git a/hostapd/config_file.c b/hostapd/config_file.c index 13defe7..9e8c475 100644 --- a/hostapd/config_file.c +++ b/hostapd/config_file.c @@ -3734,6 +3734,8 @@ static int hostapd_config_fill(struct hostapd_config *conf, } else if (os_strcmp(buf, "he_bss_color") == 0) { conf->he_op.he_bss_color = atoi(pos) & 0x3f; conf->he_op.he_bss_color_disabled = 0; + if (atoi(pos) > 63) + conf->he_op.he_bss_color = os_random() % 63 + 1; } else if (os_strcmp(buf, "he_bss_color_partial") == 0) { conf->he_op.he_bss_color_partial = atoi(pos); } else if (os_strcmp(buf, "he_default_pe_duration") == 0) {