From: Jouni Malinen Date: Sun, 23 Oct 2016 09:33:05 +0000 (+0300) Subject: nl80211: FILS KEK and nonces for NL80211_CMD_ASSOCIATE X-Git-Tag: hostap_2_7~2183 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=40a45727381c03a3a895dee073653fd5ecadcf71;p=thirdparty%2Fhostap.git nl80211: FILS KEK and nonces for NL80211_CMD_ASSOCIATE This sends the FILS KEK and AAD context (nonces) to the driver with the NL80211_CMD_ASSOCIATE messages when using FILS. Signed-off-by: Jouni Malinen --- diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c index e79413a31..4dc1cecb5 100644 --- a/src/drivers/driver_nl80211.c +++ b/src/drivers/driver_nl80211.c @@ -5154,6 +5154,22 @@ static int wpa_driver_nl80211_associate( if (ret) goto fail; + if (params->fils_kek) { + wpa_printf(MSG_DEBUG, " * FILS KEK (len=%u)", + (unsigned int) params->fils_kek_len); + if (nla_put(msg, NL80211_ATTR_FILS_KEK, params->fils_kek_len, + params->fils_kek)) + goto fail; + } + if (params->fils_nonces) { + wpa_hexdump(MSG_DEBUG, " * FILS nonces (for AAD)", + params->fils_nonces, + params->fils_nonces_len); + if (nla_put(msg, NL80211_ATTR_FILS_NONCES, + params->fils_nonces_len, params->fils_nonces)) + goto fail; + } + ret = send_and_recv_msgs(drv, msg, NULL, NULL); msg = NULL; if (ret) {