1: eee407008458 = 1: fd9299ca5a03 wifi: ath10k: configure the WoW action frame wakeup filter 2: 0b0c7390f60c ! 2: fb2d281b58fe wifi: ath10k: report WoW wakeups to the PM core @@ Commit message another reason. iwlwifi does the same since commit 06ae2ad413d2 ("iwlwifi: mvm: report wakeup for wowlan").  + Report it before completing wow.wakeup_completed. Once the resume path + continues, the system resume can finish and stop counting wakeup + events before the report. + On a OnePlus 6 the wakeup source of the WLAN device now counts WoW wakeups, and powerdevil keeps the display off for them.  @@ Commit message  ## drivers/net/wireless/ath/ath10k/wmi.c ##  @@ drivers/net/wireless/ath/ath10k/wmi.c: void ath10k_wmi_event_wow_wakeup_host(struct ath10k *ar, struct sk_buff *skb) + struct wmi_wow_ev_arg ev = {}; + int ret; +  +- complete(&ar->wow.wakeup_completed); +- + ret = ath10k_wmi_pull_wow_event(ar, skb, &ev); + if (ret) { + ath10k_warn(ar, "failed to parse wow wakeup event: %d\n", ret); +- return; ++ goto out; + }  ath10k_dbg(ar, ATH10K_DBG_WMI, "wow wakeup host reason %d %s\n", ev.wake_reason, wow_reason(ev.wake_reason));  + -+ /* UNSPECIFIED: the host resumed for another reason */ ++ /* UNSPECIFIED: the host resumed for another reason. Report before ++ * the completion, so the system resume cannot finish first. ++ */  + if (ev.wake_reason != WOW_REASON_UNSPECIFIED)  + pm_wakeup_event(ar->dev, 0); ++ ++out: ++ complete(&ar->wow.wakeup_completed); }  void ath10k_wmi_event_dcs_interference(struct ath10k *ar, struct sk_buff *skb)