[PATCH] [hostap-driver] Always escape essid
[openwrt/svn-archive/archive.git] / package / hostap-driver / files / lib / wifi / hostap.sh
index 1f43b2a..cacc3ba 100755 (executable)
@@ -72,7 +72,7 @@ enable_prism2() {
                config_get ssid "$vif" ssid
                config_get mode "$vif" mode
 
                config_get ssid "$vif" ssid
                config_get mode "$vif" mode
 
-               [ "$mode" = "wds" ] || iwconfig "$device" essid "$ssid"
+               [ "$mode" = "wds" ] || iwconfig "$device" essid -- "$ssid"
 
                case "$mode" in
                        sta)
 
                case "$mode" in
                        sta)