ath9k: improve powersave filter handling
[openwrt/openwrt.git] / package / network / services / hostapd / files / wpa_supplicant.sh
index bd8680157a4aaca86325972fcb582a8bef0d1000..b6784843e8ea99763796d9bfe772b004468e7304 100644 (file)
@@ -186,7 +186,7 @@ network={
        $wep_tx_keyidx
 }
 EOF
-       if [ -n "$proto" -o "$key_mgmt" == "NONE" ]; then
+       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