Skip to contentSkip to conversation

wifi: wil6210: restore the GTK as a group key after recovery

PATCH New Zhao Li 1 participant 1 message Nov 7 Wilocity WIL6210 wireless driver

lore
Share & tools
lore

Zhao Li

author
#0 lore raw

PATCH 1/1 wifi: wil6210: restore the GTK as a group key after recovery

AP recovery fails to reinstall the saved GTK because the key-type conversion changed the former false pairwise argument into NL80211_KEYTYPE_PAIRWISE. With no peer address, the pairwise path finds no station and returns -EINVAL, or, if the AP advertises FT, sends the GTK to the firmware as a pairwise key.

Pass NL80211_KEYTYPE_GROUP so AP recovery selects WMI_KEY_USE_TX_GROUP and reinstalls the saved group key through wmi_add_cipher_key().

AI assistance was used.

Fixes 3191dfbf0779 ("wifi: cfg80211: add Control Integrity Protocol (CIP) APIs")

---
Compile-tested only; no new W=1 GCC/Clang, sparse or smatch warnings.

 drivers/net/wireless/ath/wil6210/cfg80211.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/wireless/ath/wil6210/cfg80211.c +1 -1
index bf060281c9a2..2563073b4766 100644
@@ -2075,7 +2075,7 @@ void wil_cfg80211_ap_recovery(struct wil6210_priv *wil)
 		key_params.seq_len = IEEE80211_GCMP_PN_LEN;
 		rc = wil_cfg80211_add_key(wiphy, vif_to_wdev(vif), -1,
 					  vif->gtk_index,
-					  NL80211_KEYTYPE_PAIRWISE,
+					  NL80211_KEYTYPE_GROUP,
 					  NULL, &key_params);
 		if (rc)
 			wil_err(wil, "vif %d recovery add key failed (%d)\n",

base-commit: 6b4b543fa18757297ac756a6fe6e64f506b7844a

Signature · 1 line
2.56.0