projects
/
openwrt
/
staging
/
stintel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f14b8d4
)
hostapd: ensure that wpa_supplicant_setup_vif() returns success in cases where wpa_su...
author
Jo-Philipp Wich
<jow@openwrt.org>
Tue, 9 Oct 2012 16:41:28 +0000
(16:41 +0000)
committer
Jo-Philipp Wich
<jow@openwrt.org>
Tue, 9 Oct 2012 16:41:28 +0000
(16:41 +0000)
SVN-Revision: 33674
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 5c4bd93d02d3774470de890a64ace6e0a7d7537c..928243e42509156f6400d88985fe9bd7936a4bdd 100644
(file)
--- a/
package/hostapd/files/wpa_supplicant.sh
+++ b/
package/hostapd/files/wpa_supplicant.sh
@@
-191,6
+191,9
@@
network={
$wep_tx_keyidx
}
EOF
- [ -z "$proto" -a "$key_mgmt" != "NONE" ] || \
+ 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
+ fi
}