]> git.baikalelectronics.ru Git - kernel.git/commit
wifi: cfg80211: Fix extended KCK key length check in nl80211_set_rekey_data()
authorShivani Baranwal <quic_shivbara@quicinc.com>
Tue, 6 Dec 2022 14:37:14 +0000 (20:07 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 10 Mar 2023 08:32:55 +0000 (09:32 +0100)
commit595f7da8824a507992b0d652f9c1eb68c8977417
tree388bf36343ffece3958d74390a7e40fec091a46f
parente83be200de9f26412543683f0265adcaf1615737
wifi: cfg80211: Fix extended KCK key length check in nl80211_set_rekey_data()

[ Upstream commit 0369741dd0e7d1f98e113a4575213115b32e90ae ]

The extended KCK key length check wrongly using the KEK key attribute
for validation. Due to this GTK rekey offload is failing when the KCK
key length is 24 bytes even though the driver advertising
WIPHY_FLAG_SUPPORTS_EXT_KEK_KCK flag. Use correct attribute to fix the
same.

Fixes: c14f4ce6320f ("cfg80211: support bigger kek/kck key length")
Signed-off-by: Shivani Baranwal <quic_shivbara@quicinc.com>
Signed-off-by: Veerendranath Jakkam <quic_vjakkam@quicinc.com>
Link: https://lore.kernel.org/r/20221206143715.1802987-2-quic_vjakkam@quicinc.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/wireless/nl80211.c