[packages] madwifi: Always escape SSID parameter
authorVasilis Tsiligiannis <acinonyx@openwrt.gr>
Tue, 5 Apr 2011 15:09:38 +0000 (15:09 +0000)
committerVasilis Tsiligiannis <acinonyx@openwrt.gr>
Tue, 5 Apr 2011 15:09:38 +0000 (15:09 +0000)
SVN-Revision: 26484

package/madwifi/files/lib/wifi/madwifi.sh

index 21a5cf743496970f4e5a8f8cb0fe6f0b6cf1da11..1f22b70af43d6977c3ad427e1745d58e357032d6 100755 (executable)
@@ -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"