]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
wifi: rtw89: wow: fix wait condition for AOAC report request
authorZong-Zhe Yang <kevin_yang@realtek.com>
Mon, 26 Aug 2024 09:04:36 +0000 (17:04 +0800)
committerPing-Ke Shih <pkshih@realtek.com>
Mon, 2 Sep 2024 01:12:16 +0000 (09:12 +0800)
commitd9dd3ac77cf7cabd35732893f3aefba1daa1c2e1
tree8b9c96f51cb1bfa6d65fc310f5fa2a8975eb828c
parent902cb7b11f9a7ff07233cc4c626b54c3e4703149
wifi: rtw89: wow: fix wait condition for AOAC report request

Each condition binding to the same wait should be unique. AOAC code misused
the wait of FW offload series and broke the above rule. It added another
macro to generate wait condition of WoWLAN/AOAC, but the results conflict
to the ones of FW offload series. It means that we might be completed
wrongly in logic. We don't want things work/read like this and should
have avoided this.

Fix this by adding another wait which aims for WoWLAN functions.

Fixes: ff53fce5c78b ("wifi: rtw89: wow: update latest PTK GTK info to mac80211 after resume")
Signed-off-by: Zong-Zhe Yang <kevin_yang@realtek.com>
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Link: https://patch.msgid.link/20240826090439.17242-2-pkshih@realtek.com
drivers/net/wireless/realtek/rtw89/core.c
drivers/net/wireless/realtek/rtw89/core.h
drivers/net/wireless/realtek/rtw89/fw.c
drivers/net/wireless/realtek/rtw89/fw.h
drivers/net/wireless/realtek/rtw89/mac.c