[package] hostap-driver: Use 'any' for unspecified SSIDs
authorVasilis Tsiligiannis <acinonyx@openwrt.gr>
Thu, 17 Mar 2011 07:23:23 +0000 (07:23 +0000)
committerVasilis Tsiligiannis <acinonyx@openwrt.gr>
Thu, 17 Mar 2011 07:23:23 +0000 (07:23 +0000)
SVN-Revision: 26200

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)