From 8ef5a3b3e17385bed540234dd0af04094ee27295 Mon Sep 17 00:00:00 2001 From: Jeff Johnson Date: Fri, 22 Feb 2019 11:35:12 -0800 Subject: [PATCH] qcacld-3.0: Remove transaction_id from tdls_send_mgmt_rsp The transaction_id in struct tdls_send_mgmt_rsp is unused, so remove it. Also remove the comment that implies this struct has the same structure as tSirSmeRsp since it does not. Change-Id: I79cf0b2051b232635f37808155ddbd6438a40658 CRs-Fixed: 2404152 --- .../tdls/dispatcher/inc/wlan_tdls_public_structs.h | 3 --- core/mac/src/pe/lim/lim_process_tdls.c | 10 +++------- 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/components/tdls/dispatcher/inc/wlan_tdls_public_structs.h b/components/tdls/dispatcher/inc/wlan_tdls_public_structs.h index 26a5dfb13369..d8a3814662ea 100644 --- a/components/tdls/dispatcher/inc/wlan_tdls_public_structs.h +++ b/components/tdls/dispatcher/inc/wlan_tdls_public_structs.h @@ -1152,15 +1152,12 @@ enum legacy_result_code { /** * struct tdls_send_mgmt_rsp - TDLS Response struct PE --> TDLS module - * same as struct tSirSmeRsp * @session_id: session id - * @transaction_id: transaction id * @status_code: status code as tSirResultCodes * @psoc: soc object */ struct tdls_send_mgmt_rsp { uint8_t session_id; - uint16_t transaction_id; enum legacy_result_code status_code; struct wlan_objmgr_psoc *psoc; }; diff --git a/core/mac/src/pe/lim/lim_process_tdls.c b/core/mac/src/pe/lim/lim_process_tdls.c index 08c6a868e324..4e55590fd95e 100644 --- a/core/mac/src/pe/lim/lim_process_tdls.c +++ b/core/mac/src/pe/lim/lim_process_tdls.c @@ -2759,8 +2759,7 @@ add_sta_error: static void lim_send_tdls_comp_mgmt_rsp(struct mac_context *mac_ctx, uint16_t msg_type, - tSirResultCodes result_code, uint8_t sme_session_id, - uint16_t sme_transaction_id) + tSirResultCodes result_code, uint8_t sme_session_id) { struct scheduler_msg msg = {0}; struct tdls_send_mgmt_rsp *sme_rsp; @@ -2774,12 +2773,10 @@ lim_send_tdls_comp_mgmt_rsp(struct mac_context *mac_ctx, uint16_t msg_type, return; sme_rsp->status_code = (enum legacy_result_code)result_code; - sme_rsp->session_id = sme_session_id; - sme_rsp->transaction_id = sme_transaction_id; + sme_rsp->psoc = mac_ctx->psoc; msg.type = msg_type; - sme_rsp->psoc = mac_ctx->psoc; msg.bodyptr = sme_rsp; msg.callback = tgt_tdls_send_mgmt_rsp; status = scheduler_post_message(QDF_MODULE_ID_PE, @@ -2914,8 +2911,7 @@ QDF_STATUS lim_process_sme_tdls_mgmt_send_req(struct mac_context *mac_ctx, lim_tdls_send_mgmt_error: lim_send_tdls_comp_mgmt_rsp(mac_ctx, eWNI_SME_TDLS_SEND_MGMT_RSP, - result_code, send_req->session_id, - send_req->transaction_id); + result_code, send_req->session_id); return QDF_STATUS_SUCCESS; }