diff options
author | David Bauer <mail@david-bauer.net> | 2022-05-14 21:43:15 +0200 |
---|---|---|
committer | David Bauer <mail@david-bauer.net> | 2022-06-08 23:16:12 +0200 |
commit | 6c152ce5b0c003099dc1d9076fc3c38d061c1137 (patch) | |
tree | 7d33eb2c106e4a0bf01b096ea79e3567230a27a7 /package/kernel/mac80211 | |
parent | c35ff1affe8f347b60a7539648a90b45ad43ffef (diff) | |
download | upstream-6c152ce5b0c003099dc1d9076fc3c38d061c1137.tar.gz upstream-6c152ce5b0c003099dc1d9076fc3c38d061c1137.tar.bz2 upstream-6c152ce5b0c003099dc1d9076fc3c38d061c1137.zip |
hostapd: randomize default BSS color
In case no specific BSS color is configured, set it to a random value.
Signed-off-by: David Bauer <mail@david-bauer.net>
Tested-by: Stijn Tintel <stijn@linux-ipv6.be>
Diffstat (limited to 'package/kernel/mac80211')
-rw-r--r-- | package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh b/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh index 27eecf3a7f..3d0afb261f 100644 --- a/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh +++ b/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh @@ -419,12 +419,14 @@ mac80211_hostapd_setup_base() { he_mac_cap=${he_mac_cap:2} append base_cfg "ieee80211ax=1" "$N" - [ -n "$he_bss_color" ] && append base_cfg "he_bss_color=$he_bss_color" "$N" [ "$hwmode" = "a" ] && { append base_cfg "he_oper_chwidth=$vht_oper_chwidth" "$N" append base_cfg "he_oper_centr_freq_seg0_idx=$vht_center_seg0" "$N" } + set_default he_bss_color 128 + append base_cfg "he_bss_color=$he_bss_color" "$N" + mac80211_add_he_capabilities \ he_su_beamformer:${he_phy_cap:6:2}:0x80:$he_su_beamformer \ he_su_beamformee:${he_phy_cap:8:2}:0x1:$he_su_beamformee \ |