[PATCH 6/7] nl80211: disable control port for AP mode

Markus Theil <[email protected]>
Newsgroups gmane.linux.drivers.hostap
Message-ID <[email protected]>
Using control port rx in AP mode needs further fixes for pre-auth to
work. Disable this mode for now.

Signed-off-by: Markus Theil <[email protected]>
---
 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 5d52fc496..c80a3e163 100644
--- a/src/drivers/driver_nl80211.c
+++ b/src/drivers/driver_nl80211.c
@@ -482,6 +482,10 @@ struct nl_sock* get_connect_or_ctrl_handle(struct i802_bss *bss)
 {
 	struct nl_sock *nl_connect_or_ctrl = NULL;
 
+	/* TODO: remove, if AP support complete (depends on kernel) */
+	if (bss->drv->hostapd)
+		return NULL;
+
 	if (bss->drv->capa.flags & WPA_DRIVER_FLAGS_CONTROL_PORT ||
 	    bss->use_nl_connect)
 		nl_connect_or_ctrl = bss->nl_connect_or_ctrl;
-- 
2.24.1
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.