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:
parent
cbf1212230
commit
d29b6c8430
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user