qcacld-3.0: Change the level of info level logs in PE
Change the level of info level logs in PE to avoid clutter on console log.
Change-Id: I185cc52f3deffe7cb7826d6d8375899a35ce459b
CRs-Fixed: 2294985
diff --git a/core/mac/src/pe/lim/lim_process_auth_frame.c b/core/mac/src/pe/lim/lim_process_auth_frame.c
index 66603d1..51ec06b 100644
--- a/core/mac/src/pe/lim/lim_process_auth_frame.c
+++ b/core/mac/src/pe/lim/lim_process_auth_frame.c
@@ -1150,15 +1150,15 @@
curr_seq_num = (mac_hdr->seqControl.seqNumHi << 4) |
(mac_hdr->seqControl.seqNumLo);
- pe_info("Sessionid: %d System role: %d limMlmState: %d: Auth response Received BSSID: "MAC_ADDRESS_STR" RSSI: %d",
- pe_session->peSessionId, GET_LIM_SYSTEM_ROLE(pe_session),
- pe_session->limMlmState, MAC_ADDR_ARRAY(mac_hdr->bssId),
- (uint) abs((int8_t) WMA_GET_RX_RSSI_NORMALIZED(rx_pkt_info)));
+ pe_debug("Sessionid: %d System role: %d limMlmState: %d: Auth response Received BSSID: "MAC_ADDRESS_STR" RSSI: %d",
+ pe_session->peSessionId, GET_LIM_SYSTEM_ROLE(pe_session),
+ pe_session->limMlmState, MAC_ADDR_ARRAY(mac_hdr->bssId),
+ (uint) abs((int8_t) WMA_GET_RX_RSSI_NORMALIZED(rx_pkt_info)));
if (pe_session->prev_auth_seq_num == curr_seq_num &&
mac_hdr->fc.retry) {
- pe_err("auth frame, seq num: %d is already processed, drop it",
- curr_seq_num);
+ pe_debug("auth frame, seq num: %d is already processed, drop it",
+ curr_seq_num);
return;
}
@@ -1517,9 +1517,9 @@
pBody = WMA_GET_RX_MPDU_DATA(pBd);
frameLen = WMA_GET_RX_PAYLOAD_LEN(pBd);
- pe_info("Auth Frame Received: BSSID " MAC_ADDRESS_STR " (RSSI %d)",
- MAC_ADDR_ARRAY(pHdr->bssId),
- (uint) abs((int8_t) WMA_GET_RX_RSSI_NORMALIZED(pBd)));
+ pe_debug("Auth Frame Received: BSSID " MAC_ADDRESS_STR " (RSSI %d)",
+ MAC_ADDR_ARRAY(pHdr->bssId),
+ (uint) abs((int8_t) WMA_GET_RX_RSSI_NORMALIZED(pBd)));
/* Auth frame has come on a new BSS, however, we need to find the session
* from where the auth-req was sent to the new AP
diff --git a/core/mac/src/pe/lim/lim_process_deauth_frame.c b/core/mac/src/pe/lim/lim_process_deauth_frame.c
index 070105a..6be8862 100644
--- a/core/mac/src/pe/lim/lim_process_deauth_frame.c
+++ b/core/mac/src/pe/lim/lim_process_deauth_frame.c
@@ -86,7 +86,7 @@
(eLIM_SME_WT_DEAUTH_STATE == psessionEntry->limSmeState))) {
/*Every 15th deauth frame will be logged in kmsg */
if (!(pMac->lim.deauthMsgCnt & 0xF)) {
- pe_info("received Deauth frame in DEAUTH_WT_STATE"
+ pe_debug("received Deauth frame in DEAUTH_WT_STATE"
"(already processing previously received DEAUTH frame)"
"Dropping this.. Deauth Failed %d",
++pMac->lim.deauthMsgCnt);
@@ -99,14 +99,14 @@
if (lim_is_group_addr(pHdr->sa)) {
/* Received Deauth frame from a BC/MC address */
/* Log error and ignore it */
- pe_info("received Deauth frame from a BC/MC address");
+ pe_debug("received Deauth frame from a BC/MC address");
return;
}
if (lim_is_group_addr(pHdr->da) && !lim_is_addr_bc(pHdr->da)) {
/* Received Deauth frame for a MC address */
/* Log error and ignore it */
- pe_info("received Deauth frame for a MC address");
+ pe_debug("received Deauth frame for a MC address");
return;
}
if (!lim_validate_received_frame_a1_addr(pMac,
@@ -119,7 +119,7 @@
if (psessionEntry->limRmfEnabled
&& (WMA_GET_RX_DPU_FEEDBACK(pRxPacketInfo) &
DPU_FEEDBACK_UNPROTECTED_ERROR)) {
- pe_info("received an unprotected deauth from AP");
+ pe_debug("received an unprotected deauth from AP");
/*
* When 11w offload is enabled then
* firmware should not fwd this frame
@@ -146,7 +146,7 @@
/* Get reasonCode from Deauthentication frame body */
reasonCode = sir_read_u16(pBody);
- pe_info("Received Deauth frame for Addr: " MAC_ADDRESS_STR
+ pe_debug("Received Deauth frame for Addr: " MAC_ADDRESS_STR
"(mlm state = %s, sme state = %d systemrole = %d "
"RSSI = %d) with reason code %d [%s] from "
MAC_ADDRESS_STR, MAC_ADDR_ARRAY(pHdr->da),
diff --git a/core/mac/src/pe/lim/lim_process_disassoc_frame.c b/core/mac/src/pe/lim/lim_process_disassoc_frame.c
index b47d54f..644d87f 100644
--- a/core/mac/src/pe/lim/lim_process_disassoc_frame.c
+++ b/core/mac/src/pe/lim/lim_process_disassoc_frame.c
@@ -100,11 +100,10 @@
((eLIM_SME_WT_DISASSOC_STATE == psessionEntry->limSmeState) ||
(eLIM_SME_WT_DEAUTH_STATE == psessionEntry->limSmeState))) {
if (!(pMac->lim.disassocMsgCnt & 0xF)) {
- pe_info("received Disassoc frame in %s"
- "(already processing previously received Disassoc frame)"
- "Dropping this.. Disassoc Failed %d",
- lim_sme_state_str(psessionEntry->limSmeState),
- ++pMac->lim.disassocMsgCnt);
+ pe_debug("received Disassoc frame in %s"
+ "already processing previously received Disassoc frame, dropping this %d",
+ lim_sme_state_str(psessionEntry->limSmeState),
+ ++pMac->lim.disassocMsgCnt);
} else {
pMac->lim.disassocMsgCnt++;
}
diff --git a/core/mac/src/pe/lim/lim_process_mlm_req_messages.c b/core/mac/src/pe/lim/lim_process_mlm_req_messages.c
index 32b68bb..17ebb13 100644
--- a/core/mac/src/pe/lim/lim_process_mlm_req_messages.c
+++ b/core/mac/src/pe/lim/lim_process_mlm_req_messages.c
@@ -2378,7 +2378,7 @@
auth_frame.authTransactionSeqNumber =
SIR_MAC_AUTH_FRAME_1;
auth_frame.authStatusCode = 0;
- pe_warn("Retry Auth");
+ pe_debug("Retry Auth");
mac_ctx->auth_ack_status = LIM_AUTH_ACK_NOT_RCD;
lim_increase_fils_sequence_number(session_entry);
lim_send_auth_mgmt_frame(mac_ctx,
@@ -2561,7 +2561,7 @@
* when device has missed the assoc resp sent by peer.
* By sending deauth try to clear the session created on peer device.
*/
- pe_info("Sessionid: %d try sending deauth on channel %d to BSSID: "
+ pe_debug("Sessionid: %d try sending deauth on channel %d to BSSID: "
MAC_ADDRESS_STR, session->peSessionId,
session->currentOperChannel,
MAC_ADDR_ARRAY(session->bssId));
diff --git a/core/mac/src/pe/lim/lim_send_management_frames.c b/core/mac/src/pe/lim/lim_send_management_frames.c
index b6896f3..85b8643 100644
--- a/core/mac/src/pe/lim/lim_send_management_frames.c
+++ b/core/mac/src/pe/lim/lim_send_management_frames.c
@@ -2286,7 +2286,7 @@
goto alloc_packet;
}
- pe_info("Sending Auth seq# %d status %d (%d) to "
+ pe_debug("Sending Auth seq# %d status %d (%d) to "
MAC_ADDRESS_STR,
auth_frame->authTransactionSeqNumber,
auth_frame->authStatusCode,
diff --git a/core/mac/src/pe/lim/lim_send_messages.c b/core/mac/src/pe/lim/lim_send_messages.c
index 661ff19..22dcdba 100644
--- a/core/mac/src/pe/lim/lim_send_messages.c
+++ b/core/mac/src/pe/lim/lim_send_messages.c
@@ -395,7 +395,7 @@
i--)
;
new_ac = i;
- pe_info("Downgrading AC %d ---> AC %d ", ac, new_ac);
+ pe_debug("Downgrading AC %d ---> AC %d ", ac, new_ac);
pe_session->gLimEdcaParamsActive[ac] =
edca_params[new_ac];
}
diff --git a/core/mac/src/pe/lim/lim_send_sme_rsp_messages.c b/core/mac/src/pe/lim/lim_send_sme_rsp_messages.c
index a2245b3..d90522a 100644
--- a/core/mac/src/pe/lim/lim_send_sme_rsp_messages.c
+++ b/core/mac/src/pe/lim/lim_send_sme_rsp_messages.c
@@ -1818,10 +1818,10 @@
ap_new_ch_width = csa_params->new_ch_width + 1;
- pe_info("new channel: %d new_ch_width: %d seg0: %d seg1: %d",
- csa_params->channel, ap_new_ch_width,
- csa_params->new_ch_freq_seg1,
- csa_params->new_ch_freq_seg2);
+ pe_debug("new channel: %d new_ch_width: %d seg0: %d seg1: %d",
+ csa_params->channel, ap_new_ch_width,
+ csa_params->new_ch_freq_seg1,
+ csa_params->new_ch_freq_seg2);
if ((ap_new_ch_width != CH_WIDTH_80MHZ) &&
(ap_new_ch_width != CH_WIDTH_160MHZ) &&
@@ -1863,8 +1863,8 @@
}
if (ap_new_ch_width > fw_vht_ch_wd) {
- pe_info("New BW is not supported, setting BW to %d",
- fw_vht_ch_wd);
+ pe_debug("New BW is not supported, setting BW to %d",
+ fw_vht_ch_wd);
ap_new_ch_width = fw_vht_ch_wd;
}
ch_params.ch_width = ap_new_ch_width ;
@@ -1875,8 +1875,8 @@
csa_params->new_ch_freq_seg2 = ch_params.center_freq_seg1;
} else if (!new_ch_width_dfn) {
if (ap_new_ch_width > fw_vht_ch_wd) {
- pe_info("New BW is not supported, setting BW to %d",
- fw_vht_ch_wd);
+ pe_debug("New BW is not supported, setting BW to %d",
+ fw_vht_ch_wd);
ap_new_ch_width = fw_vht_ch_wd;
}
if (csa_params->new_ch_freq_seg1 != csa_params->channel +
@@ -1893,8 +1893,8 @@
return QDF_STATUS_E_INVAL;
}
if (ap_new_ch_width > fw_vht_ch_wd) {
- pe_info("New width is not supported, setting BW to %d",
- fw_vht_ch_wd);
+ pe_debug("New width is not supported, setting BW to %d",
+ fw_vht_ch_wd);
ap_new_ch_width = fw_vht_ch_wd;
}
if ((ap_new_ch_width == CH_WIDTH_160MHZ) &&
@@ -2015,18 +2015,18 @@
chnl_switch_info =
&session_entry->gLimWiderBWChannelSwitch;
- pe_info("vht: %d ht: %d flag: %x chan: %d, sec_ch_offset %d",
- session_entry->vhtCapability,
- session_entry->htSupportedChannelWidthSet,
- csa_params->ies_present_flag,
- csa_params->channel,
- csa_params->sec_chan_offset);
- pe_info("seg1: %d seg2: %d width: %d country: %s class: %d",
- csa_params->new_ch_freq_seg1,
- csa_params->new_ch_freq_seg2,
- csa_params->new_ch_width,
- mac_ctx->scan.countryCodeCurrent,
- csa_params->new_op_class);
+ pe_debug("vht: %d ht: %d flag: %x chan: %d, sec_ch_offset %d",
+ session_entry->vhtCapability,
+ session_entry->htSupportedChannelWidthSet,
+ csa_params->ies_present_flag,
+ csa_params->channel,
+ csa_params->sec_chan_offset);
+ pe_debug("seg1: %d seg2: %d width: %d country: %s class: %d",
+ csa_params->new_ch_freq_seg1,
+ csa_params->new_ch_freq_seg2,
+ csa_params->new_ch_width,
+ mac_ctx->scan.countryCodeCurrent,
+ csa_params->new_op_class);
if (session_entry->vhtCapability &&
session_entry->htSupportedChannelWidthSet) {
@@ -2431,8 +2431,8 @@
/* Send update beacon template message */
lim_send_beacon_ind(mac_ctx, session);
- pe_info("Updated BSS color change countdown = %d",
- session->he_bss_color_change.countdown);
+ pe_debug("Updated BSS color change countdown = %d",
+ session->he_bss_color_change.countdown);
}
static void
diff --git a/core/mac/src/pe/sch/sch_beacon_gen.c b/core/mac/src/pe/sch/sch_beacon_gen.c
index e728c7c..a5b0ddc 100644
--- a/core/mac/src/pe/sch/sch_beacon_gen.c
+++ b/core/mac/src/pe/sch/sch_beacon_gen.c
@@ -357,19 +357,19 @@
populate_dot_11_f_ext_chann_switch_ann(mac_ctx,
ext_csa,
session);
- pe_info("ecsa: mode:%d reg:%d chan:%d count:%d",
- ext_csa->switch_mode,
- ext_csa->new_reg_class,
- ext_csa->new_channel,
- ext_csa->switch_count);
+ pe_debug("ecsa: mode:%d reg:%d chan:%d count:%d",
+ ext_csa->switch_mode,
+ ext_csa->new_reg_class,
+ ext_csa->new_channel,
+ ext_csa->switch_count);
} else {
populate_dot11f_chan_switch_ann(mac_ctx,
&bcn_2->ChanSwitchAnn,
session);
- pe_info("csa: mode:%d chan:%d count:%d",
- bcn_2->ChanSwitchAnn.switchMode,
- bcn_2->ChanSwitchAnn.newChannel,
- bcn_2->ChanSwitchAnn.switchCount);
+ pe_debug("csa: mode:%d chan:%d count:%d",
+ bcn_2->ChanSwitchAnn.switchMode,
+ bcn_2->ChanSwitchAnn.newChannel,
+ bcn_2->ChanSwitchAnn.switchCount);
}
}
diff --git a/core/mac/src/sys/legacy/src/system/src/sys_entry_func.c b/core/mac/src/sys/legacy/src/system/src/sys_entry_func.c
index 7452307..6f0603f 100644
--- a/core/mac/src/sys/legacy/src/system/src/sys_entry_func.c
+++ b/core/mac/src/sys/legacy/src/system/src/sys_entry_func.c
@@ -130,25 +130,25 @@
mac_hdr = WMA_GET_RX_MAC_HEADER(bd_ptr);
if (subtype == SIR_MAC_MGMT_ASSOC_REQ) {
- pe_info("ASSOC REQ frame allowed: da: " MAC_ADDRESS_STR ", sa: " MAC_ADDRESS_STR ", bssid: " MAC_ADDRESS_STR ", Assoc Req count so far: %d",
- MAC_ADDR_ARRAY(mac_hdr->da),
- MAC_ADDR_ARRAY(mac_hdr->sa),
- MAC_ADDR_ARRAY(mac_hdr->bssId),
- mac_ctx->sys.gSysFrameCount[type][subtype]);
+ pe_debug("ASSOC REQ frame allowed: da: " MAC_ADDRESS_STR ", sa: " MAC_ADDRESS_STR ", bssid: " MAC_ADDRESS_STR ", Assoc Req count so far: %d",
+ MAC_ADDR_ARRAY(mac_hdr->da),
+ MAC_ADDR_ARRAY(mac_hdr->sa),
+ MAC_ADDR_ARRAY(mac_hdr->bssId),
+ mac_ctx->sys.gSysFrameCount[type][subtype]);
}
if (subtype == SIR_MAC_MGMT_DEAUTH) {
- pe_info("DEAUTH frame allowed: da: " MAC_ADDRESS_STR ", sa: " MAC_ADDRESS_STR ", bssid: " MAC_ADDRESS_STR ", DEAUTH count so far: %d",
- MAC_ADDR_ARRAY(mac_hdr->da),
- MAC_ADDR_ARRAY(mac_hdr->sa),
- MAC_ADDR_ARRAY(mac_hdr->bssId),
- mac_ctx->sys.gSysFrameCount[type][subtype]);
+ pe_debug("DEAUTH frame allowed: da: " MAC_ADDRESS_STR ", sa: " MAC_ADDRESS_STR ", bssid: " MAC_ADDRESS_STR ", DEAUTH count so far: %d",
+ MAC_ADDR_ARRAY(mac_hdr->da),
+ MAC_ADDR_ARRAY(mac_hdr->sa),
+ MAC_ADDR_ARRAY(mac_hdr->bssId),
+ mac_ctx->sys.gSysFrameCount[type][subtype]);
}
if (subtype == SIR_MAC_MGMT_DISASSOC) {
- pe_info("DISASSOC frame allowed: da: " MAC_ADDRESS_STR ", sa: " MAC_ADDRESS_STR ", bssid: " MAC_ADDRESS_STR ", DISASSOC count so far: %d",
- MAC_ADDR_ARRAY(mac_hdr->da),
- MAC_ADDR_ARRAY(mac_hdr->sa),
- MAC_ADDR_ARRAY(mac_hdr->bssId),
- mac_ctx->sys.gSysFrameCount[type][subtype]);
+ pe_debug("DISASSOC frame allowed: da: " MAC_ADDRESS_STR ", sa: " MAC_ADDRESS_STR ", bssid: " MAC_ADDRESS_STR ", DISASSOC count so far: %d",
+ MAC_ADDR_ARRAY(mac_hdr->da),
+ MAC_ADDR_ARRAY(mac_hdr->sa),
+ MAC_ADDR_ARRAY(mac_hdr->bssId),
+ mac_ctx->sys.gSysFrameCount[type][subtype]);
}
/* Post the message to PE Queue */