mac80211: fix client mode
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19915 3c298f89-4303-0410-b956-a3cf2f4a3e73master
parent
14376d2461
commit
bbb7e33b6f
|
@ -329,8 +329,7 @@ enable_mac80211() {
|
|||
start_hostapd=1
|
||||
done
|
||||
|
||||
[ -n "$start_hostapd" ] || return 0
|
||||
|
||||
[ -n "$start_hostapd" ] && {
|
||||
hostapd -P /var/run/wifi-$phy.pid -B /var/run/hostapd-$phy.conf || {
|
||||
echo "Failed to start hostapd for $phy"
|
||||
return
|
||||
|
@ -343,6 +342,7 @@ enable_mac80211() {
|
|||
[ "$mode" = "ap" ] || continue
|
||||
mac80211_start_vif "$vif" "$ifname"
|
||||
done
|
||||
}
|
||||
|
||||
for vif in $vifs; do
|
||||
config_get mode "$vif" mode
|
||||
|
|
Loading…
Reference in New Issue