summaryrefslogtreecommitdiff
path: root/package/broadcom-wl/files
diff options
context:
space:
mode:
authorjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>2011-09-09 18:21:30 +0000
committerjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>2011-09-09 18:21:30 +0000
commitc06524225b017555086fbc495311816c329b1d79 (patch)
tree50eecda3d8b86e2849d678e34b41a2843f325b14 /package/broadcom-wl/files
parente1f20d7ef78c6983283019bebe322309a94dd9d7 (diff)
[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/files')
-rw-r--r--package/broadcom-wl/files/lib/wifi/broadcom.sh10
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"