aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2013-07-04 21:26:07 +0000
committerJo-Philipp Wich <jow@openwrt.org>2013-07-04 21:26:07 +0000
commit0a2e45ea30966e3587a9d937361bc1c05c6588d6 (patch)
treea63c8aadc374d1c6ca0bd80f7bf5ceb57aa40cbc
parentf04024ed439a0a5ca20f86cd2b2e2a9a0665803c (diff)
downloadupstream-0a2e45ea30966e3587a9d937361bc1c05c6588d6.tar.gz
upstream-0a2e45ea30966e3587a9d937361bc1c05c6588d6.tar.bz2
upstream-0a2e45ea30966e3587a9d937361bc1c05c6588d6.zip
AA: madwifi: merge r37172
git-svn-id: svn://svn.openwrt.org/openwrt/branches/attitude_adjustment@37174 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rwxr-xr-xpackage/madwifi/files/lib/wifi/madwifi.sh9
1 files changed, 5 insertions, 4 deletions
diff --git a/package/madwifi/files/lib/wifi/madwifi.sh b/package/madwifi/files/lib/wifi/madwifi.sh
index 2e37325511..eb687696f7 100755
--- a/package/madwifi/files/lib/wifi/madwifi.sh
+++ b/package/madwifi/files/lib/wifi/madwifi.sh
@@ -390,8 +390,8 @@ enable_atheros() {
txpower="${txpower:-$vif_txpower}"
[ -z "$txpower" ] || iwconfig "$ifname" txpower "${txpower%%.*}"
- case "$mode" in
- ap)
+ case "$mode:$enc" in
+ ap:*)
config_get_bool isolate "$vif" isolate 0
iwpriv "$ifname" ap_bridge "$((isolate^1))"
@@ -405,7 +405,7 @@ enable_atheros() {
}
fi
;;
- wds|sta)
+ wds:*|sta:*)
if eval "type wpa_supplicant_setup_vif" 2>/dev/null >/dev/null; then
wpa_supplicant_setup_vif "$vif" wext || {
echo "enable_atheros($device): Failed to set up wpa_supplicant for interface $ifname" >&2
@@ -415,7 +415,7 @@ enable_atheros() {
}
fi
;;
- adhoc)
+ adhoc:wep*|adhoc:psk*|adhoc:wpa*)
if eval "type wpa_supplicant_setup_vif" 2>/dev/null >/dev/null; then
wpa_supplicant_setup_vif "$vif" madwifi || {
echo "enable_atheros($device): Failed to set up wpa"
@@ -424,6 +424,7 @@ enable_atheros() {
continue
}
fi
+ ;;
esac
done
}