mirror of
https://github.com/Telecominfraproject/wlan-ap.git
synced 2025-10-29 17:42:41 +00:00
hostapd: add back the wds 4aadr mode hack
Signed-off-by: John Crispin <john@phrozen.org>
This commit is contained in:
@@ -914,10 +914,11 @@ mac80211_setup_vif() {
|
||||
|
||||
json_select config
|
||||
json_get_var ifname _ifname
|
||||
json_get_vars vif_txpower
|
||||
json_get_vars vif_txpower wds
|
||||
json_select ..
|
||||
|
||||
[ -z "$vif_txpower" ] || iw dev "$ifname" set txpower fixed "${vif_txpower%%.*}00"
|
||||
[ "$wds" -gt 0 ] && echo 1 > /sys/kernel/debug/ieee80211/$phy/netdev\:$ifname/disable_offload
|
||||
[ -n "$ifname" ] && wireless_add_vif "$name" "$ifname"
|
||||
}
|
||||
|
||||
|
||||
@@ -11,7 +11,8 @@
|
||||
"band": "5G",
|
||||
"country": "CA",
|
||||
"channel-mode": "HE",
|
||||
"channel-width": 80
|
||||
"channel-width": 80,
|
||||
"channel": 36
|
||||
},
|
||||
{
|
||||
"band": "2G",
|
||||
|
||||
@@ -914,10 +914,11 @@ mac80211_setup_vif() {
|
||||
|
||||
json_select config
|
||||
json_get_var ifname _ifname
|
||||
json_get_vars vif_txpower
|
||||
json_get_vars vif_txpower wds
|
||||
json_select ..
|
||||
|
||||
[ -z "$vif_txpower" ] || iw dev "$ifname" set txpower fixed "${vif_txpower%%.*}00"
|
||||
[ "$wds" -gt 0 ] && echo 1 > /sys/kernel/debug/ieee80211/$phy/netdev\:$ifname/disable_offload
|
||||
[ -n "$ifname" ] && wireless_add_vif "$name" "$ifname"
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user