X-Git-Url: https://git.archive.openwrt.org/?p=openwrt.git;a=blobdiff_plain;f=package%2Fhostapd%2Ffiles%2Fwpa_supplicant.sh;h=928243e42509156f6400d88985fe9bd7936a4bdd;hp=5c4bd93d02d3774470de890a64ace6e0a7d7537c;hb=5d11e4a29aaf23c6f473e6b0f9d60479255059e1;hpb=f00886da07307c3b55016988c6adc3d1bd4c08da;ds=sidebyside diff --git a/package/hostapd/files/wpa_supplicant.sh b/package/hostapd/files/wpa_supplicant.sh index 5c4bd93d02..928243e425 100644 --- a/package/hostapd/files/wpa_supplicant.sh +++ b/package/hostapd/files/wpa_supplicant.sh @@ -191,6 +191,9 @@ network={ $wep_tx_keyidx } EOF - [ -z "$proto" -a "$key_mgmt" != "NONE" ] || \ + if [ -n "$proto" -o "$key_mgmt" == "NONE" ]; then wpa_supplicant ${bridge:+ -b $bridge} -B -P "/var/run/wifi-${ifname}.pid" -D ${driver:-wext} -i "$ifname" -c /var/run/wpa_supplicant-$ifname.conf $options + else + return 0 + fi }