From 781c5a0624f00c8eccc2926165d8edb6096da609 Mon Sep 17 00:00:00 2001 From: Markus Theil Date: Fri, 3 Jan 2020 16:17:42 +0100 Subject: [PATCH] nl80211: Use control port TX for AP mode Signed-off-by: Markus Theil --- src/drivers/driver_nl80211.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c index e9f86aabd..c7302f8cc 100644 --- a/src/drivers/driver_nl80211.c +++ b/src/drivers/driver_nl80211.c @@ -5168,6 +5168,10 @@ static int wpa_driver_nl80211_hapd_send_eapol( int res; 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) return nl80211_send_eapol_data(bss, addr, data, data_len);