aboutsummaryrefslogtreecommitdiffstats
path: root/package/madwifi/files
diff options
context:
space:
mode:
Diffstat (limited to 'package/madwifi/files')
-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