mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2024-11-18 22:43:53 +01:00
mac80211: fix client mode
SVN-Revision: 19915
This commit is contained in:
parent
1c8fbfbaa6
commit
13cfa88855
@ -329,20 +329,20 @@ enable_mac80211() {
|
|||||||
start_hostapd=1
|
start_hostapd=1
|
||||||
done
|
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
|
||||||
|
}
|
||||||
|
sleep 2
|
||||||
|
|
||||||
hostapd -P /var/run/wifi-$phy.pid -B /var/run/hostapd-$phy.conf || {
|
for vif in $vifs; do
|
||||||
echo "Failed to start hostapd for $phy"
|
config_get mode "$vif" mode
|
||||||
return
|
config_get ifname "$vif" ifname
|
||||||
|
[ "$mode" = "ap" ] || continue
|
||||||
|
mac80211_start_vif "$vif" "$ifname"
|
||||||
|
done
|
||||||
}
|
}
|
||||||
sleep 2
|
|
||||||
|
|
||||||
for vif in $vifs; do
|
|
||||||
config_get mode "$vif" mode
|
|
||||||
config_get ifname "$vif" ifname
|
|
||||||
[ "$mode" = "ap" ] || continue
|
|
||||||
mac80211_start_vif "$vif" "$ifname"
|
|
||||||
done
|
|
||||||
|
|
||||||
for vif in $vifs; do
|
for vif in $vifs; do
|
||||||
config_get mode "$vif" mode
|
config_get mode "$vif" mode
|
||||||
|
Loading…
Reference in New Issue
Block a user