From 0c21e6a7b8af3ecfd2fbe39e8a9dc9986fc79173 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Tue, 27 Mar 2012 13:21:39 +0000 Subject: [PATCH] madwifi: modify madwifi.sh to support IBSS WPA-NONE Signed-off-by: Antonio Quartulli SVN-Revision: 31082 --- package/madwifi/files/lib/wifi/madwifi.sh | 9 +++++++++ 1 file changed, 9 insertions(+) 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 } -- 2.25.1