[PATCH v2 10/11] nl80211: also add no preauth flag on connect

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

 



This patch disables receiving pre-auth frames over the nl80211 control port.

Signed-off-by: Markus Theil <markus.theil@xxxxxxxxxxxxx>
---
 src/drivers/driver_nl80211.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c
index 3da94fd69..5b85cff04 100644
--- a/src/drivers/driver_nl80211.c
+++ b/src/drivers/driver_nl80211.c
@@ -467,7 +467,8 @@ int send_and_recv_msgs_as_owner(struct wpa_driver_nl80211_data *drv,
 		if (nla_put_flag(msg, NL80211_ATTR_CONTROL_PORT_OVER_NL80211) ||
 		    nla_put_flag(msg, NL80211_ATTR_SOCKET_OWNER) ||
 		    nla_put_u16(msg, NL80211_ATTR_CONTROL_PORT_ETHERTYPE,
-				ETH_P_PAE))
+				ETH_P_PAE) ||
+		    nla_put_flag(msg, NL80211_ATTR_CONTROL_PORT_NO_PREAUTH))
 			goto out;
 
 	return send_and_recv(drv->global, handle ? handle : drv->global->nl,
-- 
2.26.0


_______________________________________________
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