]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
nl80211: Do not send FILS ERP sequence number without rRK
authorVinita S. Maloo <vmaloo@codeaurora.org>
Tue, 19 May 2020 12:13:22 +0000 (17:43 +0530)
committerJouni Malinen <j@w1.fi>
Tue, 23 Jun 2020 21:29:58 +0000 (00:29 +0300)
FILS ERP cannot be used without rRK, so include these attributes only
together.

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
src/drivers/driver_nl80211.c

index 87a11a5959147062d6bb9f3ea1aebec71e1a8f2e..ea16d8dafaa9382f046a218654b54d6b0d80ff76 100644 (file)
@@ -5781,13 +5781,13 @@ static int nl80211_put_fils_connect_params(struct wpa_driver_nl80211_data *drv,
                        return -1;
        }
 
-       wpa_printf(MSG_DEBUG, "  * FILS ERP next seq %u",
-                  params->fils_erp_next_seq_num);
-       if (nla_put_u16(msg, NL80211_ATTR_FILS_ERP_NEXT_SEQ_NUM,
-                       params->fils_erp_next_seq_num))
-               return -1;
-
        if (params->fils_erp_rrk_len) {
+               wpa_printf(MSG_DEBUG, "  * FILS ERP next seq %u",
+                          params->fils_erp_next_seq_num);
+               if (nla_put_u16(msg, NL80211_ATTR_FILS_ERP_NEXT_SEQ_NUM,
+                               params->fils_erp_next_seq_num))
+                       return -1;
+
                wpa_printf(MSG_DEBUG, "  * FILS ERP rRK (len=%lu)",
                           (unsigned long) params->fils_erp_rrk_len);
                if (nla_put(msg, NL80211_ATTR_FILS_ERP_RRK,