diff options
| author | Jouni Malinen <j@w1.fi> | 2013-04-30 13:44:18 +0530 |
|---|---|---|
| committer | Linux Build Service Account <lnxbuild@localhost> | 2013-07-24 17:32:48 -0600 |
| commit | e6bafc55040b366263b58e6bc8f2e11dda74df3c (patch) | |
| tree | 3c0a59b30b838c804d11d222e12fc6dfa2b39f46 | |
| parent | 5d1c8ad11de48ba5e449e83e1e5dcd844e9c35d1 (diff) | |
| download | android_external_wpa_supplicant_8-e6bafc55040b366263b58e6bc8f2e11dda74df3c.tar.gz android_external_wpa_supplicant_8-e6bafc55040b366263b58e6bc8f2e11dda74df3c.tar.bz2 android_external_wpa_supplicant_8-e6bafc55040b366263b58e6bc8f2e11dda74df3c.zip | |
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.
CR-fixed: 469048
Git-commit: 2a07a276ecd73b08961e68b0c72bec4be1b61a0c
Git-repo : git://w1.fi/srv/git/hostap.git
Signed-hostap: Jouni Malinen <j@w1.fi>
Change-Id: I1abc1404db65b9d4cb82e758cfffd832af459254
| -rw-r--r-- | wpa_supplicant/ap.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/wpa_supplicant/ap.c b/wpa_supplicant/ap.c index 3ba44964..4033492a 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 |
