diff options
author | Nicolas Thill <nico@openwrt.org> | 2009-05-17 02:01:03 +0000 |
---|---|---|
committer | Nicolas Thill <nico@openwrt.org> | 2009-05-17 02:01:03 +0000 |
commit | b5f1835dbb673c235c2f8a900070de032cb7ebc5 (patch) | |
tree | d3d5e7ae48e0e0781c05c6fa5669500eda3c7c16 /package/madwifi/files | |
parent | e60a53c833c33f1be07664acd9a04fa7c2e36c53 (diff) | |
download | upstream-b5f1835dbb673c235c2f8a900070de032cb7ebc5.tar.gz upstream-b5f1835dbb673c235c2f8a900070de032cb7ebc5.tar.bz2 upstream-b5f1835dbb673c235c2f8a900070de032cb7ebc5.zip |
[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')
-rwxr-xr-x | package/madwifi/files/lib/wifi/madwifi.sh | 6 |
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 |