aboutsummaryrefslogtreecommitdiffstats
path: root/src/common/wpa_common.h
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2015-12-09 22:06:06 (GMT)
committerJouni Malinen <j@w1.fi>2015-12-09 22:14:35 (GMT)
commit59e78c2408e65db4b7b965320129ecf15561e884 (patch)
tree9314efa676854a53d9cdcd9730186b5dc939a848 /src/common/wpa_common.h
parentcc02fd3effe2b8caaabc0ca8ea36932858275917 (diff)
downloadhostap-59e78c2408e65db4b7b965320129ecf15561e884.zip
hostap-59e78c2408e65db4b7b965320129ecf15561e884.tar.gz
hostap-59e78c2408e65db4b7b965320129ecf15561e884.tar.bz2
FT: Fix FTIE generation for 4-way handshake after FT protocol run
wpa_insert_pmkid() did not support cases where the original RSN IE included any PMKIDs. That case can happen when PTK rekeying through 4-way handshake is used after FT protocol run. Such a 4-way handshake used to fail with wpa_supplicant being unable to build the EAPOL-Key msg 2/4. Fix this by extending wpa_insert_pmkid() to support removal of the old PMKIDs, if needed. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'src/common/wpa_common.h')
-rw-r--r--src/common/wpa_common.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/wpa_common.h b/src/common/wpa_common.h
index ee71bfc..af1d0f0 100644
--- a/src/common/wpa_common.h
+++ b/src/common/wpa_common.h
@@ -409,7 +409,7 @@ u32 wpa_akm_to_suite(int akm);
int wpa_compare_rsn_ie(int ft_initial_assoc,
const u8 *ie1, size_t ie1len,
const u8 *ie2, size_t ie2len);
-int wpa_insert_pmkid(u8 *ies, size_t ies_len, const u8 *pmkid);
+int wpa_insert_pmkid(u8 *ies, size_t *ies_len, const u8 *pmkid);
struct wpa_ft_ies {
const u8 *mdie;