wifi: cfg80211: reject connect response with MLO params for WEP
authorVeerendranath Jakkam <quic_vjakkam@quicinc.com>
Sat, 30 Jul 2022 05:26:41 +0000 (10:56 +0530)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 25 Aug 2022 08:41:01 +0000 (10:41 +0200)
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>
Link: https://lore.kernel.org/r/20220730052643.1959111-2-quic_vjakkam@quicinc.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/sme.c

index 62c773c..34d27a3 100644 (file)
@@ -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;