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