aboutsummaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorNicolas Thill <nico@openwrt.org>2009-05-17 02:01:03 +0000
committerNicolas Thill <nico@openwrt.org>2009-05-17 02:01:03 +0000
commitb6bb23e3a8b775ffc6bed66a90a2a5259e6a451e (patch)
tree1bca98415ae1843ef8c2f1b29607adfe72d38c42 /package
parentbc152ef2c51f23916fe442924b430ad441b9d886 (diff)
downloadupstream-b6bb23e3a8b775ffc6bed66a90a2a5259e6a451e.tar.gz
upstream-b6bb23e3a8b775ffc6bed66a90a2a5259e6a451e.tar.bz2
upstream-b6bb23e3a8b775ffc6bed66a90a2a5259e6a451e.zip
madwifi: don't try to set an interface essid with an empty value
SVN-Revision: 15886
Diffstat (limited to 'package')
-rwxr-xr-xpackage/madwifi/files/lib/wifi/madwifi.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/package/madwifi/files/lib/wifi/madwifi.sh b/package/madwifi/files/lib/wifi/madwifi.sh
index 65f9637217..24d371b386 100755
--- a/package/madwifi/files/lib/wifi/madwifi.sh
+++ b/package/madwifi/files/lib/wifi/madwifi.sh
@@ -300,8 +300,10 @@ enable_atheros() {
config_set "$vif" bridge "$bridge"
start_net "$ifname" "$net_cfg"
}
- [ -n "$ssid" ] && iwconfig "$ifname" essid on
- iwconfig "$ifname" essid "$ssid"
+ [ -n "$ssid" ] && {
+ iwconfig "$ifname" essid on
+ iwconfig "$ifname" essid "$ssid"
+ }
set_wifi_up "$vif" "$ifname"
# TXPower settings only work if device is up already