wifi-ax: disable encap offloading in WDS / STA mode

Fixes: WIFI-9305
Signed-off-by: John Crispin <john@phrozen.org>
This commit is contained in:
John Crispin
2022-05-31 08:25:06 +02:00
parent 1e1bd19429
commit c60dc1e045

View File

@@ -730,6 +730,7 @@ mac80211_prepare_vif() {
[ "$wds" -gt 0 ] && wdsflag="4addr on"
mac80211_iw_interface_add "$phy" "$ifname" managed "$wdsflag" || return
if [ "$wds" -gt 0 ]; then
echo 1 > /sys/kernel/debug/ieee80211/$phy/netdev\:$ifname/disable_offload
iw "$ifname" set 4addr on
else
iw "$ifname" set 4addr off