aboutsummaryrefslogtreecommitdiffstats
path: root/package/madwifi
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
commit0c21e6a7b8af3ecfd2fbe39e8a9dc9986fc79173 (patch)
tree63ac252ee0dda54efe0dee2cf6c1a8cd1898ec22 /package/madwifi
parentd8ac2c7c3fd37d3040cb577a511cfb01dacbe5bd (diff)
downloadupstream-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-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
}