From: Nicolas Thill Date: Sun, 17 May 2009 02:01:03 +0000 (+0000) Subject: madwifi: don't try to set an interface essid with an empty value X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=b6bb23e3a8b775ffc6bed66a90a2a5259e6a451e;p=openwrt%2Fstaging%2Fansuel.git madwifi: don't try to set an interface essid with an empty value SVN-Revision: 15886 --- 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