Rate limit NAN error log messages, to avoid flooding the host log when NAN is not enabled Change-Id: I091c9dff9115b77afa8c59e4d3fab748b30c0ee6 CRs-Fixed: 2777027
@@ -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;
@@ -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");