Source

belak.gentoo / net-misc / wicd / files / wicd-1.7.1_pre20111210-wpa-psk-hex-template.patch

Full commit
diff -U 3 -dHrN wicd.org/encryption/templates/active wicd/encryption/templates/active
--- wicd.org/encryption/templates/active	2011-12-05 16:22:49.584224158 +0100
+++ wicd/encryption/templates/active	2011-12-05 16:16:10.736172566 +0100
@@ -1,6 +1,7 @@
 wpa
 wpa-peap
 wpa-psk
+wpa-psk-hex
 wpa2-leap
 wpa2-peap
 wep-hex
diff -U 3 -dHrN wicd.org/encryption/templates/wpa-psk-hex wicd/encryption/templates/wpa-psk-hex
--- wicd.org/encryption/templates/wpa-psk-hex	1970-01-01 01:00:00.000000000 +0100
+++ wicd/encryption/templates/wpa-psk-hex	2011-12-05 16:16:43.428012863 +0100
@@ -0,0 +1,15 @@
+name = WPA 1/2 (Preshared Hex Key)
+author = Thomas Kahle
+version = 1
+require apsk *Preshared_Key
+-----
+ctrl_interface=/var/run/wpa_supplicant
+network={
+       ssid="$_ESSID"
+       scan_ssid=$_SCAN
+       proto=WPA RSN
+       key_mgmt=WPA-PSK
+       pairwise=CCMP TKIP
+       group=CCMP TKIP
+       psk=$_APSK
+}