diff options
author | Veerendranath Jakkam <quic_vjakkam@quicinc.com> | 2022-07-30 10:56:41 +0530 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2022-08-25 10:41:01 +0200 |
commit | 5ec245e4d14b6299148b18f3a088a3211458b75f (patch) | |
tree | da0cbe048cf836b4f09259251e24a36188f23d41 | |
parent | 40fb87129049ec5876dabf4a4d4aed6642b31f1a (diff) | |
download | linux-5ec245e4d14b6299148b18f3a088a3211458b75f.tar.bz2 |
wifi: cfg80211: reject connect response with MLO params for WEP
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>
-rw-r--r-- | net/wireless/sme.c | 3 |
1 files changed, 3 insertions, 0 deletions
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; |