aboutsummaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2012-03-27 13:21:39 +0000
committerFelix Fietkau <nbd@openwrt.org>2012-03-27 13:21:39 +0000
commit0954e0c07db21785aacf9034c98e1368c0bd9a46 (patch)
treed2f69164c3622ee57fbab258cbd9381056938dd1 /package
parent699baacf386033412f5a232fa7f6b06ccc8592a9 (diff)
downloadupstream-0954e0c07db21785aacf9034c98e1368c0bd9a46.tar.gz
upstream-0954e0c07db21785aacf9034c98e1368c0bd9a46.tar.bz2
upstream-0954e0c07db21785aacf9034c98e1368c0bd9a46.zip
madwifi: modify madwifi.sh to support IBSS WPA-NONE
Signed-off-by: Antonio Quartulli <ordex@autistici.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31082 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package')
-rwxr-xr-xpackage/madwifi/files/lib/wifi/madwifi.sh9
1 files changed, 9 insertions, 0 deletions
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
}