mirror of https://github.com/hak5/openwrt-owl.git
parent
1c8fbfbaa6
commit
13cfa88855
|
@ -329,8 +329,7 @@ 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 || {
|
hostapd -P /var/run/wifi-$phy.pid -B /var/run/hostapd-$phy.conf || {
|
||||||
echo "Failed to start hostapd for $phy"
|
echo "Failed to start hostapd for $phy"
|
||||||
return
|
return
|
||||||
|
@ -343,6 +342,7 @@ enable_mac80211() {
|
||||||
[ "$mode" = "ap" ] || continue
|
[ "$mode" = "ap" ] || continue
|
||||||
mac80211_start_vif "$vif" "$ifname"
|
mac80211_start_vif "$vif" "$ifname"
|
||||||
done
|
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