瀏覽代碼

qcacld-3.0: Rate limit NAN error log messages

Rate limit NAN error log messages, to avoid flooding
the host log when NAN is not enabled

Change-Id: I091c9dff9115b77afa8c59e4d3fab748b30c0ee6
CRs-Fixed: 2777027
Visweswara Tanuku 4 年之前
父節點
當前提交
773d597688
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      core/hdd/src/wlan_hdd_nan.c
  2. 1 1
      core/hdd/src/wlan_hdd_nan_datapath.c

+ 1 - 1
core/hdd/src/wlan_hdd_nan.c

@@ -82,7 +82,7 @@ static int __wlan_hdd_cfg80211_nan_ext_request(struct wiphy *wiphy,
 	}
 
 	if (!wlan_hdd_nan_is_supported(hdd_ctx)) {
-		hdd_debug("NAN is not supported");
+		hdd_debug_rl("NAN is not supported");
 		return -EPERM;
 	}
 

+ 1 - 1
core/hdd/src/wlan_hdd_nan_datapath.c

@@ -413,7 +413,7 @@ static int __wlan_hdd_cfg80211_process_ndp_cmd(struct wiphy *wiphy,
 	}
 
 	if (!WLAN_HDD_IS_NDP_ENABLED(hdd_ctx)) {
-		hdd_debug("NAN datapath is not enabled");
+		hdd_debug_rl("NAN datapath is not enabled");
 		return -EPERM;
 	}