[package] hostap-driver: Use 'any' for unspecified SSIDs
[openwrt/svn-archive/archive.git] / package / hostap-driver / files / lib / wifi / hostap.sh
index 3de5b04..9d19453 100755 (executable)
@@ -112,7 +112,7 @@ enable_prism2() {
                config_get ssid "$vif" ssid
                config_get mode "$vif" mode
 
-               [ "$mode" = "wds" ] || iwconfig "$phy" essid -- "$ssid"
+               [ "$mode" = "wds" ] || iwconfig "$phy" essid ${ssid:+-- }"${ssid:-any}"
 
                case "$mode" in
                        sta)