From: Felix Fietkau Date: Sun, 28 Sep 2008 09:43:37 +0000 (+0000) Subject: madwifi: set essid on to avoid association with different ssid (patch from #3937) X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=d94103514b463b3c4d93802cee4ddb634a1351d9;p=openwrt%2Fstaging%2Fthess.git madwifi: set essid on to avoid association with different ssid (patch from #3937) SVN-Revision: 12759 --- diff --git a/package/madwifi/files/lib/wifi/madwifi.sh b/package/madwifi/files/lib/wifi/madwifi.sh index 1f540a0f7e..df345316b5 100755 --- a/package/madwifi/files/lib/wifi/madwifi.sh +++ b/package/madwifi/files/lib/wifi/madwifi.sh @@ -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