projects
/
openwrt
/
staging
/
pepe2k.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b2f0476
)
hostapd: change wpa_supplicant.sh to pass 64 byte hex psk unquoted and remove the...
author
Jo-Philipp Wich
<jow@openwrt.org>
Thu, 5 Jul 2012 12:25:29 +0000
(12:25 +0000)
committer
Jo-Philipp Wich
<jow@openwrt.org>
Thu, 5 Jul 2012 12:25:29 +0000
(12:25 +0000)
SVN-Revision: 32614
package/hostapd/files/wpa_supplicant.sh
patch
|
blob
|
history
diff --git
a/package/hostapd/files/wpa_supplicant.sh
b/package/hostapd/files/wpa_supplicant.sh
index 8caad77c20e24247c5eb10feb479dcc3385f598f..ed6597c2598fb7d2c60bc56f29275fc35c88bd82 100644
(file)
--- a/
package/hostapd/files/wpa_supplicant.sh
+++ b/
package/hostapd/files/wpa_supplicant.sh
@@
-63,11
+63,10
@@
wpa_supplicant_setup_vif() {
key_mgmt='WPA-NONE'
driver='wext'
}
- config_get_bool usepassphrase "$vif" usepassphrase 1
- if [ "$usepassphrase" = "1" ]; then
- passphrase="psk=\"${key}\""
- else
+ if [ ${#key} -eq 64 ]; then
passphrase="psk=${key}"
+ else
+ passphrase="psk=\"${key}\""
fi
case "$enc" in
*psk2*)