wifi: mac80211: don't require cipher and keylen in gtk rekey
authorMiri Korenblit <miriam.rachel.korenblit@intel.com>
Mon, 21 Jul 2025 18:50:49 +0000 (21:50 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 22 Jul 2025 08:43:19 +0000 (10:43 +0200)
commit69fdb084355d6c0b353536024cc51aa5f7ffb62c
treeabbdc17a8eb4a6d837ad76695c6ccfcc254d56f4
parent2ed9a9fc9976262109d04f1a3c75c46de8ce4f22
wifi: mac80211: don't require cipher and keylen in gtk rekey

ieee80211_add_gtk_rekey receives a keyconf as an argument, and the
cipher and keylen are taken from there to the new allocated key.
But in rekey, both the cipher and the keylen should be the same as of
the old key, so let ieee80211_add_gtk_rekey find those, so drivers won't
have to fill it in.

Reviewed-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Link: https://patch.msgid.link/20250721214922.3c5c023bfae9.Ie6594ae2b4b6d5b3d536e642b349046ebfce7a5d@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/intel/iwlwifi/mld/d3.c
drivers/net/wireless/intel/iwlwifi/mvm/d3.c
drivers/net/wireless/realtek/rtw89/wow.c
include/net/mac80211.h
net/mac80211/key.c