]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
RSN IBSS: Fix EAPOL TX using control port
authorMarkus Theil <markus.theil@tu-ilmenau.de>
Mon, 6 Jan 2020 15:21:07 +0000 (16:21 +0100)
committerJouni Malinen <j@w1.fi>
Mon, 6 Jan 2020 20:33:45 +0000 (22:33 +0200)
This was previously done only in supplicant role, but a similar change
is needed for the authenticator role.

Signed-off-by: Markus Theil <markus.theil@tu-ilmenau.de>
wpa_supplicant/ibss_rsn.c

index f1e3ecdb2394ed41d0db08b7d729dda50526946b..a3b5164c005bceccf7c3002090040bffd4b6c68e 100644 (file)
@@ -293,6 +293,10 @@ static int auth_send_eapol(void *ctx, const u8 *addr, const u8 *data,
                   "encrypt=%d)",
                   __func__, MAC2STR(addr), (unsigned long) data_len, encrypt);
 
+       if (wpa_s->drv_flags & WPA_DRIVER_FLAGS_CONTROL_PORT)
+               return wpa_drv_tx_control_port(wpa_s, addr, ETH_P_EAPOL,
+                                              data, data_len, !encrypt);
+
        if (wpa_s->l2)
                return l2_packet_send(wpa_s->l2, addr, ETH_P_EAPOL, data,
                                      data_len);