madwifi: set essid on to avoid association with different ssid (patch from #3937)
authorFelix Fietkau <nbd@openwrt.org>
Sun, 28 Sep 2008 09:43:37 +0000 (09:43 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Sun, 28 Sep 2008 09:43:37 +0000 (09:43 +0000)
SVN-Revision: 12759

package/madwifi/files/lib/wifi/madwifi.sh

index 1f540a0f7e513d957f69c4d0a87d222898e1950b..df345316b5205f8bdc107323a44adcab8eb83866 100755 (executable)
@@ -258,6 +258,7 @@ enable_atheros() {
                        config_set "$vif" bridge "$bridge"
                        start_net "$ifname" "$net_cfg"
                }
+               [ -n "$ssid" ] && iwconfig "$ifname" essid on
                iwconfig "$ifname" essid "$ssid"
                set_wifi_up "$vif" "$ifname"
                case "$mode" in