소스 검색

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
Jeff Johnson 6 년 전
부모
커밋
579fcdcb5e
2개의 변경된 파일11개의 추가작업 그리고 10개의 파일을 삭제
  1. 2 8
      core/mac/src/pe/lim/lim_utils.c
  2. 9 2
      core/mac/src/pe/lim/lim_utils.h

+ 2 - 8
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;

+ 9 - 2
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);