summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/realtek/rtw88/util.h
diff options
context:
space:
mode:
authorChin-Yen Lee <timlee@realtek.com>2019-12-19 11:58:14 +0300
committerKalle Valo <kvalo@codeaurora.org>2020-01-26 18:37:03 +0300
commit44bc17f7f5b3b2cc4084eba6307ba750078a8a73 (patch)
tree7fad94a87b5cf9731c74ac65abacbf8dcd0c0ac3 /drivers/net/wireless/realtek/rtw88/util.h
parentc8e5695eae9959fc5774c0f490f2450be8bad3de (diff)
downloadlinux-44bc17f7f5b3b2cc4084eba6307ba750078a8a73.tar.xz
rtw88: support wowlan feature for 8822c
Wake on WLAN(wowlan) is a feature which allows devices to be woken up from suspend state through wlan events. When user enables wowlan feature and then let the device enter suspend state, wowlan firmware will be loaded by the driver and periodically monitors wifi packets. Power consumption of wifi chip will be reduced in this state. If wowlan firmware detects that specific wlan event happens, it will issue wakeup signal to trigger resume process. Driver will load normal firmware and let wifi chip return to the original state. Currently supported wlan events include receiving magic packet, rekey packet and deauth packet, and disconnecting from AP. Signed-off-by: Chin-Yen Lee <timlee@realtek.com> Signed-off-by: Yan-Hsuan Chuang <yhchuang@realtek.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net/wireless/realtek/rtw88/util.h')
-rw-r--r--drivers/net/wireless/realtek/rtw88/util.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/wireless/realtek/rtw88/util.h b/drivers/net/wireless/realtek/rtw88/util.h
index 7bd2843b0bce..41c10e7144df 100644
--- a/drivers/net/wireless/realtek/rtw88/util.h
+++ b/drivers/net/wireless/realtek/rtw88/util.h
@@ -15,6 +15,8 @@ struct rtw_dev;
IEEE80211_IFACE_ITER_NORMAL, iterator, data)
#define rtw_iterate_stas_atomic(rtwdev, iterator, data) \
ieee80211_iterate_stations_atomic(rtwdev->hw, iterator, data)
+#define rtw_iterate_keys(rtwdev, vif, iterator, data) \
+ ieee80211_iter_keys(rtwdev->hw, vif, iterator, data)
static inline u8 *get_hdr_bssid(struct ieee80211_hdr *hdr)
{