qcacld-3.0: Rate limit error logs in NAN and NDP cmd handlers

If NAN or NDP support is disabled through INI, repeated NAN/NDP
requests from upper layers flood console logs. Convert these
error prints to rate limited prints to avoid excessive logging.

Rate limit error logs in NAN and NDP cmd handlers.

Change-Id: Ie3e7fce9e829c64d3d21d856a72a957365a04aa8
CRs-Fixed: 2355727
This commit is contained in:
Nachiket Kukade 2018-11-27 12:28:22 +05:30 committed by nshrivas
parent cbf1212230
commit d29b6c8430
2 changed files with 4 additions and 4 deletions

View File

@ -70,7 +70,7 @@ static int __wlan_hdd_cfg80211_nan_request(struct wiphy *wiphy,
}
if (!cfg_nan_get_enable(hdd_ctx->psoc)) {
hdd_err("NaN support is not enabled in INI");
hdd_err_rl("NaN support is not enabled in INI");
return -EPERM;
}

View File

@ -354,18 +354,18 @@ static int __wlan_hdd_cfg80211_process_ndp_cmd(struct wiphy *wiphy,
}
if (!WLAN_HDD_IS_NDP_ENABLED(hdd_ctx)) {
hdd_err("NAN datapath is not enabled");
hdd_err_rl("NAN datapath is not enabled");
return -EPERM;
}
/* NAN data path coexists only with STA interface */
if (false == hdd_is_ndp_allowed(hdd_ctx)) {
hdd_err("Unsupported concurrency for NAN datapath");
hdd_err_rl("Unsupported concurrency for NAN datapath");
return -EPERM;
}
/* NAN data path coexists only with STA interface */
if (false == hdd_is_ndp_allowed(hdd_ctx)) {
hdd_err("Unsupported concurrency for NAN datapath");
hdd_err_rl("Unsupported concurrency for NAN datapath");
return -EPERM;
}