From: Felix Fietkau Date: Tue, 27 Mar 2012 13:29:41 +0000 (+0000) Subject: wpa_supplicant: modify wpa_supplicant.sh in order to support IBSS-RSN/WPA-NONE X-Git-Url: http://git.openwrt.org/?a=commitdiff_plain;h=1eaf4bf8fce07b11147008f9903efae4c2b61140;p=openwrt%2Fstaging%2Fdedeckeh.git wpa_supplicant: modify wpa_supplicant.sh in order to support IBSS-RSN/WPA-NONE Based on patch by: Antonio Quartulli SVN-Revision: 31085 --- diff --git a/package/hostapd/files/wpa_supplicant.sh b/package/hostapd/files/wpa_supplicant.sh index 8b1de16941..84f6eaa95e 100644 --- a/package/hostapd/files/wpa_supplicant.sh +++ b/package/hostapd/files/wpa_supplicant.sh @@ -3,6 +3,8 @@ wpa_supplicant_setup_vif() { local driver="$2" local key="$key" local options="$3" + local freq + [ -n "$4" ] && freq="frequency=$4" # wpa_supplicant should use wext for mac80211 cards [ "$driver" = "mac80211" ] && driver='wext' @@ -59,6 +61,7 @@ wpa_supplicant_setup_vif() { ;; *psk*) key_mgmt='WPA-PSK' + [ "$mode" = "adhoc" -a "$driver" != "nl80211" ] && key_mgmt='WPA-NONE' config_get_bool usepassphrase "$vif" usepassphrase 1 if [ "$usepassphrase" = "1" ]; then passphrase="psk=\"${key}\"" @@ -123,11 +126,13 @@ wpa_supplicant_setup_vif() { cat > /var/run/wpa_supplicant-$ifname.conf <