X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/225812219e043068663d61b472d57714fa541a0c..f6ceb966a6d45934fb5ebf157f4e4f30652ea8ca:/package/mac80211/files/lib/wifi/mac80211.sh diff --git a/package/mac80211/files/lib/wifi/mac80211.sh b/package/mac80211/files/lib/wifi/mac80211.sh index 67884238f..b20785cf6 100644 --- a/package/mac80211/files/lib/wifi/mac80211.sh +++ b/package/mac80211/files/lib/wifi/mac80211.sh @@ -103,13 +103,17 @@ mac80211_hostapd_setup_bss() { config_get_bool wds "$vif" wds 0 [ "$wds" -gt 0 ] && append hostapd_cfg "wds_sta=1" "$N" + local macaddr hidden maxassoc wmm config_get macaddr "$vif" macaddr + config_get maxassoc "$vif" maxassoc config_get_bool hidden "$vif" hidden 0 + config_get_bool wmm "$vif" wmm 1 cat >> /var/run/hostapd-$phy.conf </dev/null >/dev/null; then @@ -418,6 +428,7 @@ detect_mac80211() { list=" list ht_capab" [ "$(($ht_cap & 1))" -eq 1 ] && append ht_capab "$list LDPC" "$N" + [ "$(($ht_cap & 16))" -eq 16 ] && append ht_capab "$list GF" "$N" [ "$(($ht_cap & 32))" -eq 32 ] && append ht_capab "$list SHORT-GI-20" "$N" [ "$(($ht_cap & 64))" -eq 64 ] && append ht_capab "$list SHORT-GI-40" "$N" [ "$(($ht_cap & 128))" -eq 128 ] && append ht_capab "$list TX-STBC" "$N"