Provide information about the encryption status of received EAPOL frames

This information was already available from the nl80211 control port RX
path, but it was not provided to upper layers within wpa_supplicant and
hostapd. It can be helpful, so parse the information from the driver
event.

Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
Jouni Malinen 2022-05-07 00:38:35 +03:00
parent 7ee814201b
commit 18c0ac8901
27 changed files with 117 additions and 49 deletions

View file

@ -44,8 +44,10 @@ static void test_send_eapol(void *eloop_data, void *user_ctx)
wpa_ie_len = sizeof(wpa_ie);
wpa_sm_set_assoc_wpa_ie_default(ctx->wpa, wpa_ie, &wpa_ie_len);
if (eapol_sm_rx_eapol(ctx->eapol, src, ctx->data, ctx->data_len) <= 0)
wpa_sm_rx_eapol(ctx->wpa, src, ctx->data, ctx->data_len);
if (eapol_sm_rx_eapol(ctx->eapol, src, ctx->data, ctx->data_len,
FRAME_ENCRYPTION_UNKNOWN) <= 0)
wpa_sm_rx_eapol(ctx->wpa, src, ctx->data, ctx->data_len,
FRAME_ENCRYPTION_UNKNOWN);
eloop_terminate();
}