qcacmn: Log enhancement for PNO scan

Enhance logs for PNO scan to remove duplicate
or unwanted prints and keep only useful logs to debug.

Change-Id: Ibe24714e925a00933911c801685528849e160480
CRs-Fixed: 2636641
This commit is contained in:
Abhinav Kumar
2020-02-06 14:17:03 +05:30
committed by nshrivas
parent cc9fb0cd68
commit 3d4911dc92
3 changed files with 25 additions and 41 deletions

View File

@@ -4838,9 +4838,6 @@ static QDF_STATUS send_pno_start_cmd_tlv(wmi_unified_t wmi_handle,
cmd->delay_start_time = WMI_SEC_TO_MSEC(pno->delay_start_time);
cmd->fast_scan_max_cycles = pno->fast_scan_max_cycles;
cmd->scan_backoff_multiplier = pno->scan_backoff_multiplier;
WMI_LOGD("fast_scan_period: %d msec slow_scan_period: %d msec",
cmd->fast_scan_period, cmd->slow_scan_period);
WMI_LOGD("fast_scan_max_cycles: %d", cmd->fast_scan_max_cycles);
/* mac randomization attributes */
if (pno->scan_random.randomize) {
@@ -4855,7 +4852,7 @@ static QDF_STATUS send_pno_start_cmd_tlv(wmi_unified_t wmi_handle,
buf_ptr += sizeof(wmi_nlo_config_cmd_fixed_param);
cmd->no_of_ssids = QDF_MIN(pno->networks_cnt, WMI_NLO_MAX_SSIDS);
WMI_LOGD("SSID count : %d", cmd->no_of_ssids);
WMITLV_SET_HDR(buf_ptr, WMITLV_TAG_ARRAY_STRUC,
cmd->no_of_ssids * sizeof(nlo_configured_parameters));
buf_ptr += WMI_TLV_HDR_SIZE;
@@ -4873,10 +4870,6 @@ static QDF_STATUS send_pno_start_cmd_tlv(wmi_unified_t wmi_handle,
qdf_mem_copy(nlo_list[i].ssid.ssid.ssid,
pno->networks_list[i].ssid.ssid,
nlo_list[i].ssid.ssid.ssid_len);
WMI_LOGD("index: %d ssid: %.*s len: %d", i,
nlo_list[i].ssid.ssid.ssid_len,
(char *)nlo_list[i].ssid.ssid.ssid,
nlo_list[i].ssid.ssid.ssid_len);
/* Copy rssi threshold */
if (pno->networks_list[i].rssi_thresh &&
@@ -4885,21 +4878,16 @@ static QDF_STATUS send_pno_start_cmd_tlv(wmi_unified_t wmi_handle,
nlo_list[i].rssi_cond.valid = true;
nlo_list[i].rssi_cond.rssi =
pno->networks_list[i].rssi_thresh;
WMI_LOGD("RSSI threshold : %d dBm",
nlo_list[i].rssi_cond.rssi);
}
nlo_list[i].bcast_nw_type.valid = true;
nlo_list[i].bcast_nw_type.bcast_nw_type =
pno->networks_list[i].bc_new_type;
WMI_LOGD("Broadcast NW type (%u)",
nlo_list[i].bcast_nw_type.bcast_nw_type);
}
buf_ptr += cmd->no_of_ssids * sizeof(nlo_configured_parameters);
/* Copy channel info */
cmd->num_of_channels = QDF_MIN(pno->networks_list[0].channel_cnt,
WMI_NLO_MAX_CHAN);
WMI_LOGD("Channel count: %d", cmd->num_of_channels);
WMITLV_SET_HDR(buf_ptr, WMITLV_TAG_ARRAY_UINT32,
(cmd->num_of_channels * sizeof(uint32_t)));
buf_ptr += WMI_TLV_HDR_SIZE;
@@ -4912,8 +4900,6 @@ static QDF_STATUS send_pno_start_cmd_tlv(wmi_unified_t wmi_handle,
channel_list[i] =
wlan_chan_to_freq(pno->
networks_list[0].channels[i]);
WMI_LOGD("Ch[%d]: %d MHz", i, channel_list[i]);
}
buf_ptr += cmd->num_of_channels * sizeof(uint32_t);
WMITLV_SET_HDR(buf_ptr, WMITLV_TAG_ARRAY_STRUC,
@@ -4959,7 +4945,6 @@ static QDF_STATUS send_pno_start_cmd_tlv(wmi_unified_t wmi_handle,
WMITLV_TAG_STRUC_wmi_connected_nlo_rssi_params,
WMITLV_GET_STRUCT_TLVLEN(connected_nlo_rssi_params));
nlo_relative_rssi->relative_rssi = pno->relative_rssi;
WMI_LOGD("relative_rssi %d", nlo_relative_rssi->relative_rssi);
buf_ptr += sizeof(*nlo_relative_rssi);
/*
@@ -4981,9 +4966,6 @@ static QDF_STATUS send_pno_start_cmd_tlv(wmi_unified_t wmi_handle,
connected_nlo_bss_band_rssi_pref));
nlo_band_rssi[i].band = pno->band_rssi_pref.band;
nlo_band_rssi[i].rssi_pref = pno->band_rssi_pref.rssi;
WMI_LOGI("band_pref %d, rssi_pref %d",
nlo_band_rssi[i].band,
nlo_band_rssi[i].rssi_pref);
}
buf_ptr += cmd->num_cnlo_band_pref * sizeof(*nlo_band_rssi);