mirror of https://github.com/hak5/openwrt-owl.git
parent
1099e2d679
commit
4062525157
|
@ -194,6 +194,7 @@ enable_atheros() {
|
||||||
iwconfig "$ifname" essid "$ssid"
|
iwconfig "$ifname" essid "$ssid"
|
||||||
case "$mode" in
|
case "$mode" in
|
||||||
ap)
|
ap)
|
||||||
|
if eval "type hostapd_setup_vif" 2>/dev/null >/dev/null; then
|
||||||
hostapd_setup_vif "$vif" madwifi || {
|
hostapd_setup_vif "$vif" madwifi || {
|
||||||
echo "enable_atheros($device): Failed to set up wpa for interface $ifname" >&2
|
echo "enable_atheros($device): Failed to set up wpa for interface $ifname" >&2
|
||||||
# make sure this wifi interface won't accidentally stay open without encryption
|
# make sure this wifi interface won't accidentally stay open without encryption
|
||||||
|
@ -201,6 +202,7 @@ enable_atheros() {
|
||||||
wlanconfig "$ifname" destroy
|
wlanconfig "$ifname" destroy
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
fi
|
||||||
;;
|
;;
|
||||||
wds|sta)
|
wds|sta)
|
||||||
case "$enc" in
|
case "$enc" in
|
||||||
|
|
Loading…
Reference in New Issue