From 071f766b1ddbdd19a8c97ed2773e892c039a35d1 Mon Sep 17 00:00:00 2001 From: nbd Date: Tue, 27 Mar 2012 13:21:39 +0000 Subject: madwifi: modify madwifi.sh to support IBSS WPA-NONE Signed-off-by: Antonio Quartulli git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31082 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- package/madwifi/files/lib/wifi/madwifi.sh | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'package/madwifi') 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 } -- cgit v1.2.3