From b6bb23e3a8b775ffc6bed66a90a2a5259e6a451e Mon Sep 17 00:00:00 2001 From: Nicolas Thill Date: Sun, 17 May 2009 02:01:03 +0000 Subject: [PATCH] madwifi: don't try to set an interface essid with an empty value SVN-Revision: 15886 --- package/madwifi/files/lib/wifi/madwifi.sh | 6 ++++-- 1 file 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 -- 2.30.2