nl80211: Use control port TX for AP mode

Signed-off-by: Markus Theil <markus.theil@tu-ilmenau.de>
This commit is contained in:
Markus Theil 2020-01-03 16:17:42 +01:00 committed by Jouni Malinen
parent d8252a9812
commit 781c5a0624

View file

@ -5168,6 +5168,10 @@ static int wpa_driver_nl80211_hapd_send_eapol(
int res; int res;
int qos = flags & WPA_STA_WMM; int qos = flags & WPA_STA_WMM;
if (drv->capa.flags & WPA_DRIVER_FLAGS_CONTROL_PORT)
return nl80211_tx_control_port(bss, addr, ETH_P_EAPOL,
data, data_len, !encrypt);
if (drv->device_ap_sme || !drv->use_monitor) if (drv->device_ap_sme || !drv->use_monitor)
return nl80211_send_eapol_data(bss, addr, data, data_len); return nl80211_send_eapol_data(bss, addr, data, data_len);