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
1 changed files with 3 additions and 1 deletions
|
@ -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_s->l2 = l2_packet_init(wpa_s->ifname,
|
||||||
wpa_drv_get_mac_addr(wpa_s),
|
wpa_drv_get_mac_addr(wpa_s),
|
||||||
ETH_P_EAPOL,
|
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)
|
if (wpa_s->l2 == NULL)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue