summaryrefslogtreecommitdiff
path: root/package/madwifi
diff options
context:
space:
mode:
authoracinonyx <acinonyx@3c298f89-4303-0410-b956-a3cf2f4a3e73>2011-04-05 15:09:38 +0000
committeracinonyx <acinonyx@3c298f89-4303-0410-b956-a3cf2f4a3e73>2011-04-05 15:09:38 +0000
commit9975b770c81535b2e823a2b4b4bc1f6568720a3f (patch)
tree46c80c43d113cecab3b619181fc67d767132b6a7 /package/madwifi
parentfdf5c1815291ee7653eb0f7b7f8259617fb9de9b (diff)
[packages] madwifi: Always escape SSID parameter
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26484 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/madwifi')
-rwxr-xr-xpackage/madwifi/files/lib/wifi/madwifi.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/madwifi/files/lib/wifi/madwifi.sh b/package/madwifi/files/lib/wifi/madwifi.sh
index 21a5cf7434..1f22b70af4 100755
--- a/package/madwifi/files/lib/wifi/madwifi.sh
+++ b/package/madwifi/files/lib/wifi/madwifi.sh
@@ -366,7 +366,7 @@ enable_atheros() {
config_get ssid "$vif" ssid
[ -n "$ssid" ] && {
iwconfig "$ifname" essid on
- iwconfig "$ifname" essid "$ssid"
+ iwconfig "$ifname" essid ${ssid:+-- }"$ssid"
}
set_wifi_up "$vif" "$ifname"