Skip to content
Snippets Groups Projects
Commit 31554ac2 authored by Janusz Dziedzic's avatar Janusz Dziedzic
Browse files

brcm63xx: toggle apsta setting


Seems on some platform, eg SH3 and wl1 (2.4G)
inerface in some cases even we set apsta 0
driver still think this is station interface.

This patch simple workaround this issue by
toggle apsta setting.

Signed-off-by: default avatarJanusz Dziedzic <janusz.dziedzic@iopsys.eu>
parent eb92f6e5
Branches
No related tags found
1 merge request!75brcm63xx: toggle apsta setting
......@@ -1010,7 +1010,15 @@ drv_mac80211_setup() {
phyidx=$(echo "$phy" | sed 's/\(phy\)\([0-9]*\)/\2/g')
phyiface=$(iw dev | grep phy#${phyidx} -A1 | grep Interface | cut -d' ' -f2)
logger -t mac80211 "$phy $phyiface set apsta $apsta"
wl -i ${phyiface} apsta ${apsta}
# workaround - toggle apsta
if [ "$apsta" = "0" ]; then
wl -i ${phyiface} apsta 1
wl -i ${phyiface} apsta 0
else
wl -i ${phyiface} apsta 0
wl -i ${phyiface} apsta 1
fi
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment