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)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 18 Jan 2023 16:31:50 +0000 (17:31 +0100)
commitdf4969ca135b9b3b2c38c07514aaa775112ac835
tree3cdce5ff02ca0bb02e8dd1c0800fcefb5a896a8c
parent585b6e1304dcc46e65dc1aaca5973b33abd0c48d
wifi: cfg80211: Fix extended KCK key length check in nl80211_set_rekey_data()

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: 093a48d2aa4b ("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>
net/wireless/nl80211.c