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

brcm63xx: mac80211.sh: use DFS workaround for AP


Use DFS workaround only for AP interface.
In other case we hit strange problem:
 - have wlX as a station
 - have wlX.1 as a AP

Hostapd startup failed on wlX.1 while
macaddr set IOCTL fail.

Interesting that we/hostapd can change/set mac
address only when wl is down.

root@iopsys:~# ifconfig wl2.1 hw ether EE:6C:9A:52:AC:CB
ifconfig: SIOCSIFHWADDR: I/O error
root@iopsys:~# wl -i wl1 isup
1
root@iopsys:~#

Signed-off-by: default avatarJanusz Dziedzic <janusz.dziedzic@iopsys.eu>
parent 9bb9b7ee
No related branches found
No related tags found
1 merge request!89brcm63xx: mac80211.sh: use DFS workaround for AP
...@@ -697,8 +697,10 @@ mac80211_iw_interface_add() { ...@@ -697,8 +697,10 @@ mac80211_iw_interface_add() {
echo "$ifname set type status $rc" echo "$ifname set type status $rc"
# activate brcm DFS offload # activate brcm DFS offload
ifconfig "$ifname" up if [ "$type" = "__ap" ]; then
ifconfig "$ifname" down ifconfig "$ifname" up
ifconfig "$ifname" down
fi
return $rc return $rc
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment