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
This commit is contained in:
@@ -1152,15 +1152,12 @@ enum legacy_result_code {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* struct tdls_send_mgmt_rsp - TDLS Response struct PE --> TDLS module
|
* struct tdls_send_mgmt_rsp - TDLS Response struct PE --> TDLS module
|
||||||
* same as struct tSirSmeRsp
|
|
||||||
* @session_id: session id
|
* @session_id: session id
|
||||||
* @transaction_id: transaction id
|
|
||||||
* @status_code: status code as tSirResultCodes
|
* @status_code: status code as tSirResultCodes
|
||||||
* @psoc: soc object
|
* @psoc: soc object
|
||||||
*/
|
*/
|
||||||
struct tdls_send_mgmt_rsp {
|
struct tdls_send_mgmt_rsp {
|
||||||
uint8_t session_id;
|
uint8_t session_id;
|
||||||
uint16_t transaction_id;
|
|
||||||
enum legacy_result_code status_code;
|
enum legacy_result_code status_code;
|
||||||
struct wlan_objmgr_psoc *psoc;
|
struct wlan_objmgr_psoc *psoc;
|
||||||
};
|
};
|
||||||
|
@@ -2759,8 +2759,7 @@ add_sta_error:
|
|||||||
|
|
||||||
static void
|
static void
|
||||||
lim_send_tdls_comp_mgmt_rsp(struct mac_context *mac_ctx, uint16_t msg_type,
|
lim_send_tdls_comp_mgmt_rsp(struct mac_context *mac_ctx, uint16_t msg_type,
|
||||||
tSirResultCodes result_code, uint8_t sme_session_id,
|
tSirResultCodes result_code, uint8_t sme_session_id)
|
||||||
uint16_t sme_transaction_id)
|
|
||||||
{
|
{
|
||||||
struct scheduler_msg msg = {0};
|
struct scheduler_msg msg = {0};
|
||||||
struct tdls_send_mgmt_rsp *sme_rsp;
|
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;
|
return;
|
||||||
|
|
||||||
sme_rsp->status_code = (enum legacy_result_code)result_code;
|
sme_rsp->status_code = (enum legacy_result_code)result_code;
|
||||||
|
|
||||||
sme_rsp->session_id = sme_session_id;
|
sme_rsp->session_id = sme_session_id;
|
||||||
sme_rsp->transaction_id = sme_transaction_id;
|
sme_rsp->psoc = mac_ctx->psoc;
|
||||||
|
|
||||||
msg.type = msg_type;
|
msg.type = msg_type;
|
||||||
sme_rsp->psoc = mac_ctx->psoc;
|
|
||||||
msg.bodyptr = sme_rsp;
|
msg.bodyptr = sme_rsp;
|
||||||
msg.callback = tgt_tdls_send_mgmt_rsp;
|
msg.callback = tgt_tdls_send_mgmt_rsp;
|
||||||
status = scheduler_post_message(QDF_MODULE_ID_PE,
|
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_tdls_send_mgmt_error:
|
||||||
lim_send_tdls_comp_mgmt_rsp(mac_ctx, eWNI_SME_TDLS_SEND_MGMT_RSP,
|
lim_send_tdls_comp_mgmt_rsp(mac_ctx, eWNI_SME_TDLS_SEND_MGMT_RSP,
|
||||||
result_code, send_req->session_id,
|
result_code, send_req->session_id);
|
||||||
send_req->transaction_id);
|
|
||||||
|
|
||||||
return QDF_STATUS_SUCCESS;
|
return QDF_STATUS_SUCCESS;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user