]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
FILS: Include wpa_insert_pmkid() in non-FT builds
authorJouni Malinen <jouni@qca.qualcomm.com>
Sat, 22 Oct 2016 19:46:48 +0000 (22:46 +0300)
committerJouni Malinen <j@w1.fi>
Sat, 22 Oct 2016 19:55:27 +0000 (22:55 +0300)
This function is needed for FILS as well as FT.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
src/common/wpa_common.c

index 02a2a518be34316a331c737d12589cf649b1a2f3..a87210efbf577c7f973f2460da0380690d79fc9b 100644 (file)
@@ -1483,7 +1483,7 @@ int wpa_compare_rsn_ie(int ft_initial_assoc,
 }
 
 
-#ifdef CONFIG_IEEE80211R
+#if defined(CONFIG_IEEE80211R) || defined(CONFIG_FILS)
 int wpa_insert_pmkid(u8 *ies, size_t *ies_len, const u8 *pmkid)
 {
        u8 *start, *end, *rpos, *rend;
@@ -1582,7 +1582,7 @@ int wpa_insert_pmkid(u8 *ies, size_t *ies_len, const u8 *pmkid)
 
        return 0;
 }
-#endif /* CONFIG_IEEE80211R */
+#endif /* CONFIG_IEEE80211R || CONFIG_FILS */
 
 
 int wpa_cipher_key_len(int cipher)