aboutsummaryrefslogtreecommitdiffstats
path: root/src/ap/wpa_auth_glue.c
diff options
context:
space:
mode:
authorJouni Malinen <jouni@codeaurora.org>2019-06-03 17:00:57 (GMT)
committerJouni Malinen <jouni@codeaurora.org>2019-06-03 17:27:44 (GMT)
commit524dc5bf1035ab83fb65887d30ec99fb55de043b (patch)
treeda5f47a0302a5a5ac609a957c320ec793635898c /src/ap/wpa_auth_glue.c
parenta93b369c17b3b11b190125e2fab343a627c856e2 (diff)
downloadhostap-524dc5bf1035ab83fb65887d30ec99fb55de043b.zip
hostap-524dc5bf1035ab83fb65887d30ec99fb55de043b.tar.gz
hostap-524dc5bf1035ab83fb65887d30ec99fb55de043b.tar.bz2
macsec: Do not change eapol_version for non-MACsec cases in hostapd
It is safer to maintain the old EAPOL version (2) in EAPOL frames that are not related to MACsec and only update the version to 3 for the MACsec specific cases. Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
Diffstat (limited to 'src/ap/wpa_auth_glue.c')
-rw-r--r--src/ap/wpa_auth_glue.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ap/wpa_auth_glue.c b/src/ap/wpa_auth_glue.c
index 45172c6..0800a87 100644
--- a/src/ap/wpa_auth_glue.c
+++ b/src/ap/wpa_auth_glue.c
@@ -53,6 +53,10 @@ static void hostapd_wpa_auth_conf(struct hostapd_bss_config *conf,
wconf->rsn_pairwise = conf->rsn_pairwise;
wconf->rsn_preauth = conf->rsn_preauth;
wconf->eapol_version = conf->eapol_version;
+#ifdef CONFIG_MACSEC
+ if (wconf->eapol_version > 2)
+ wconf->eapol_version = 2;
+#endif /* CONFIG_MACSEC */
wconf->wmm_enabled = conf->wmm_enabled;
wconf->wmm_uapsd = conf->wmm_uapsd;
wconf->disable_pmksa_caching = conf->disable_pmksa_caching;