]> git.baikalelectronics.ru Git - kernel.git/commit
wifi: mac80211: fix key lookup
authorJohannes Berg <johannes.berg@intel.com>
Thu, 23 Jun 2022 20:21:28 +0000 (22:21 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 15 Jul 2022 09:43:15 +0000 (11:43 +0200)
commit024dc52eaf4c730cf0f01907260168efcc6ccdb2
tree4fb9eaf37d2ffa207454c5ed1ef0d85dddc0d945
parent101101922210013d3d63ea3c061735a9032ecf6c
wifi: mac80211: fix key lookup

With the split into keys[]/deflink.gtk[] arrays, WEP keys are
still installed into the keys[] array, but we didn't look them
up there. This meant they weren't deleted correctly.

Fix this by looking up the key there even if it's not pairwise
so we can be sure we don't have it.

Fixes: 3c5608402947 ("wifi: mac80211: reorg some iface data structs for MLD")
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/cfg.c