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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 <markus.theil@xxxxxxxxxxxxx>
---
 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


_______________________________________________
Hostap mailing list
Hostap@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/hostap



[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux