diff options
author | Veerendranath Jakkam <quic_vjakkam@quicinc.com> | 2022-07-30 07:26:41 +0200 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2022-08-25 10:41:01 +0200 |
commit | 5ec245e4d14b6299148b18f3a088a3211458b75f (patch) | |
tree | da0cbe048cf836b4f09259251e24a36188f23d41 /net/wireless/sme.c | |
parent | wifi: mac80211: fix use-after-free (diff) | |
download | linux-5ec245e4d14b6299148b18f3a088a3211458b75f.tar.xz linux-5ec245e4d14b6299148b18f3a088a3211458b75f.zip |
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>
Diffstat (limited to 'net/wireless/sme.c')
-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; |