From: nbd Date: Mon, 21 May 2007 06:34:05 +0000 (+0000) Subject: fix essid setting in adhoc mode X-Git-Url: https://git.rohieb.name/openwrt.git/commitdiff_plain/c68d3da2985aad2a7dc7a2376071d0516d519440 fix essid setting in adhoc mode git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7301 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- diff --git a/package/madwifi/files/lib/wifi/madwifi.sh b/package/madwifi/files/lib/wifi/madwifi.sh index 9d539a08b..e24730f90 100755 --- a/package/madwifi/files/lib/wifi/madwifi.sh +++ b/package/madwifi/files/lib/wifi/madwifi.sh @@ -148,10 +148,8 @@ enable_atheros() { iwconfig "$ifname" ap "$addr" } ;; - *) - config_get ssid "$vif" ssid - ;; esac + config_get ssid "$vif" ssid [ "$mode" = "sta" ] && { config_get_bool bgscan "$vif" bgscan 1