wifi: cfg80211: Fix extended KCK key length check in nl80211_set_rekey_data()
stable inclusion from stable-v5.10.173 commit 45a1ca6f3ae7c75cc317a0850196e08af76f583b category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I8BFR3 Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=45a1ca6f3ae7c75cc317a0850196e08af76f583b -------------------------------- [ Upstream commit df4969ca ] 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: 093a48d2 ("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> Signed-off-by:
sanglipeng <sanglipeng1@jd.com>
Loading
Please sign in to comment