aboutsummaryrefslogtreecommitdiffstats
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
parent343b935afabbcf4b320b39812f945762d4902481 (diff)
downloadupstream-4a2b2b02aadd195d8bffbafde9d80738ff7d5abc.tar.gz
upstream-4a2b2b02aadd195d8bffbafde9d80738ff7d5abc.tar.bz2
upstream-4a2b2b02aadd195d8bffbafde9d80738ff7d5abc.zip
madwifi: fix setting the essid for ap mode
SVN-Revision: 5903
-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 2a8465b9fd..a22b5c4adc 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