X-Git-Url: https://git.archive.openwrt.org/?a=blobdiff_plain;f=package%2Fnetwork%2Fservices%2Fhostapd%2Ffiles%2Fwpa_supplicant.sh;h=b6784843e8ea99763796d9bfe772b004468e7304;hb=7586ad840f957bb798829292e33c7a46814c7cbf;hp=0b5e1d391f61c4844e744a2ed79c56e9f65e3523;hpb=1363d4dd2b3f713449b21f951d52fde0a73f02ca;p=openwrt.git diff --git a/package/network/services/hostapd/files/wpa_supplicant.sh b/package/network/services/hostapd/files/wpa_supplicant.sh index 0b5e1d391f..b6784843e8 100644 --- a/package/network/services/hostapd/files/wpa_supplicant.sh +++ b/package/network/services/hostapd/files/wpa_supplicant.sh @@ -119,13 +119,13 @@ wpa_supplicant_setup_vif() { ;; esac - local fixed_freq bssid1 beacon_interval brates mrate + local fixed_freq bssid1 beacon_int brates mrate config_get ifname "$vif" ifname config_get bridge "$vif" bridge config_get ssid "$vif" ssid config_get bssid "$vif" bssid bssid1=${bssid:+"bssid=$bssid"} - beacon_interval=${beacon_int:+"beacon_interval=$beacon_int"} + beacon_int=${beacon_int:+"beacon_int=$beacon_int"} local br brval brsub brstr [ -n "$basic_rate_list" ] && { @@ -163,7 +163,7 @@ network={ $proto $freq ${fixed:+"fixed_freq=1"} - $beacon_interval + $beacon_int $brates $mrate $ht_str @@ -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