hostapd: add back the wds 4aadr mode hack

Signed-off-by: John Crispin <john@phrozen.org>
This commit is contained in:
John Crispin
2023-11-20 11:53:56 +01:00
parent 2e3de0eb66
commit b60c18ea3d
3 changed files with 6 additions and 3 deletions

View File

@@ -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"
}

View File

@@ -11,7 +11,8 @@
"band": "5G",
"country": "CA",
"channel-mode": "HE",
"channel-width": 80
"channel-width": 80,
"channel": 36
},
{
"band": "2G",

View File

@@ -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"
}