diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2011-09-09 18:21:30 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2011-09-09 18:21:30 +0000 |
commit | 796d8cd72ff284eb5443f1c7d7b4f7991a0f9ed3 (patch) | |
tree | 50eecda3d8b86e2849d678e34b41a2843f325b14 /package/broadcom-wl | |
parent | fda7c3c00dc133b14f82ea1cbc8407b2a6be448b (diff) | |
download | upstream-796d8cd72ff284eb5443f1c7d7b4f7991a0f9ed3.tar.gz upstream-796d8cd72ff284eb5443f1c7d7b4f7991a0f9ed3.tar.bz2 upstream-796d8cd72ff284eb5443f1c7d7b4f7991a0f9ed3.zip |
[package] broadcom-wl: implement wpa_group_rekey option (mapped to nas -g)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28208 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/broadcom-wl')
-rw-r--r-- | package/broadcom-wl/files/lib/wifi/broadcom.sh | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/package/broadcom-wl/files/lib/wifi/broadcom.sh b/package/broadcom-wl/files/lib/wifi/broadcom.sh index f4d5213969..8fe801d59b 100644 --- a/package/broadcom-wl/files/lib/wifi/broadcom.sh +++ b/package/broadcom-wl/files/lib/wifi/broadcom.sh @@ -236,8 +236,11 @@ enable_broadcom() { *tkip*) wsec=2;; esac + # group rekey interval + config_get rekey "$vif" wpa_group_rekey + eval "${vif}_key=\"\$key\"" - nasopts="-k \"\$${vif}_key\"" + nasopts="-k \"\$${vif}_key\"${rekey:+ -g $rekey}" ;; *wpa*) wsec_r=1 @@ -260,8 +263,11 @@ enable_broadcom() { *tkip*) wsec=2;; esac + # group rekey interval + config_get rekey "$vif" wpa_group_rekey + eval "${vif}_key=\"\$key\"" - nasopts="-r \"\$${vif}_key\" -h $server -p ${port:-1812}" + nasopts="-r \"\$${vif}_key\" -h $server -p ${port:-1812}${rekey:+ -g $rekey}" ;; esac append vif_do_up "wsec $wsec" "$N" |