summaryrefslogtreecommitdiff
path: root/package/madwifi/files/lib/wifi
diff options
context:
space:
mode:
authornico <nico@3c298f89-4303-0410-b956-a3cf2f4a3e73>2009-05-17 02:01:03 +0000
committernico <nico@3c298f89-4303-0410-b956-a3cf2f4a3e73>2009-05-17 02:01:03 +0000
commit9bf1cfd44bd7ee26ab6ad59e4369ee81443aed11 (patch)
treed3d5e7ae48e0e0781c05c6fa5669500eda3c7c16 /package/madwifi/files/lib/wifi
parent5441e7e9d6e4f443bb4ff29a7dccff05ac54a221 (diff)
[package] madwifi: don't try to set an interface essid with an empty value
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15886 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/madwifi/files/lib/wifi')
-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