diff --git a/core/mac/src/pe/lim/lim_link_monitoring_algo.c b/core/mac/src/pe/lim/lim_link_monitoring_algo.c index c046dc2da06a..b25e744de371 100644 --- a/core/mac/src/pe/lim/lim_link_monitoring_algo.c +++ b/core/mac/src/pe/lim/lim_link_monitoring_algo.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2012-2019 The Linux Foundation. All rights reserved. + * Copyright (c) 2012-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 @@ -361,8 +361,8 @@ lim_tear_down_link_with_ap(struct mac_context *mac, uint8_t sessionId, */ pe_session->pmmOffloadInfo.bcnmiss = false; - pe_info("No ProbeRsp from AP after HB failure for pe/sme id %d/%d", - pe_session->peSessionId, pe_session->smeSessionId); + pe_info("No ProbeRsp from AP after HB failure for pe/sme id %d/%d reason code %d", + pe_session->peSessionId, pe_session->smeSessionId, reasonCode); /* Announce loss of link to Roaming algorithm */ /* and cleanup by sending SME_DISASSOC_REQ to SME */ @@ -523,7 +523,6 @@ void lim_handle_heart_beat_failure(struct mac_context *mac_ctx, session->dot11mode, NULL, NULL); } } else { - pe_debug("HB missed from AP on DFS channel"); /* * Connected on DFS channel so should not send the * probe request tear down the link directly 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 f3842fe95ec2..2a866cde7949 100644 --- a/core/mac/src/pe/lim/lim_process_deauth_frame.c +++ b/core/mac/src/pe/lim/lim_process_deauth_frame.c @@ -149,15 +149,12 @@ lim_process_deauth_frame(struct mac_context *mac, uint8_t *pRxPacketInfo, /* Get reasonCode from Deauthentication frame body */ reasonCode = sir_read_u16(pBody); - pe_debug("Received Deauth frame for Addr: " QDF_MAC_ADDR_STR - "(mlm state = %s, sme state = %d systemrole = %d " - "RSSI = %d) with reason code %d [%s] from " - QDF_MAC_ADDR_STR, QDF_MAC_ADDR_ARRAY(pHdr->da), - lim_mlm_state_str(pe_session->limMlmState), - pe_session->limSmeState, - GET_LIM_SYSTEM_ROLE(pe_session), frame_rssi, - reasonCode, lim_dot11_reason_str(reasonCode), - QDF_MAC_ADDR_ARRAY(pHdr->sa)); + pe_nofl_info("Deauth from %pM for %pM mlm state = %d, sme state = %d systemrole = %d RSSI = %d reason %d", + pHdr->sa, pHdr->da, + pe_session->limMlmState, + pe_session->limSmeState, + GET_LIM_SYSTEM_ROLE(pe_session), frame_rssi, + reasonCode); lim_diag_event_report(mac, WLAN_PE_DIAG_DEAUTH_FRAME_EVENT, pe_session, 0, reasonCode); 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 eb3a2a0528ea..b72645b67476 100644 --- a/core/mac/src/pe/lim/lim_send_management_frames.c +++ b/core/mac/src/pe/lim/lim_send_management_frames.c @@ -3150,7 +3150,9 @@ static QDF_STATUS lim_deauth_tx_complete_cnf_handler(void *context, QDF_STATUS status_code; struct scheduler_msg msg = {0}; - pe_debug("tx_success: %d", tx_success); + pe_debug("tx_complete = %s tx_success = %d", + (tx_success == WMI_MGMT_TX_COMP_TYPE_COMPLETE_OK) ? + "success" : "fail", tx_success); if (buf) qdf_nbuf_free(buf); @@ -3492,12 +3494,11 @@ lim_send_deauth_mgmt_frame(struct mac_context *mac, &nPayload, discon_ie); mlme_free_self_disconnect_ies(pe_session->vdev); - pe_debug("***Sessionid %d Sending Deauth frame with " - "reason %u and waitForAck %d to " QDF_MAC_ADDR_STR - " ,From " QDF_MAC_ADDR_STR, - pe_session->peSessionId, nReason, waitForAck, - QDF_MAC_ADDR_ARRAY(pMacHdr->da), - QDF_MAC_ADDR_ARRAY(pe_session->self_mac_addr)); + pe_nofl_info("vdev %d Deauth TX seq_num %d reason %u to " QDF_MAC_ADDR_STR + " from " QDF_MAC_ADDR_STR, + pe_session->vdev_id, mac->mgmtSeqNum, nReason, + QDF_MAC_ADDR_ARRAY(pMacHdr->da), + QDF_MAC_ADDR_ARRAY(pe_session->self_mac_addr)); if (wlan_reg_is_5ghz_ch_freq(pe_session->curr_op_freq) || pe_session->opmode == QDF_P2P_CLIENT_MODE || diff --git a/core/mac/src/pe/lim/lim_utils.c b/core/mac/src/pe/lim/lim_utils.c index 70b8b15dd1f0..0725f6567f84 100644 --- a/core/mac/src/pe/lim/lim_utils.c +++ b/core/mac/src/pe/lim/lim_utils.c @@ -4713,9 +4713,7 @@ void lim_handle_heart_beat_failure_timeout(struct mac_context *mac_ctx) * beacon after connection. */ (psession_entry->currentBssBeaconCnt == 0))) { - pe_debug("for session: %d", - psession_entry->peSessionId); - + pe_nofl_info("HB fail vdev %d",psession_entry->vdev_id); lim_send_deauth_mgmt_frame(mac_ctx, eSIR_MAC_DISASSOC_DUE_TO_INACTIVITY_REASON, psession_entry->bssId, psession_entry, false); diff --git a/core/wma/src/wma_mgmt.c b/core/wma/src/wma_mgmt.c index 83bf6742c755..ddb8299fd241 100644 --- a/core/wma/src/wma_mgmt.c +++ b/core/wma/src/wma_mgmt.c @@ -348,8 +348,9 @@ int wma_peer_sta_kickout_event_handler(void *handle, uint8_t *event, } addr = wlan_vdev_mlme_get_macaddr(vdev); - WMA_LOGA("%s: PEER:[%pM], ADDR:[%pN], INTERFACE:%d, reason:%d", - __func__, macaddr, addr, vdev_id, kickout_event->reason); + wma_nofl_info("STA kickout for %pM, on mac %pM, vdev %d, reason:%d", + macaddr, addr, vdev_id, kickout_event->reason); + if (wma->interfaces[vdev_id].roaming_in_progress) { WMA_LOGE("Ignore STA kick out since roaming is in progress"); return -EINVAL;