diff options
author | Markus Theil <markus.theil@tu-ilmenau.de> | 2020-01-06 15:21:07 (GMT) |
---|---|---|
committer | Jouni Malinen <j@w1.fi> | 2020-01-06 20:33:45 (GMT) |
commit | 8296ee18053ce45c0915b791be9d413f9f573402 (patch) | |
tree | efae4816297a82aed233047d0a1b5ef98db7234a /wpa_supplicant/ibss_rsn.c | |
parent | 09f96acb9d18c55ea7898d61775636199fe9dd20 (diff) | |
download | hostap-8296ee18053ce45c0915b791be9d413f9f573402.zip hostap-8296ee18053ce45c0915b791be9d413f9f573402.tar.gz hostap-8296ee18053ce45c0915b791be9d413f9f573402.tar.bz2 |
RSN IBSS: Fix EAPOL TX using control port
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>
Diffstat (limited to 'wpa_supplicant/ibss_rsn.c')
-rw-r--r-- | wpa_supplicant/ibss_rsn.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/wpa_supplicant/ibss_rsn.c b/wpa_supplicant/ibss_rsn.c index f1e3ecd..a3b5164 100644 --- a/wpa_supplicant/ibss_rsn.c +++ b/wpa_supplicant/ibss_rsn.c @@ -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); |