mwifiex: Don't log error on suspend if wake-on-wlan is disabled
authorJonas Dreßler <verdre@v0yd.nl>
Sat, 16 Oct 2021 15:32:40 +0000 (17:32 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Wed, 20 Oct 2021 08:51:20 +0000 (11:51 +0300)
It's not an error if someone chooses to put their computer to sleep, not
wanting it to wake up because the person next door has just discovered
what a magic packet is. So change the loglevel of this annoying message
from ERROR to INFO.

Signed-off-by: Jonas Dreßler <verdre@v0yd.nl>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20211016153244.24353-2-verdre@v0yd.nl
drivers/net/wireless/marvell/mwifiex/cfg80211.c

index ef697572a293ca9305505675bfc7c67f893dbabd..987558c4fc79477b7335471282da1bbf086da788 100644 (file)
@@ -3492,7 +3492,7 @@ static int mwifiex_cfg80211_suspend(struct wiphy *wiphy,
        }
 
        if (!wowlan) {
-               mwifiex_dbg(adapter, ERROR,
+               mwifiex_dbg(adapter, INFO,
                            "None of the WOWLAN triggers enabled\n");
                ret = 0;
                goto done;