qcacld-3.0: Add logs for deauth TX, RX
Add logs for deauth TX, RX, sta kickout, beacon miss and deauth Tx status. Change-Id: Ib2148d8019c3600e1ce8bc532f3226c68b3f48b8 CRs-Fixed: 2608966
此提交包含在:
@@ -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
|
* Permission to use, copy, modify, and/or distribute this software for
|
||||||
* any purpose with or without fee is hereby granted, provided that the
|
* 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_session->pmmOffloadInfo.bcnmiss = false;
|
||||||
|
|
||||||
pe_info("No ProbeRsp from AP after HB failure for pe/sme id %d/%d",
|
pe_info("No ProbeRsp from AP after HB failure for pe/sme id %d/%d reason code %d",
|
||||||
pe_session->peSessionId, pe_session->smeSessionId);
|
pe_session->peSessionId, pe_session->smeSessionId, reasonCode);
|
||||||
|
|
||||||
/* Announce loss of link to Roaming algorithm */
|
/* Announce loss of link to Roaming algorithm */
|
||||||
/* and cleanup by sending SME_DISASSOC_REQ to SME */
|
/* 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);
|
session->dot11mode, NULL, NULL);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
pe_debug("HB missed from AP on DFS channel");
|
|
||||||
/*
|
/*
|
||||||
* Connected on DFS channel so should not send the
|
* Connected on DFS channel so should not send the
|
||||||
* probe request tear down the link directly
|
* probe request tear down the link directly
|
||||||
|
@@ -149,15 +149,12 @@ lim_process_deauth_frame(struct mac_context *mac, uint8_t *pRxPacketInfo,
|
|||||||
/* Get reasonCode from Deauthentication frame body */
|
/* Get reasonCode from Deauthentication frame body */
|
||||||
reasonCode = sir_read_u16(pBody);
|
reasonCode = sir_read_u16(pBody);
|
||||||
|
|
||||||
pe_debug("Received Deauth frame for Addr: " QDF_MAC_ADDR_STR
|
pe_nofl_info("Deauth from %pM for %pM mlm state = %d, sme state = %d systemrole = %d RSSI = %d reason %d",
|
||||||
"(mlm state = %s, sme state = %d systemrole = %d "
|
pHdr->sa, pHdr->da,
|
||||||
"RSSI = %d) with reason code %d [%s] from "
|
pe_session->limMlmState,
|
||||||
QDF_MAC_ADDR_STR, QDF_MAC_ADDR_ARRAY(pHdr->da),
|
pe_session->limSmeState,
|
||||||
lim_mlm_state_str(pe_session->limMlmState),
|
GET_LIM_SYSTEM_ROLE(pe_session), frame_rssi,
|
||||||
pe_session->limSmeState,
|
reasonCode);
|
||||||
GET_LIM_SYSTEM_ROLE(pe_session), frame_rssi,
|
|
||||||
reasonCode, lim_dot11_reason_str(reasonCode),
|
|
||||||
QDF_MAC_ADDR_ARRAY(pHdr->sa));
|
|
||||||
|
|
||||||
lim_diag_event_report(mac, WLAN_PE_DIAG_DEAUTH_FRAME_EVENT,
|
lim_diag_event_report(mac, WLAN_PE_DIAG_DEAUTH_FRAME_EVENT,
|
||||||
pe_session, 0, reasonCode);
|
pe_session, 0, reasonCode);
|
||||||
|
@@ -3150,7 +3150,9 @@ static QDF_STATUS lim_deauth_tx_complete_cnf_handler(void *context,
|
|||||||
QDF_STATUS status_code;
|
QDF_STATUS status_code;
|
||||||
struct scheduler_msg msg = {0};
|
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)
|
if (buf)
|
||||||
qdf_nbuf_free(buf);
|
qdf_nbuf_free(buf);
|
||||||
@@ -3492,12 +3494,11 @@ lim_send_deauth_mgmt_frame(struct mac_context *mac,
|
|||||||
&nPayload, discon_ie);
|
&nPayload, discon_ie);
|
||||||
mlme_free_self_disconnect_ies(pe_session->vdev);
|
mlme_free_self_disconnect_ies(pe_session->vdev);
|
||||||
|
|
||||||
pe_debug("***Sessionid %d Sending Deauth frame with "
|
pe_nofl_info("vdev %d Deauth TX seq_num %d reason %u to " QDF_MAC_ADDR_STR
|
||||||
"reason %u and waitForAck %d to " QDF_MAC_ADDR_STR
|
" from " QDF_MAC_ADDR_STR,
|
||||||
" ,From " QDF_MAC_ADDR_STR,
|
pe_session->vdev_id, mac->mgmtSeqNum, nReason,
|
||||||
pe_session->peSessionId, nReason, waitForAck,
|
QDF_MAC_ADDR_ARRAY(pMacHdr->da),
|
||||||
QDF_MAC_ADDR_ARRAY(pMacHdr->da),
|
QDF_MAC_ADDR_ARRAY(pe_session->self_mac_addr));
|
||||||
QDF_MAC_ADDR_ARRAY(pe_session->self_mac_addr));
|
|
||||||
|
|
||||||
if (wlan_reg_is_5ghz_ch_freq(pe_session->curr_op_freq) ||
|
if (wlan_reg_is_5ghz_ch_freq(pe_session->curr_op_freq) ||
|
||||||
pe_session->opmode == QDF_P2P_CLIENT_MODE ||
|
pe_session->opmode == QDF_P2P_CLIENT_MODE ||
|
||||||
|
@@ -4713,9 +4713,7 @@ void lim_handle_heart_beat_failure_timeout(struct mac_context *mac_ctx)
|
|||||||
* beacon after connection.
|
* beacon after connection.
|
||||||
*/
|
*/
|
||||||
(psession_entry->currentBssBeaconCnt == 0))) {
|
(psession_entry->currentBssBeaconCnt == 0))) {
|
||||||
pe_debug("for session: %d",
|
pe_nofl_info("HB fail vdev %d",psession_entry->vdev_id);
|
||||||
psession_entry->peSessionId);
|
|
||||||
|
|
||||||
lim_send_deauth_mgmt_frame(mac_ctx,
|
lim_send_deauth_mgmt_frame(mac_ctx,
|
||||||
eSIR_MAC_DISASSOC_DUE_TO_INACTIVITY_REASON,
|
eSIR_MAC_DISASSOC_DUE_TO_INACTIVITY_REASON,
|
||||||
psession_entry->bssId, psession_entry, false);
|
psession_entry->bssId, psession_entry, false);
|
||||||
|
@@ -348,8 +348,9 @@ int wma_peer_sta_kickout_event_handler(void *handle, uint8_t *event,
|
|||||||
}
|
}
|
||||||
addr = wlan_vdev_mlme_get_macaddr(vdev);
|
addr = wlan_vdev_mlme_get_macaddr(vdev);
|
||||||
|
|
||||||
WMA_LOGA("%s: PEER:[%pM], ADDR:[%pN], INTERFACE:%d, reason:%d",
|
wma_nofl_info("STA kickout for %pM, on mac %pM, vdev %d, reason:%d",
|
||||||
__func__, macaddr, addr, vdev_id, kickout_event->reason);
|
macaddr, addr, vdev_id, kickout_event->reason);
|
||||||
|
|
||||||
if (wma->interfaces[vdev_id].roaming_in_progress) {
|
if (wma->interfaces[vdev_id].roaming_in_progress) {
|
||||||
WMA_LOGE("Ignore STA kick out since roaming is in progress");
|
WMA_LOGE("Ignore STA kick out since roaming is in progress");
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
新增問題並參考
封鎖使用者