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
This commit is contained in:
Visweswara Tanuku 2020-08-31 18:36:24 +05:30 committed by snandini
parent d0fef5e891
commit 773d597688
2 changed files with 2 additions and 2 deletions

View File

@ -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;
}

View File

@ -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;
}