summaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2010-10-27 11:25:59 +0000
committerJo-Philipp Wich <jow@openwrt.org>2010-10-27 11:25:59 +0000
commit1b495361a06a5bb3428971b5823ffcd35c367108 (patch)
tree9c45497b487d8c4ff101e2d7d72dffa7e754940d /package
parent0280ac8c92f1797131fbff83d03d39e74294c771 (diff)
downloadmtk-20170518-1b495361a06a5bb3428971b5823ffcd35c367108.zip
mtk-20170518-1b495361a06a5bb3428971b5823ffcd35c367108.tar.gz
mtk-20170518-1b495361a06a5bb3428971b5823ffcd35c367108.tar.bz2
madwifi: add wep+open, wep+shared format support to madwifi as well
SVN-Revision: 23657
Diffstat (limited to 'package')
-rwxr-xr-xpackage/madwifi/files/lib/wifi/madwifi.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/package/madwifi/files/lib/wifi/madwifi.sh b/package/madwifi/files/lib/wifi/madwifi.sh
index 2b2e699..4d390dd 100755
--- a/package/madwifi/files/lib/wifi/madwifi.sh
+++ b/package/madwifi/files/lib/wifi/madwifi.sh
@@ -215,7 +215,11 @@ enable_atheros() {
}
case "$enc" in
- WEP|wep)
+ wep*)
+ case "$enc" in
+ *open*) iwpriv "$ifname" authmode 1;;
+ *) iwpriv "$ifname" authmode 2;;
+ ;;
for idx in 1 2 3 4; do
config_get key "$vif" "key${idx}"
iwconfig "$ifname" enc "[$idx]" "${key:-off}"