hostapd: support creating WEP networks for mac80211 (patch by Stijn Tintel), fixes...
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Fri, 19 Feb 2010 01:34:44 +0000 (01:34 +0000)
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Fri, 19 Feb 2010 01:34:44 +0000 (01:34 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19720 3c298f89-4303-0410-b956-a3cf2f4a3e73

package/hostapd/files/hostapd.sh

index 9ee7657..b477cd7 100644 (file)
@@ -68,6 +68,28 @@ hostapd_set_bss_options() {
                        append "$var" "wpa_group_rekey=300" "$N"
                        append "$var" "wpa_gmk_rekey=640" "$N"
                ;;
+               *wep*)
+                       config_get key "$vif" key
+                       key="${key:-1}"
+                       case "$key" in
+                               [1234])
+                                       for idx in 1 2 3 4; do
+                                               local zidx
+                                               zidx=$(($idx - 1))
+                                               config_get ckey "$vif" "key${idx}"
+                                               [ -n "$ckey" ] && \
+                                                       append "$var" "wep_key${zidx}=$(prepare_key_wep "$ckey")" "$N"
+                                       done
+                                       append "$var" "wep_default_key=$((key - 1))"  "$N"
+                               ;;
+                               *)
+                                       append "$var" "wep_key0=$(prepare_key_wep "$key")" "$N"
+                                       append "$var" "wep_default_key=0" "$N"
+                               ;;
+                       esac
+                       wpa=0
+                       crypto=
+               ;;
                *)
                        wpa=0
                        crypto=
This page took 0.030817 seconds and 4 git commands to generate.