mirror of
https://github.com/hak5/wifipineapple-openwrt.git
synced 2025-10-29 16:57:19 +00:00
fix hostapd startup for no-crypto configurations
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@14276 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
89d8a91be5
commit
13efa28c8c
@ -67,6 +67,7 @@ hostapd_setup_vif() {
|
||||
;;
|
||||
*)
|
||||
wpa=0
|
||||
crypto=
|
||||
;;
|
||||
esac
|
||||
config_get ifname "$vif" ifname
|
||||
@ -94,7 +95,7 @@ ${bridge:+bridge=$bridge}
|
||||
ssid=$ssid
|
||||
debug=0
|
||||
wpa=$wpa
|
||||
wpa_pairwise=$crypto
|
||||
${crypto:+wpa_pairwise=$crypto}
|
||||
$hostapd_cfg
|
||||
EOF
|
||||
hostapd -P /var/run/wifi-$ifname.pid -B /var/run/hostapd-$ifname.conf
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user