mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-28 10:18:21 -05:00
Do not open l2_packet(EAPOL) for receive unnecessarily
If the driver supports control port for EAPOL RX, do not register l2_packet for RX to minimize unnecessary operation load. Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
7a880b129d
commit
2c70b7d0b4
@ -4777,7 +4777,9 @@ int wpa_supplicant_update_mac_addr(struct wpa_supplicant *wpa_s)
|
||||
wpa_s->l2 = l2_packet_init(wpa_s->ifname,
|
||||
wpa_drv_get_mac_addr(wpa_s),
|
||||
ETH_P_EAPOL,
|
||||
wpa_supplicant_rx_eapol, wpa_s, 0);
|
||||
wpas_eapol_needs_l2_packet(wpa_s) ?
|
||||
wpa_supplicant_rx_eapol : NULL,
|
||||
wpa_s, 0);
|
||||
if (wpa_s->l2 == NULL)
|
||||
return -1;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user