From: John Crispin Date: Thu, 18 Oct 2007 20:51:21 +0000 (+0000) Subject: fixed wpa2 support for madwifi/wpa_supplicant X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=78edb9c7bbd98454289a9a299e2aebb63840840b;p=openwrt%2Fstaging%2Fkaloz.git fixed wpa2 support for madwifi/wpa_supplicant SVN-Revision: 9355 --- diff --git a/package/madwifi/files/lib/wifi/madwifi.sh b/package/madwifi/files/lib/wifi/madwifi.sh index 3560880606..41a25a400f 100755 --- a/package/madwifi/files/lib/wifi/madwifi.sh +++ b/package/madwifi/files/lib/wifi/madwifi.sh @@ -225,10 +225,15 @@ enable_atheros() { PSK|psk|PSK2|psk2) case "$enc" in PSK|psk) - proto='proto=WPA';; + proto='proto=WPA' + passphrase="${key}" + ;; PSK2|psk2) - proto='proto=RSN';; + proto='proto=RSN' + passphrase=`wpa_passphrase ${ssid} "${key}" | grep psk | grep -v \#| cut -d= -f2` + ;; esac + cat > /var/run/wpa_supplicant-$ifname.conf <