From 20bc5c6a43ed5b3603cce08208d0d03b54103ccd Mon Sep 17 00:00:00 2001 From: Srinivas Dasari Date: Mon, 27 Jan 2020 16:16:42 +0530 Subject: [PATCH] qcacld-3.0: Reduce excessive logging in NAN/NDP Driver/firmware may not support NAN in some platforms. But when framework tries to enable NAN/NDP, driver returns an error and logs the failure with error level. This is causing excessive logs in dmesg. Reduce the log level to debug in order to avoid spamming dmesg. Change-Id: Ied8f06fadc3b68a9fc3657e31679b71a3807737e CRs-Fixed: 2608564 --- core/hdd/src/wlan_hdd_nan.c | 4 ++-- core/hdd/src/wlan_hdd_nan_datapath.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/core/hdd/src/wlan_hdd_nan.c b/core/hdd/src/wlan_hdd_nan.c index 222d0f86797d..79ab02c9fc32 100644 --- a/core/hdd/src/wlan_hdd_nan.c +++ b/core/hdd/src/wlan_hdd_nan.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2012-2019 The Linux Foundation. All rights reserved. + * Copyright (c) 2012-2020 The Linux Foundation. All rights reserved. * * Permission to use, copy, modify, and/or distribute this software for * any purpose with or without fee is hereby granted, provided that the @@ -141,7 +141,7 @@ static int __wlan_hdd_cfg80211_nan_ext_request(struct wiphy *wiphy, } if (!wlan_hdd_nan_is_supported(hdd_ctx)) { - hdd_err_rl("NAN is not supported"); + hdd_debug("NAN is not supported"); return -EPERM; } diff --git a/core/hdd/src/wlan_hdd_nan_datapath.c b/core/hdd/src/wlan_hdd_nan_datapath.c index 3a915132d4cb..74f0db8d35d5 100644 --- a/core/hdd/src/wlan_hdd_nan_datapath.c +++ b/core/hdd/src/wlan_hdd_nan_datapath.c @@ -408,7 +408,7 @@ static int __wlan_hdd_cfg80211_process_ndp_cmd(struct wiphy *wiphy, } if (!WLAN_HDD_IS_NDP_ENABLED(hdd_ctx)) { - hdd_err_rl("NAN datapath is not enabled"); + hdd_debug("NAN datapath is not enabled"); return -EPERM; }