Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions drivers/net/wireless/ath/ath12k/wow.c
Original file line number Diff line number Diff line change
Expand Up @@ -867,6 +867,14 @@ int ath12k_wow_op_suspend(struct ieee80211_hw *hw,

lockdep_assert_wiphy(hw->wiphy);

/* Without an active vif there is no BSS, channel, or vdev to back
* WoW. Letting WMI_WOW_ENABLE_CMDID reach firmware in this state
* leaves it in an undefined mode and breaks MHI/PCIe on resume.
* Return 1 so mac80211 falls back to a normal radio-off suspend.
*/
if (list_empty(&ar->arvifs))
return 1;

ret = ath12k_wow_cleanup(ar);
if (ret) {
ath12k_warn(ar->ab, "failed to clear wow wakeup events: %d\n",
Expand Down