From: Felix Fietkau Date: Mon, 21 May 2007 06:34:05 +0000 (+0000) Subject: fix essid setting in adhoc mode X-Git-Tag: reboot~29201 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=b2db4e7f092abbc344d9c6734bd6377b30ba1f68;p=oweals%2Fopenwrt.git fix essid setting in adhoc mode SVN-Revision: 7301 --- diff --git a/package/madwifi/files/lib/wifi/madwifi.sh b/package/madwifi/files/lib/wifi/madwifi.sh index 9d539a08b0..e24730f905 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