Prechádzať zdrojové kódy

qcacld-3.0: Change logging in wma_chan_phy_mode to ratelimit

Currently logs for invalid channel width are set as error logs,
if invalid channel width is passed to this api very frequently,
error logs are getting flooded.

To address this issue make the logs as rate limit.

Change-Id: I493002b63ab72438cce2b61c858a32acf12ea6b6
CRs-Fixed: 2607361
Ashish Kumar Dhanotiya 5 rokov pred
rodič
commit
bf3742bb12
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  1. 1 1
      core/wma/src/wma_features.c

+ 1 - 1
core/wma/src/wma_features.c

@@ -542,7 +542,7 @@ enum wlan_phymode wma_chan_phy_mode(uint32_t freq, enum phy_ch_width chan_width,
 	}
 
 	if (chan_width >= CH_WIDTH_INVALID) {
-		WMA_LOGE("%s : Invalid channel width", __func__);
+		wma_err_rl("%s : Invalid channel width", __func__);
 		return WLAN_PHYMODE_AUTO;
 	}