aboutsummaryrefslogtreecommitdiffstats
path: root/src/rsn_supp/preauth.h
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2016-01-15 18:04:41 (GMT)
committerJouni Malinen <j@w1.fi>2016-01-15 18:04:41 (GMT)
commit6b418ce8624b7466be983b887309e6873c89dc43 (patch)
tree6317c52802536609c385bc0d1ef1674ae5f53d75 /src/rsn_supp/preauth.h
parent5a38a7fe436a3b00367d9f066794b563ff0e2ac7 (diff)
downloadhostap-6b418ce8624b7466be983b887309e6873c89dc43.zip
hostap-6b418ce8624b7466be983b887309e6873c89dc43.tar.gz
hostap-6b418ce8624b7466be983b887309e6873c89dc43.tar.bz2
Fix wpa_supplicant build with IEEE8021X_EAPOL=y and CONFIG_NO_WPA=y
The PMKSA caching and RSN pre-authentication components were marked as conditional on IEEE8021X_EAPOL. However, the empty wrappers are needed also in a case IEEE8021X_EAPOL is defined with CONFIG_NO_WPA. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'src/rsn_supp/preauth.h')
-rw-r--r--src/rsn_supp/preauth.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rsn_supp/preauth.h b/src/rsn_supp/preauth.h
index 277f066..8caf3ee 100644
--- a/src/rsn_supp/preauth.h
+++ b/src/rsn_supp/preauth.h
@@ -11,7 +11,7 @@
struct wpa_scan_results;
-#ifdef IEEE8021X_EAPOL
+#if defined(IEEE8021X_EAPOL) && !defined(CONFIG_NO_WPA)
void pmksa_candidate_free(struct wpa_sm *sm);
int rsn_preauth_init(struct wpa_sm *sm, const u8 *dst,
@@ -27,7 +27,7 @@ int rsn_preauth_get_status(struct wpa_sm *sm, char *buf, size_t buflen,
int verbose);
int rsn_preauth_in_progress(struct wpa_sm *sm);
-#else /* IEEE8021X_EAPOL */
+#else /* IEEE8021X_EAPOL && !CONFIG_NO_WPA */
static inline void pmksa_candidate_free(struct wpa_sm *sm)
{
@@ -74,6 +74,6 @@ static inline int rsn_preauth_in_progress(struct wpa_sm *sm)
return 0;
}
-#endif /* IEEE8021X_EAPOL */
+#endif /* IEEE8021X_EAPOL && !CONFIG_NO_WPA */
#endif /* PREAUTH_H */