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 | b6bb23e3a8b775ffc6bed66a90a2a5259e6a451e (patch) | |
tree | 1bca98415ae1843ef8c2f1b29607adfe72d38c42 /package | |
parent | bc152ef2c51f23916fe442924b430ad441b9d886 (diff) | |
download | mtk-20170518-b6bb23e3a8b775ffc6bed66a90a2a5259e6a451e.zip mtk-20170518-b6bb23e3a8b775ffc6bed66a90a2a5259e6a451e.tar.gz mtk-20170518-b6bb23e3a8b775ffc6bed66a90a2a5259e6a451e.tar.bz2 |
madwifi: don't try to set an interface essid with an empty value
SVN-Revision: 15886
Diffstat (limited to 'package')
-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 65f9637..24d371b 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 |