aboutsummaryrefslogtreecommitdiffstats
path: root/package/broadcom-wl/files
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2011-09-09 18:21:30 +0000
committerJo-Philipp Wich <jow@openwrt.org>2011-09-09 18:21:30 +0000
commit0fe2a1b288fed27827d869e45c9684d080a4e694 (patch)
treeb7baea4e50395e5ed599e551ea126e69204a18f3 /package/broadcom-wl/files
parent964feeb54d975b0b8cabcbf7556edc2b4bc6b7e7 (diff)
downloadupstream-0fe2a1b288fed27827d869e45c9684d080a4e694.tar.gz
upstream-0fe2a1b288fed27827d869e45c9684d080a4e694.tar.bz2
upstream-0fe2a1b288fed27827d869e45c9684d080a4e694.zip
broadcom-wl: implement wpa_group_rekey option (mapped to nas -g)
SVN-Revision: 28208
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"