diff mbox series

[v2,1/3] wifi: cfg80211: reject connect response with MLO params for WEP

Message ID 20220730052643.1959111-2-quic_vjakkam@quicinc.com
State New
Headers show
Series wifi: cfg80211: Add support for key operations on MLD | expand

Commit Message

Veerendranath Jakkam July 30, 2022, 5:26 a.m. UTC
MLO connections are not supposed to use WEP security. Reject connect
response of MLO connection if WEP security mode is used.

Signed-off-by: Veerendranath Jakkam <quic_vjakkam@quicinc.com>
---
 net/wireless/sme.c | 3 +++
 1 file changed, 3 insertions(+)
diff mbox series

Patch

diff --git a/net/wireless/sme.c b/net/wireless/sme.c
index 62c773cf1b8d..34d27a3070f0 100644
--- a/net/wireless/sme.c
+++ b/net/wireless/sme.c
@@ -747,6 +747,9 @@  void __cfg80211_connect_result(struct net_device *dev,
 			if (WARN_ON(!cr->links[link].addr))
 				goto out;
 		}
+
+		if (WARN_ON(wdev->connect_keys))
+			goto out;
 	}
 
 	wdev->unprot_beacon_reported = 0;