From 0316046d152a1817bd0b4faff8e34c212a936a5e Mon Sep 17 00:00:00 2001 From: Philippe Schenker Date: Fri, 13 Nov 2020 16:09:53 +0100 Subject: net: wireless: cfg80211: delete sched_scan error message Do not print an error. This is no error in our use-case so just delete this error message that confuses users. As we now move back to full loglevel this is the only way to get rid of that message. fixes: d182137f18f24de3bc4b45c5a3d52e2f8f96a093 net: wireless: cfg80211: decrease importance of sched_scan message Signed-off-by: Philippe Schenker --- drivers/net/wireless/marvell/mwifiex/cfg80211.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/net/wireless/marvell/mwifiex/cfg80211.c b/drivers/net/wireless/marvell/mwifiex/cfg80211.c index cc838a59a0f7..f691288d2a29 100644 --- a/drivers/net/wireless/marvell/mwifiex/cfg80211.c +++ b/drivers/net/wireless/marvell/mwifiex/cfg80211.c @@ -2676,11 +2676,8 @@ mwifiex_cfg80211_sched_scan_start(struct wiphy *wiphy, struct mwifiex_bg_scan_cfg *bgscan_cfg; struct ieee_types_header *ie; - if (!request || (!request->n_ssids && !request->n_match_sets)) { - wiphy_notice(wiphy, "%s : Invalid Sched_scan parameters", - __func__); + if (!request || (!request->n_ssids && !request->n_match_sets)) return -EINVAL; - } wiphy_info(wiphy, "sched_scan start : n_ssids=%d n_match_sets=%d ", request->n_ssids, request->n_match_sets); -- cgit v1.2.3