diff options
author | Felix Fietkau <nbd@openwrt.org> | 2012-03-27 13:21:39 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2012-03-27 13:21:39 +0000 |
commit | 0c21e6a7b8af3ecfd2fbe39e8a9dc9986fc79173 (patch) | |
tree | 63ac252ee0dda54efe0dee2cf6c1a8cd1898ec22 /package/madwifi | |
parent | d8ac2c7c3fd37d3040cb577a511cfb01dacbe5bd (diff) | |
download | upstream-0c21e6a7b8af3ecfd2fbe39e8a9dc9986fc79173.tar.gz upstream-0c21e6a7b8af3ecfd2fbe39e8a9dc9986fc79173.tar.bz2 upstream-0c21e6a7b8af3ecfd2fbe39e8a9dc9986fc79173.zip |
madwifi: modify madwifi.sh to support IBSS WPA-NONE
Signed-off-by: Antonio Quartulli <ordex@autistici.org>
SVN-Revision: 31082
Diffstat (limited to 'package/madwifi')
-rwxr-xr-x | package/madwifi/files/lib/wifi/madwifi.sh | 9 |
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 } |