diff options
author | Bryan O'Donoghue <bryan.odonoghue@linaro.org> | 2021-06-05 03:11:35 +0200 |
---|---|---|
committer | Kalle Valo <kvalo@codeaurora.org> | 2021-06-14 17:18:14 +0200 |
commit | 8974e5917b31c30ab30af1e992cfb35eec839a5f (patch) | |
tree | 53c380493cb15fe5c6258e9dae7cd203901dbc38 /drivers/net/wireless/ath/wcn36xx/wcn36xx.h | |
parent | wcn36xx: Add ipv6 namespace offload in suspend (diff) | |
download | linux-8974e5917b31c30ab30af1e992cfb35eec839a5f.tar.xz linux-8974e5917b31c30ab30af1e992cfb35eec839a5f.zip |
wcn36xx: Add set_rekey_data callback
Add a callback for Group Temporal Key tracking as provided by the standard
WiFi ops structure.
We track the key to integrate GTK offloading into the WoWLAN suspend path
later on. Code comes from the Intel iwlwifi driver with minimal name
changes.
Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
Tested-by: Benjamin Li <benl@squareup.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20210605011140.2004643-8-bryan.odonoghue@linaro.org
Diffstat (limited to 'drivers/net/wireless/ath/wcn36xx/wcn36xx.h')
-rw-r--r-- | drivers/net/wireless/ath/wcn36xx/wcn36xx.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/wcn36xx/wcn36xx.h b/drivers/net/wireless/ath/wcn36xx/wcn36xx.h index 5a5114660b18..6121d8a5641a 100644 --- a/drivers/net/wireless/ath/wcn36xx/wcn36xx.h +++ b/drivers/net/wireless/ath/wcn36xx/wcn36xx.h @@ -143,6 +143,12 @@ struct wcn36xx_vif { unsigned long tentative_addrs[BITS_TO_LONGS(WCN36XX_HAL_IPV6_OFFLOAD_ADDR_MAX)]; int num_target_ipv6_addrs; #endif + /* WoWLAN GTK rekey data */ + struct { + u8 kck[NL80211_KCK_LEN], kek[NL80211_KEK_LEN]; + __le64 replay_ctr; + bool valid; + } rekey_data; struct list_head sta_list; }; |