summaryrefslogtreecommitdiff
path: root/package/madwifi/files/lib
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2008-09-28 09:43:37 +0000
committerFelix Fietkau <nbd@openwrt.org>2008-09-28 09:43:37 +0000
commitd94103514b463b3c4d93802cee4ddb634a1351d9 (patch)
tree9570fa21f6d5b45802843a828a08c93f52beb855 /package/madwifi/files/lib
parent93c504a8ae65c345e9bd2f07d6abae78f2472d07 (diff)
downloadmtk-20170518-d94103514b463b3c4d93802cee4ddb634a1351d9.zip
mtk-20170518-d94103514b463b3c4d93802cee4ddb634a1351d9.tar.gz
mtk-20170518-d94103514b463b3c4d93802cee4ddb634a1351d9.tar.bz2
madwifi: set essid on to avoid association with different ssid (patch from #3937)
SVN-Revision: 12759
Diffstat (limited to 'package/madwifi/files/lib')
-rwxr-xr-xpackage/madwifi/files/lib/wifi/madwifi.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/package/madwifi/files/lib/wifi/madwifi.sh b/package/madwifi/files/lib/wifi/madwifi.sh
index 1f540a0..df34531 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