[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 3de5b04a004a33c3c477109faad9e7838af72018..9d194538193d9ebc5f34dae5789b9d6d5cd7dd79 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)