]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
nl80211: FILS KEK and nonces for NL80211_CMD_ASSOCIATE
authorJouni Malinen <jouni@qca.qualcomm.com>
Sun, 23 Oct 2016 09:33:05 +0000 (12:33 +0300)
committerJouni Malinen <j@w1.fi>
Thu, 27 Oct 2016 12:02:08 +0000 (15:02 +0300)
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 <jouni@qca.qualcomm.com>
src/drivers/driver_nl80211.c

index e79413a31291e98b2cb50b08ff9437ea4c2673fd..4dc1cecb5f4c181de15a99b475029973a8c1aebd 100644 (file)
@@ -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) {