[PATCH v2 11/11] nl80211: disable ctrl port over nl80211 for ap mode

Markus Theil <[email protected]>
Newsgroups gmane.linux.drivers.hostap
Message-ID <[email protected]>
AP mode under Linux currently checks the tx status of control port frames
over auxiliary socket data. As this is currently not possible for control
port over nl80211, disable AP mode over nl80211 control port for now.

Code for AP mode is working besides this missing fast retransmit feature.

Signed-off-by: Markus Theil <[email protected]>
---
 src/drivers/driver_nl80211.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c
index 5b85cff04..cd4e2054b 100644
--- a/src/drivers/driver_nl80211.c
+++ b/src/drivers/driver_nl80211.c
@@ -463,6 +463,7 @@ int send_and_recv_msgs_as_owner(struct wpa_driver_nl80211_data *drv,
 	 * has the connection owner property set in the kernel.
 	 */
 	if (drv->capa.flags & WPA_DRIVER_FLAGS_CONTROL_PORT &&
+	    !(drv->hostapd || drv->start_mode_ap) &&
 	    handle && set_owner)
 		if (nla_put_flag(msg, NL80211_ATTR_CONTROL_PORT_OVER_NL80211) ||
 		    nla_put_flag(msg, NL80211_ATTR_SOCKET_OWNER) ||
-- 
2.26.0
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.