brcmfmac: Use seq/seq_len and set iv_initialize when plumbing of rxiv in (GTK) keys
authorSoontak Lee <soontak.lee@cypress.com>
Wed, 6 May 2020 13:03:21 +0000 (08:03 -0500)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 12 May 2020 08:51:26 +0000 (11:51 +0300)
commit78db077db638b6b7679ebbadda7b19eef65a6720
treef3acf29ce1098a3f0e10f675cccd04a0dd47eab5
parent30fb1b2729099a3506222bbeff09a7ed6bca6fb0
brcmfmac: Use seq/seq_len and set iv_initialize when plumbing of rxiv in (GTK) keys

When plumbing rxiv for (GTK) keys, current code does not use seq/seq_len
when present nor set iv_initialized for iovar wsec_key. This could
result in missing broadcast traffic after GTK rekey. The fix is setting
iv_initialized and using seq/seq_len for iovar wsec_key.

Signed-off-by: Soontak Lee <soontak.lee@cypress.com>
Signed-off-by: Chi-Hsien Lin <chi-hsien.lin@cypress.com>
Signed-off-by: Wright Feng <wright.feng@cypress.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/1588770201-54361-4-git-send-email-wright.feng@cypress.com
drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c