[package] hostap-driver: Use 'any' for unspecified SSIDs
authorVasilis Tsiligiannis <b_tsiligiannis@silverton.gr>
Thu, 17 Mar 2011 07:23:23 +0000 (07:23 +0000)
committerVasilis Tsiligiannis <b_tsiligiannis@silverton.gr>
Thu, 17 Mar 2011 07:23:23 +0000 (07:23 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26200 3c298f89-4303-0410-b956-a3cf2f4a3e73

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)