qcacmn: Limit log verboseness of some chan change code

The log output will be too verbose when the following scenario
is hit:

 1) hostapd is started on chan 149 with cc=US
 2) ref-sta connects to sap
 3) ping -i 0.01 to ref-sta from dut
 4) set cc=JP on dut

and the verbose log output will result in a wlan scheduler
watchdog bite on some platforms.

Use rate limited versions of log outputting api to avoid the
instabilities brought by this.

Change-Id: Id87d81070334aab145bae6909857fd5d2851008a
CRs-Fixed: 2868738
This commit is contained in:
wadesong
2021-07-22 14:21:15 +08:00
committed by Madan Koyyalamudi
parent b82dd5554f
commit abdd65099c
2 changed files with 6 additions and 6 deletions

View File

@@ -1846,7 +1846,7 @@ wlan_get_ieee80211_channel(struct wiphy *wiphy,
chan = ieee80211_get_channel(wiphy, chan_freq);
if (!chan)
osif_err("chan is NULL, freq: %d", chan_freq);
osif_err_rl("chan is NULL, freq: %d", chan_freq);
return chan;
}
@@ -2020,10 +2020,10 @@ void wlan_cfg80211_inform_bss_frame(struct wlan_objmgr_pdev *pdev,
bss_data.chan = wlan_get_ieee80211_channel(wiphy, pdev,
scan_params->channel.chan_freq);
if (!bss_data.chan) {
osif_err("Channel not found for bss "QDF_MAC_ADDR_FMT" seq %d chan_freq %d",
QDF_MAC_ADDR_REF(bss_data.mgmt->bssid),
scan_params->seq_num,
scan_params->channel.chan_freq);
osif_err_rl("Channel not found for bss " QDF_MAC_ADDR_FMT " seq %d chan_freq %d",
QDF_MAC_ADDR_REF(bss_data.mgmt->bssid),
scan_params->seq_num,
scan_params->channel.chan_freq);
qdf_mem_free(bss_data.mgmt);
return;
}