wifi: mac80211: reject WEP or pairwise keys with key ID > 3
authorJohannes Berg <johannes.berg@intel.com>
Thu, 19 May 2022 15:57:53 +0000 (17:57 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 20 Jun 2022 10:54:48 +0000 (12:54 +0200)
commit92ea8df110b8ca92f9664ec7bd76dea109115348
tree32b599fa52f567b58aee78290f102c9edc492f02
parent8092a0eed4080a33a4c8681f4231c40c0bb7cb5c
wifi: mac80211: reject WEP or pairwise keys with key ID > 3

We don't really care too much right now since our data
structures are set up to not have a problem with this,
but clearly it's wrong to accept WEP and pairwise keys
with key ID > 3.

However, with MLD we need to split into per-link (GTK,
IGTK, BIGTK) and per interface/MLD (including WEP) keys
so make sure this is not a problem.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/key.c