aboutsummaryrefslogtreecommitdiffstats
path: root/package/hostapd
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2010-02-19 01:34:44 +0000
committerFelix Fietkau <nbd@openwrt.org>2010-02-19 01:34:44 +0000
commit31cfd93be4261e7bc0d3577e4c85d39d73ccf881 (patch)
treea070c860b487bdd2dc2761c026cf52a81af55767 /package/hostapd
parentd692a2340c40f62c608fb54f0cc9736a30edcd07 (diff)
downloadupstream-31cfd93be4261e7bc0d3577e4c85d39d73ccf881.tar.gz
upstream-31cfd93be4261e7bc0d3577e4c85d39d73ccf881.tar.bz2
upstream-31cfd93be4261e7bc0d3577e4c85d39d73ccf881.zip
hostapd: support creating WEP networks for mac80211 (patch by Stijn Tintel), fixes #6672
SVN-Revision: 19720
Diffstat (limited to 'package/hostapd')
-rw-r--r--package/hostapd/files/hostapd.sh22
1 files changed, 22 insertions, 0 deletions
diff --git a/package/hostapd/files/hostapd.sh b/package/hostapd/files/hostapd.sh
index 9ee7657e2c..b477cd7737 100644
--- a/package/hostapd/files/hostapd.sh
+++ b/package/hostapd/files/hostapd.sh
@@ -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=