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-Tag: 8.09.1~49 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=c8c0b57e4fe14c5857da7e7d15127f38009ff934;p=openwrt%2Fsvn-archive%2Fopenwrt.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 a3cf4d75e1..47c298486a 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