mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 00:24:41 -04:00
qcacld-3.0: Selectively reduce the SME logs
Selectively reduce the sme logs loglevel from info to debug. Change-Id: Ie571aa0438e673d34d045869473935816d4289e9 CRs-Fixed: 2607108
This commit is contained in:
parent
8065560eb8
commit
da60bb1412
5 changed files with 36 additions and 34 deletions
|
|
@ -6025,13 +6025,13 @@ void sme_free_join_rsp_fils_params(struct csr_roam_info *roam_info)
|
|||
struct fils_join_rsp_params *roam_fils_params;
|
||||
|
||||
if (!roam_info) {
|
||||
sme_err("FILS Roam Info NULL");
|
||||
sme_debug("FILS Roam Info NULL");
|
||||
return;
|
||||
}
|
||||
|
||||
roam_fils_params = roam_info->fils_join_rsp;
|
||||
if (!roam_fils_params) {
|
||||
sme_err("FILS Roam Param NULL");
|
||||
sme_debug("FILS Roam Param NULL");
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
@ -13418,7 +13418,7 @@ QDF_STATUS sme_enable_disable_chanavoidind_event(mac_handle_t mac_handle,
|
|||
struct scheduler_msg msg = {0};
|
||||
|
||||
if (!mac_ctx->mlme_cfg->gen.optimize_ca_event) {
|
||||
sme_err("optimize_ca_event not enabled in ini");
|
||||
sme_debug("optimize_ca_event not enabled in ini");
|
||||
return QDF_STATUS_E_NOSUPPORT;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -7697,7 +7697,7 @@ static void csr_roam_process_join_res(struct mac_context *mac_ctx,
|
|||
false, true,
|
||||
eSIR_TX_RX, 0, 0, NULL, 0))) {
|
||||
/* NO keys. these key parameters don't matter */
|
||||
sme_err("Set context for unicast fail");
|
||||
sme_debug("Set context for unicast fail");
|
||||
csr_roam_substate_change(mac_ctx,
|
||||
eCSR_ROAM_SUBSTATE_NONE, session_id);
|
||||
}
|
||||
|
|
@ -11840,10 +11840,11 @@ csr_roam_chk_lnk_disassoc_ind(struct mac_context *mac_ctx, tSirSmeRsp *msg_ptr)
|
|||
return;
|
||||
}
|
||||
|
||||
sme_err("DISASSOCIATION from peer =" QDF_MAC_ADDR_STR "reason: %d status: %d session: %d",
|
||||
QDF_MAC_ADDR_ARRAY(pDisassocInd->peer_macaddr.bytes),
|
||||
pDisassocInd->reasonCode,
|
||||
pDisassocInd->status_code, sessionId);
|
||||
sme_nofl_info("disassoc from peer " QDF_MAC_ADDR_STR
|
||||
"reason: %d status: %d vid %d",
|
||||
QDF_MAC_ADDR_ARRAY(pDisassocInd->peer_macaddr.bytes),
|
||||
pDisassocInd->reasonCode,
|
||||
pDisassocInd->status_code, sessionId);
|
||||
/*
|
||||
* If we are in neighbor preauth done state then on receiving
|
||||
* disassoc or deauth we dont roam instead we just disassoc
|
||||
|
|
@ -15118,8 +15119,8 @@ csr_update_he_caps_mcs(struct wlan_mlme_cfg *mlme_cfg,
|
|||
tx_mcs_map = HE_SET_MCS_4_NSS(tx_mcs_map, mcs_map, 2);
|
||||
rx_mcs_map = HE_SET_MCS_4_NSS(rx_mcs_map, mcs_map, 2);
|
||||
}
|
||||
sme_info("new HE Nss MCS MAP: Rx 0x%0X, Tx: 0x%0X",
|
||||
rx_mcs_map, tx_mcs_map);
|
||||
sme_debug("new HE Nss MCS MAP: Rx 0x%0X, Tx: 0x%0X",
|
||||
rx_mcs_map, tx_mcs_map);
|
||||
csr_session->he_config.tx_he_mcs_map_lt_80 = tx_mcs_map;
|
||||
csr_session->he_config.rx_he_mcs_map_lt_80 = rx_mcs_map;
|
||||
}
|
||||
|
|
@ -15338,12 +15339,14 @@ QDF_STATUS csr_send_join_req_msg(struct mac_context *mac, uint32_t sessionId,
|
|||
qdf_mem_copy(&csr_join_req->self_mac_addr,
|
||||
&pSession->self_mac_addr,
|
||||
sizeof(tSirMacAddr));
|
||||
sme_info("vdevid-%d: Connecting to ssid:%.*s bssid: "QDF_MAC_ADDR_STR" rssi: %d freq: %d country_code: %c%c",
|
||||
sessionId, csr_join_req->ssId.length, csr_join_req->ssId.ssId,
|
||||
QDF_MAC_ADDR_ARRAY(pBssDescription->bssId),
|
||||
pBssDescription->rssi, pBssDescription->chan_freq,
|
||||
mac->scan.countryCodeCurrent[0],
|
||||
mac->scan.countryCodeCurrent[1]);
|
||||
sme_nofl_info("vdev-%d: Connecting to %.*s " QDF_MAC_ADDR_STR
|
||||
" rssi: %d freq: %d CC: %c%c",
|
||||
sessionId, csr_join_req->ssId.length,
|
||||
csr_join_req->ssId.ssId,
|
||||
QDF_MAC_ADDR_ARRAY(pBssDescription->bssId),
|
||||
pBssDescription->rssi, pBssDescription->chan_freq,
|
||||
mac->scan.countryCodeCurrent[0],
|
||||
mac->scan.countryCodeCurrent[1]);
|
||||
/* bsstype */
|
||||
dw_tmp = csr_translate_bsstype_to_mac_type
|
||||
(pProfile->BSSType);
|
||||
|
|
@ -16141,8 +16144,8 @@ QDF_STATUS csr_send_join_req_msg(struct mac_context *mac, uint32_t sessionId,
|
|||
QDF_MC_TIMER_TO_SEC_UNIT)/
|
||||
QDF_MC_TIMER_TO_MS_UNIT);
|
||||
if (!QDF_IS_STATUS_SUCCESS(packetdump_timer_status))
|
||||
sme_err("cannot start packetdump timer status: %d",
|
||||
packetdump_timer_status);
|
||||
sme_debug("cannot start packetdump timer status: %d",
|
||||
packetdump_timer_status);
|
||||
}
|
||||
#ifndef WLAN_MDM_CODE_REDUCTION_OPT
|
||||
if (eWNI_SME_JOIN_REQ == messageType) {
|
||||
|
|
@ -16702,7 +16705,7 @@ static void csr_send_set_ie(uint8_t type, uint8_t sub_type,
|
|||
if (!(type == WLAN_VDEV_MLME_TYPE_STA ||
|
||||
(type == WLAN_VDEV_MLME_TYPE_AP &&
|
||||
sub_type == WLAN_VDEV_MLME_SUBTYPE_P2P_DEVICE))) {
|
||||
sme_err("Failed to send set IE req for vdev_%d", vdev_id);
|
||||
sme_debug("Failed to send set IE req for vdev_%d", vdev_id);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
@ -16715,7 +16718,7 @@ static void csr_send_set_ie(uint8_t type, uint8_t sub_type,
|
|||
msg->length = sizeof(*msg);
|
||||
status = umac_send_mb_message_to_mac(msg);
|
||||
if (!QDF_IS_STATUS_SUCCESS(status))
|
||||
sme_err("Failed to send set IE req for vdev_%d", vdev_id);
|
||||
sme_debug("Failed to send set IE req for vdev_%d", vdev_id);
|
||||
}
|
||||
|
||||
void csr_get_vdev_type_nss(enum QDF_OPMODE dev_mode, uint8_t *nss_2g,
|
||||
|
|
@ -19117,7 +19120,7 @@ csr_handle_roam_state_change(struct mac_context *mac, uint8_t vdev_id,
|
|||
|
||||
if (requested_state != ROAM_DEINIT &&
|
||||
!csr_is_conn_state_connected_infra(mac, vdev_id)) {
|
||||
sme_err("ROAM: roam state change requested in disconnected state");
|
||||
sme_debug("ROAM: roam state change requested in disconnected state");
|
||||
return status;
|
||||
}
|
||||
|
||||
|
|
@ -20630,7 +20633,7 @@ void csr_process_set_hw_mode(struct mac_context *mac, tSmeCmd *command)
|
|||
status = policy_mgr_validate_dbs_switch(mac->psoc, action);
|
||||
|
||||
if (QDF_IS_STATUS_ERROR(status)) {
|
||||
sme_err("Hw mode change not sent to FW status = %d", status);
|
||||
sme_debug("Hw mode change not sent to FW status = %d", status);
|
||||
if (status == QDF_STATUS_E_ALREADY)
|
||||
hw_mode_change_status = SET_HW_MODE_STATUS_ALREADY;
|
||||
goto fail;
|
||||
|
|
@ -20695,7 +20698,7 @@ fail:
|
|||
if (!param)
|
||||
return;
|
||||
|
||||
sme_err("Sending set HW fail response to SME");
|
||||
sme_debug("Sending set HW fail response to SME");
|
||||
param->status = hw_mode_change_status;
|
||||
param->cfgd_hw_mode_index = 0;
|
||||
param->num_vdev_mac_entries = 0;
|
||||
|
|
@ -21804,7 +21807,7 @@ QDF_STATUS
|
|||
csr_roam_update_cfg(struct mac_context *mac, uint8_t vdev_id, uint8_t reason)
|
||||
{
|
||||
if (!MLME_IS_ROAM_STATE_RSO_STARTED(mac->psoc, vdev_id)) {
|
||||
sme_err("Update cfg received while ROAM RSO not started");
|
||||
sme_debug("Update cfg received while ROAM RSO not started");
|
||||
return QDF_STATUS_E_INVAL;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2011-2019 The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2011-2020 The Linux Foundation. All rights reserved.
|
||||
*
|
||||
* Permission to use, copy, modify, and/or distribute this software for
|
||||
* any purpose with or without fee is hereby granted, provided that the
|
||||
|
|
@ -1187,7 +1187,7 @@ static void csr_handle_nxt_cmd(struct mac_context *mac_ctx,
|
|||
}
|
||||
|
||||
if (QDF_STATUS_E_FAILURE == ret) {
|
||||
sme_err("conn update fail %d", chan_freq);
|
||||
sme_debug("conn update fail %d", chan_freq);
|
||||
csr_scan_handle_search_for_ssid_failure(mac_ctx,
|
||||
session_id);
|
||||
} else if ((QDF_STATUS_E_NOSUPPORT == ret) ||
|
||||
|
|
|
|||
|
|
@ -930,9 +930,9 @@ QDF_STATUS csr_neighbor_roam_indicate_connect(
|
|||
/* Bail out if this is NOT a STA persona */
|
||||
if (mac->roam.roamSession[session_id].pCurRoamProfile->csrPersona !=
|
||||
QDF_STA_MODE) {
|
||||
sme_err("Ignoring Connect ind received from a non STA. session_id: %d, csrPersonna %d",
|
||||
session_id,
|
||||
(int)session->pCurRoamProfile->csrPersona);
|
||||
sme_debug("Ignoring Connect ind received from a non STA. session_id: %d, csrPersonna %d",
|
||||
session_id,
|
||||
(int)session->pCurRoamProfile->csrPersona);
|
||||
return QDF_STATUS_SUCCESS;
|
||||
}
|
||||
/* if a concurrent session is running */
|
||||
|
|
|
|||
|
|
@ -1080,8 +1080,7 @@ uint16_t csr_check_concurrent_channel_overlap(struct mac_context *mac_ctx,
|
|||
intf_lfreq = intf_cfreq - intf_hbw;
|
||||
intf_hfreq = intf_cfreq + intf_hbw;
|
||||
|
||||
sme_err("SAP: OCH: %03d CCH: %03d BW: %d LF: %d HF: %d"
|
||||
" INTF: OCH: %03d CF: %d BW: %d LF: %d HF: %d",
|
||||
sme_debug("SAP: OCH: %03d CCH: %03d BW: %d LF: %d HF: %d INTF: OCH: %03d CF: %d BW: %d LF: %d HF: %d",
|
||||
sap_ch_freq, sap_cfreq, sap_hbw * 2,
|
||||
sap_lfreq, sap_hfreq, intf_ch_freq,
|
||||
intf_cfreq, intf_hbw * 2, intf_lfreq, intf_hfreq);
|
||||
|
|
@ -1123,8 +1122,8 @@ uint16_t csr_check_concurrent_channel_overlap(struct mac_context *mac_ctx,
|
|||
if (intf_ch_freq == sap_ch_freq)
|
||||
intf_ch_freq = 0;
|
||||
|
||||
sme_err("##Concurrent Channels %s Interfering",
|
||||
intf_ch_freq == 0 ? "Not" : "Are");
|
||||
sme_debug("##Concurrent Channels %s Interfering",
|
||||
intf_ch_freq == 0 ? "Not" : "Are");
|
||||
|
||||
return intf_ch_freq;
|
||||
}
|
||||
|
|
@ -2407,7 +2406,7 @@ static bool csr_validate_sta_bcn_intrvl(struct mac_context *mac_ctx,
|
|||
* MCC should not be enabled so making it
|
||||
* false to enforce on same channel
|
||||
*/
|
||||
sme_err("*** MCC with SAP+STA sessions ****");
|
||||
sme_debug("*** MCC with SAP+STA sessions ****");
|
||||
*status = QDF_STATUS_SUCCESS;
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue