[package] madwifi: add wep+open, wep+shared format support to madwifi as well
authorJo-Philipp Wich <jow@openwrt.org>
Wed, 27 Oct 2010 11:25:59 +0000 (11:25 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Wed, 27 Oct 2010 11:25:59 +0000 (11:25 +0000)
SVN-Revision: 23657

package/madwifi/files/lib/wifi/madwifi.sh

index 2b2e699..4d390dd 100755 (executable)
@@ -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}"