From: Felix Fietkau Date: Tue, 27 Mar 2012 13:21:39 +0000 (+0000) Subject: madwifi: modify madwifi.sh to support IBSS WPA-NONE X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=0c21e6a7b8af3ecfd2fbe39e8a9dc9986fc79173;p=openwrt%2Fstaging%2Fansuel.git madwifi: modify madwifi.sh to support IBSS WPA-NONE Signed-off-by: Antonio Quartulli SVN-Revision: 31082 --- diff --git a/package/madwifi/files/lib/wifi/madwifi.sh b/package/madwifi/files/lib/wifi/madwifi.sh index a180a82d88..2e37325511 100755 --- a/package/madwifi/files/lib/wifi/madwifi.sh +++ b/package/madwifi/files/lib/wifi/madwifi.sh @@ -415,6 +415,15 @@ enable_atheros() { } fi ;; + adhoc) + if eval "type wpa_supplicant_setup_vif" 2>/dev/null >/dev/null; then + wpa_supplicant_setup_vif "$vif" madwifi || { + echo "enable_atheros($device): Failed to set up wpa" + ifconfig "$ifname" down + wlanconfig "$ifname" destroy + continue + } + fi esac done }