342-v5.1-brcmfmac-fix-system-warning-message-during-wowl-susp.patch 1.2 KB

123456789101112131415161718192021222324252627282930313233
  1. From 3a33bd840523aaa06f4429fbfd38922bf0dc2e8d Mon Sep 17 00:00:00 2001
  2. From: Lo-Hsiang Lo <[email protected]>
  3. Date: Mon, 7 Jan 2019 08:46:16 +0000
  4. Subject: [PATCH] brcmfmac: fix system warning message during wowl suspend
  5. There is a system warning message, warn_slowpath-fmt, during suspend
  6. while using supplicant join AP and enable wowl feature by IW command.
  7. It's caused by brcmf_pno_remove_request path can't find the reqid.
  8. This fix will not go to remove pno request function if there is no
  9. pno scan.
  10. Acked-by: Arend van Spriel <[email protected]>
  11. Signed-off-by: Lo-Hsiang Lo <[email protected]>
  12. Signed-off-by: Chi-Hsien Lin <[email protected]>
  13. Signed-off-by: Kalle Valo <[email protected]>
  14. ---
  15. drivers/net/wireless/broadcom/brcm80211/brcmfmac/pno.c | 5 +++++
  16. 1 file changed, 5 insertions(+)
  17. --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/pno.c
  18. +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/pno.c
  19. @@ -496,6 +496,11 @@ int brcmf_pno_stop_sched_scan(struct brc
  20. brcmf_dbg(TRACE, "reqid=%llu\n", reqid);
  21. pi = ifp_to_pno(ifp);
  22. +
  23. + /* No PNO request */
  24. + if (!pi->n_reqs)
  25. + return 0;
  26. +
  27. err = brcmf_pno_remove_request(pi, reqid);
  28. if (err)
  29. return err;