aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/ap.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2013-04-23 11:11:10 (GMT)
committerJouni Malinen <j@w1.fi>2013-04-23 11:11:10 (GMT)
commit2a07a276ecd73b08961e68b0c72bec4be1b61a0c (patch)
tree6ef4435d1f6564cf4439f6495bb3d289311d7aa7 /wpa_supplicant/ap.c
parentf2f66ad7e805218468aa041985dccaf8719c296e (diff)
downloadhostap-2a07a276ecd73b08961e68b0c72bec4be1b61a0c.zip
hostap-2a07a276ecd73b08961e68b0c72bec4be1b61a0c.tar.gz
hostap-2a07a276ecd73b08961e68b0c72bec4be1b61a0c.tar.bz2
P2P: Increase GTK rekeying period to 24 hours
Strong ciphers do not need frequent rekeying, so increase the default GTK rekeying period to 24 hours. Signed-hostap: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'wpa_supplicant/ap.c')
-rw-r--r--wpa_supplicant/ap.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/wpa_supplicant/ap.c b/wpa_supplicant/ap.c
index 3ba4496..4033492 100644
--- a/wpa_supplicant/ap.c
+++ b/wpa_supplicant/ap.c
@@ -251,6 +251,16 @@ static int wpa_supplicant_conf_ap(struct wpa_supplicant *wpa_s,
bss->rsn_pairwise = WPA_CIPHER_NONE;
}
+ if (bss->wpa_group_rekey < 86400 && (bss->wpa & 2) &&
+ (bss->wpa_group == WPA_CIPHER_CCMP ||
+ bss->wpa_group == WPA_CIPHER_GCMP)) {
+ /*
+ * Strong ciphers do not need frequent rekeying, so increase
+ * the default GTK rekeying period to 24 hours.
+ */
+ bss->wpa_group_rekey = 86400;
+ }
+
#ifdef CONFIG_WPS
/*
* Enable WPS by default for open and WPA/WPA2-Personal network, but