aboutsummaryrefslogtreecommitdiffstats
path: root/src/ap/wpa_auth_glue.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2017-03-11 23:26:43 (GMT)
committerJouni Malinen <j@w1.fi>2017-03-12 17:24:11 (GMT)
commit09368515d1308b64ebb34826eedf3b3e55994c92 (patch)
tree75bbcb29f3f8cf021ce6e2dde239abded1e25a9f /src/ap/wpa_auth_glue.c
parentf9561868ecbad5acdd992fe2d1ba264071133542 (diff)
downloadhostap-09368515d1308b64ebb34826eedf3b3e55994c92.zip
hostap-09368515d1308b64ebb34826eedf3b3e55994c92.tar.gz
hostap-09368515d1308b64ebb34826eedf3b3e55994c92.tar.bz2
OWE: Process Diffie-Hellman Parameter element in AP mode
This adds AP side processing for OWE Diffie-Hellman Parameter element in (Re)Association Request frame and adding it in (Re)Association Response frame. Signed-off-by: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'src/ap/wpa_auth_glue.c')
-rw-r--r--src/ap/wpa_auth_glue.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ap/wpa_auth_glue.c b/src/ap/wpa_auth_glue.c
index 969ede2..d4e0140 100644
--- a/src/ap/wpa_auth_glue.c
+++ b/src/ap/wpa_auth_glue.c
@@ -245,6 +245,12 @@ static const u8 * hostapd_wpa_auth_get_psk(void *ctx, const u8 *addr,
}
#endif /* CONFIG_SAE */
+#ifdef CONFIG_OWE
+ if ((hapd->conf->wpa_key_mgmt & WPA_KEY_MGMT_OWE) &&
+ sta && sta->owe_pmk)
+ return sta->owe_pmk;
+#endif /* CONFIG_OWE */
+
psk = hostapd_get_psk(hapd->conf, addr, p2p_dev_addr, prev_psk);
/*
* This is about to iterate over all psks, prev_psk gives the last