qcacld-3.0: Remove excessive logging related to stats

qcacld-2.0 to qcacld-3.0 propagation

Lot of stats related info logs are periodic and cause log spam.
Add changes to remove excessive logs.

CRs-Fixed: 1066273
Change-Id: I7064630c9ee4e01eafe0b5f00626aa6f20c0403d
This commit is contained in:
Kapil Gupta 2016-10-13 12:15:39 +05:30 • committed by qcabuildsw
commit bf4943c25e
6 changed files with 6 additions and 94 deletions

View file

@ -802,13 +802,12 @@ static int wlan_hdd_request_remain_on_channel(struct wiphy *wiphy,
int ret;
int status = 0;
ENTER();
hdd_notice("Device_mode %s(%d)",
hdd_device_mode_to_string(pAdapter->device_mode),
pAdapter->device_mode);
hdd_info("chan(hw_val)0x%x chan(centerfreq) %d, duration %d",
chan->hw_value, chan->center_freq, duration);
pHddCtx = WLAN_HDD_GET_CTX(pAdapter);
ret = wlan_hdd_validate_context(pHddCtx);
if (0 != ret)
@ -894,7 +893,6 @@ static int wlan_hdd_request_remain_on_channel(struct wiphy *wiphy,
hdd_debug("scheduling delayed work: no connection/roc active");
schedule_delayed_work(&pHddCtx->roc_req_work, 0);
}
EXIT();
return 0;
}

View file

@ -1225,7 +1225,7 @@ __wlan_hdd_cfg80211_ll_stats_get(struct wiphy *wiphy,
hdd_station_ctx_t *hddstactx = WLAN_HDD_GET_STATION_CTX_PTR(pAdapter);
int status;
ENTER_DEV(dev);
/* ENTER() intentionally not used in a frequently invoked API */
if (QDF_GLOBAL_FTM_MODE == hdd_get_conparam()) {
hdd_err("Command not allowed in FTM mode");
@ -1273,11 +1273,6 @@ __wlan_hdd_cfg80211_ll_stats_get(struct wiphy *wiphy,
LinkLayerStatsGetReq.staId = pAdapter->sessionId;
hdd_notice("LL_STATS_GET reqId = %d, staId = %d, paramIdMask = %d",
LinkLayerStatsGetReq.reqId,
LinkLayerStatsGetReq.staId,
LinkLayerStatsGetReq.paramIdMask);
context = &ll_stats_context;
spin_lock(&context->context_lock);
context->request_id = LinkLayerStatsGetReq.reqId;

View file

@ -353,7 +353,7 @@ pe_create_session(tpAniSirGlobal pMac, uint8_t *bssid, uint8_t *sessionId,
QDF_TRACE(QDF_MODULE_ID_PE, QDF_TRACE_LEVEL_DEBUG,
FL("Create a new PE session(%d), BSSID: "MAC_ADDRESS_STR" Max No. of STA %d"),
session_ptr->peSessionId, MAC_ADDR_ARRAY(bssid), numSta);
*sessionId, MAC_ADDR_ARRAY(bssid), numSta);
if (eSIR_INFRA_AP_MODE == bssType || eSIR_IBSS_MODE == bssType) {
session_ptr->pSchProbeRspTemplate =

View file

@ -14102,13 +14102,6 @@ QDF_STATUS sme_ll_stats_get_req(tHalHandle hHal, tSirLLStatsGetReq *pgetStatsReq
cds_msg_t cds_message;
tSirLLStatsGetReq *get_stats_req;
QDF_TRACE(QDF_MODULE_ID_SME, QDF_TRACE_LEVEL_INFO,
"reqId = %u", pgetStatsReq->reqId);
QDF_TRACE(QDF_MODULE_ID_SME, QDF_TRACE_LEVEL_INFO,
"staId = %u", pgetStatsReq->staId);
QDF_TRACE(QDF_MODULE_ID_SME, QDF_TRACE_LEVEL_INFO,
"Stats Type = %u", pgetStatsReq->paramIdMask);
get_stats_req = qdf_mem_malloc(sizeof(*get_stats_req));
if (!get_stats_req) {

View file

@ -4883,10 +4883,6 @@ bool csr_scan_age_out_bss(tpAniSirGlobal pMac, tCsrScanResult *pResult)
(uint32_t) qdf_mc_timer_get_system_ticks();
return fRet;
}
sms_log(pMac, LOGW,
"Aging out BSS " MAC_ADDRESS_STR " Channel %d",
MAC_ADDR_ARRAY(pResult->Result.BssDescriptor.bssId),
pResult->Result.BssDescriptor.channelId);
/*
* No need to hold the spin lock because caller should hold the lock for
* pMac->scan.scanResultList
@ -5957,8 +5953,9 @@ static void csr_purge_scan_result_by_age(void *pv)
ageout_time) {
bssId = result->Result.BssDescriptor.bssId;
sms_log(mac_ctx, LOGW,
FL("age out due to time out"MAC_ADDRESS_STR),
MAC_ADDR_ARRAY(bssId));
FL("age out for BSSID" MAC_ADDRESS_STR" Channel %d"),
MAC_ADDR_ARRAY(bssId),
result->Result.BssDescriptor.channelId);
csr_scan_age_out_bss(mac_ctx, result);
}
entry = tmp_entry;

View file

@ -514,7 +514,6 @@ static int wma_unified_link_peer_stats_event_handler(void *handle,
return -EINVAL;
}
WMA_LOGD("%s: Posting Peer Stats event to HDD", __func__);
param_tlvs = (WMI_PEER_LINK_STATS_EVENTID_param_tlvs *) cmd_param_info;
if (!param_tlvs) {
WMA_LOGA("%s: Invalid stats event", __func__);
@ -561,12 +560,6 @@ static int wma_unified_link_peer_stats_event_handler(void *handle,
return -ENOMEM;
}
WMA_LOGD("Peer stats from FW event buf");
WMA_LOGD("Fixed Param:");
WMA_LOGD("request_id %u num_peers %u peer_event_number %u more_data %u",
fixed_param->request_id, fixed_param->num_peers,
fixed_param->peer_event_number, fixed_param->more_data);
qdf_mem_zero(link_stats_results, link_stats_results_size);
link_stats_results->paramId = WMI_LINK_STATS_ALL_PEER;
@ -586,25 +579,12 @@ static int wma_unified_link_peer_stats_event_handler(void *handle,
next_peer_offset = WMI_TLV_HDR_SIZE;
next_rate_offset = WMI_TLV_HDR_SIZE;
for (rate_cnt = 0; rate_cnt < fixed_param->num_peers; rate_cnt++) {
WMA_LOGD("Peer Info:");
WMA_LOGD("peer_type %u capabilities %u num_rates %u",
peer_stats->peer_type, peer_stats->capabilities,
peer_stats->num_rates);
qdf_mem_copy(results + next_res_offset,
t_peer_stats + next_peer_offset, peer_info_size);
next_res_offset += peer_info_size;
/* Copy rate stats associated with this peer */
for (count = 0; count < peer_stats->num_rates; count++) {
WMA_LOGD("Rate Stats Info:");
WMA_LOGD("rate %u bitrate %u tx_mpdu %u rx_mpdu %u "
"mpdu_lost %u retries %u retries_short %u "
"retries_long %u", rate_stats->rate,
rate_stats->bitrate, rate_stats->tx_mpdu,
rate_stats->rx_mpdu, rate_stats->mpdu_lost,
rate_stats->retries, rate_stats->retries_short,
rate_stats->retries_long);
rate_stats++;
qdf_mem_copy(results + next_res_offset,
@ -624,7 +604,6 @@ static int wma_unified_link_peer_stats_event_handler(void *handle,
pMac->sme.pLinkLayerStatsIndCallback(pMac->hHdd,
WMA_LINK_LAYER_STATS_RESULTS_RSP,
link_stats_results);
WMA_LOGD("%s: Peer Stats event posted to HDD", __func__);
qdf_mem_free(link_stats_results);
return 0;
@ -933,7 +912,6 @@ int wma_unified_link_iface_stats_event_handler(void *handle,
return -EINVAL;
}
WMA_LOGD("%s: Posting Iface Stats event to HDD", __func__);
param_tlvs = (WMI_IFACE_LINK_STATS_EVENTID_param_tlvs *) cmd_param_info;
if (!param_tlvs) {
WMA_LOGA("%s: Invalid stats event", __func__);
@ -967,32 +945,6 @@ int wma_unified_link_iface_stats_event_handler(void *handle,
return -ENOMEM;
}
WMA_LOGD("Interface stats from FW event buf");
WMA_LOGD("Fixed Param:");
WMA_LOGD("request_id %u vdev_id %u",
fixed_param->request_id, fixed_param->vdev_id);
WMA_LOGD("Iface Stats:");
WMA_LOGD("beacon_rx %u mgmt_rx %u mgmt_action_rx %u mgmt_action_tx %u "
"rssi_mgmt %u rssi_data %u rssi_ack %u num_peers %u "
"num_peer_events %u num_ac %u roam_state %u"
" avg_bcn_spread_offset_high %u"
" avg_bcn_spread_offset_low %u"
" is leaky_ap %u"
" avg_rx_frames_leaked %u"
" rx_leak_window %u",
link_stats->beacon_rx, link_stats->mgmt_rx,
link_stats->mgmt_action_rx, link_stats->mgmt_action_tx,
link_stats->rssi_mgmt, link_stats->rssi_data,
link_stats->rssi_ack, link_stats->num_peers,
link_stats->num_peer_events, link_stats->num_ac,
link_stats->roam_state,
link_stats->avg_bcn_spread_offset_high,
link_stats->avg_bcn_spread_offset_low,
link_stats->is_leaky_ap,
link_stats->avg_rx_frms_leaked,
link_stats->rx_leak_window);
qdf_mem_zero(link_stats_results, link_stats_results_size);
link_stats_results->paramId = WMI_LINK_STATS_IFACE;
@ -1021,22 +973,7 @@ int wma_unified_link_iface_stats_event_handler(void *handle,
next_res_offset = link_stats_size - WIFI_AC_MAX * ac_stats_size;
next_ac_offset = WMI_TLV_HDR_SIZE;
WMA_LOGD("AC Stats:");
for (count = 0; count < link_stats->num_ac; count++) {
WMA_LOGD("ac_type %u tx_mpdu %u rx_mpdu %u tx_mcast %u "
"rx_mcast %u rx_ampdu %u tx_ampdu %u mpdu_lost %u "
"retries %u retries_short %u retries_long %u "
"contention_time_min %u contention_time_max %u "
"contention_time_avg %u contention_num_samples %u",
ac_stats->ac_type, ac_stats->tx_mpdu,
ac_stats->rx_mpdu, ac_stats->tx_mcast,
ac_stats->rx_mcast, ac_stats->rx_ampdu,
ac_stats->tx_ampdu, ac_stats->mpdu_lost,
ac_stats->retries, ac_stats->retries_short,
ac_stats->retries_long, ac_stats->contention_time_min,
ac_stats->contention_time_max,
ac_stats->contention_time_avg,
ac_stats->contention_num_samples);
ac_stats++;
qdf_mem_copy(results + next_res_offset,
@ -1052,7 +989,6 @@ int wma_unified_link_iface_stats_event_handler(void *handle,
pMac->sme.pLinkLayerStatsIndCallback(pMac->hHdd,
WMA_LINK_LAYER_STATS_RESULTS_RSP,
link_stats_results);
WMA_LOGD("%s: Iface Stats event posted to HDD", __func__);
qdf_mem_free(link_stats_results);
return 0;
@ -1286,16 +1222,11 @@ static void wma_update_peer_stats(tp_wma_handle wma,
classa_stats->rx_frag_cnt = node->nss;
classa_stats->promiscuous_rx_frag_cnt =
mcsRateFlags;
WMA_LOGD("Computed mcs_idx:%d mcs_rate_flags:%d",
classa_stats->mcs_index, mcsRateFlags);
}
/* FW returns tx power in intervals of 0.5 dBm
Convert it back to intervals of 1 dBm */
classa_stats->max_pwr =
roundup(classa_stats->max_pwr, 2) >> 1;
WMA_LOGD("peer tx rate flags:%d nss:%d max_txpwr:%d",
node->rate_flags, node->nss,
classa_stats->max_pwr);
}
}
}
@ -1553,8 +1484,6 @@ int wma_stats_event_handler(void *handle, uint8_t *cmd_param_info,
WMITLV_TAG_STRUC_wmi_per_chain_rssi_stats) &&
((rssi_event->tlv_header & 0x0000FFFF) ==
WMITLV_GET_STRUCT_TLVLEN(wmi_per_chain_rssi_stats))) {
WMA_LOGD("%s: num_rssi_stats %u", __func__,
rssi_event->num_per_chain_rssi_stats);
if (rssi_event->num_per_chain_rssi_stats > 0) {
temp = (uint8_t *) rssi_event;
temp += sizeof(*rssi_event);