summaryrefslogtreecommitdiff
path: root/package/madwifi/files/lib
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2006-12-27 00:55:59 +0000
committerFelix Fietkau <nbd@openwrt.org>2006-12-27 00:55:59 +0000
commit4a2b2b02aadd195d8bffbafde9d80738ff7d5abc (patch)
treea34bdd3130a29f9d0eb9630f760c718c3cc22b28 /package/madwifi/files/lib
parent343b935afabbcf4b320b39812f945762d4902481 (diff)
downloadmtk-20170518-4a2b2b02aadd195d8bffbafde9d80738ff7d5abc.zip
mtk-20170518-4a2b2b02aadd195d8bffbafde9d80738ff7d5abc.tar.gz
mtk-20170518-4a2b2b02aadd195d8bffbafde9d80738ff7d5abc.tar.bz2
madwifi: fix setting the essid for ap mode
SVN-Revision: 5903
Diffstat (limited to 'package/madwifi/files/lib')
-rwxr-xr-xpackage/madwifi/files/lib/wifi/madwifi.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/madwifi/files/lib/wifi/madwifi.sh b/package/madwifi/files/lib/wifi/madwifi.sh
index 2a8465b..a22b5c4 100755
--- a/package/madwifi/files/lib/wifi/madwifi.sh
+++ b/package/madwifi/files/lib/wifi/madwifi.sh
@@ -130,6 +130,7 @@ enable_atheros() {
config_set "$vif" bridge "$bridge"
start_net "$ifname" "$net_cfg"
}
+ iwconfig "$ifname" essid "$ssid"
case "$mode" in
ap)
hostapd_setup_vif "$vif" madwifi || {
@@ -141,7 +142,6 @@ enable_atheros() {
}
;;
wds|sta)
- iwconfig "$ifname" essid "$ssid"
# FIXME: implement wpa_supplicant calls here
;;
esac