From 579fcdcb5eeae49c3d02582dd867edb7f85304d6 Mon Sep 17 00:00:00 2001 From: Jeff Johnson Date: Sat, 29 Dec 2018 20:32:26 -0800 Subject: [PATCH] qcacld-3.0: Harmonize lim_process_add_sta_rsp() The parameter identifiers used in the implementation of lim_process_add_sta_rsp() differ from the ones used in the prototype. Since this can be confusing for both humans and code analysis tools, harmonize on the parameters used in the implementation. In addition, relocate the documentation so that it is the interface that is documented and not the implementation. Change-Id: I221b4fd0a643770b46adf06776b16fa85a6de03c CRs-Fixed: 2376110 --- core/mac/src/pe/lim/lim_utils.c | 10 ++-------- core/mac/src/pe/lim/lim_utils.h | 11 +++++++++-- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/core/mac/src/pe/lim/lim_utils.c b/core/mac/src/pe/lim/lim_utils.c index 8ba430cb7ca6..60eed719aec3 100644 --- a/core/mac/src/pe/lim/lim_utils.c +++ b/core/mac/src/pe/lim/lim_utils.c @@ -4878,14 +4878,8 @@ void lim_handle_heart_beat_timeout_for_session(struct mac_context *mac_ctx, } } -/** - * lim_process_add_sta_rsp() - process WDA_ADD_STA_RSP from WMA - * @mac_ctx: Pointer to Global MAC structure - * @msg: msg from WMA - * - * @Return: void - */ -void lim_process_add_sta_rsp(struct mac_context *mac_ctx, struct scheduler_msg *msg) +void lim_process_add_sta_rsp(struct mac_context *mac_ctx, + struct scheduler_msg *msg) { struct pe_session *session; tpAddStaParams add_sta_params; diff --git a/core/mac/src/pe/lim/lim_utils.h b/core/mac/src/pe/lim/lim_utils.h index f30bb778d5f4..44c6cc75f090 100644 --- a/core/mac/src/pe/lim/lim_utils.h +++ b/core/mac/src/pe/lim/lim_utils.h @@ -504,8 +504,15 @@ void lim_set_tspec_uapsd_mask_per_session(struct mac_context *mac, void lim_handle_heart_beat_timeout_for_session(struct mac_context *mac, struct pe_session *pe_session); -void lim_process_add_sta_rsp(struct mac_context *mac, - struct scheduler_msg *pMsgQ); +/** + * lim_process_add_sta_rsp() - process WDA_ADD_STA_RSP from WMA + * @mac_ctx: Pointer to Global MAC structure + * @msg: msg from WMA + * + * Return: void + */ +void lim_process_add_sta_rsp(struct mac_context *mac_ctx, + struct scheduler_msg *msg); void lim_update_beacon(struct mac_context *mac);