Browse Source

qcacld-3.0: Fix bad typecast in pe_mc_process_handler()

In pe_mc_process_handler() the mac_ctx is currently typecast to a
tHalHandle when calling pe_process_messages(). However
pe_process_messages() actually expects a tpAniSirGlobal, and the
typecast results in a build failure when strict type checking is
enabled. To fix the build failure remove the typecast.

Change-Id: Ie8a38845f0e2bf76205326a1b5fe7691a8f8de12
CRs-Fixed: 2254952
Jeff Johnson 6 years ago
parent
commit
b967d51f5f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      core/mac/src/pe/lim/lim_api.c

+ 1 - 1
core/mac/src/pe/lim/lim_api.c

@@ -1202,7 +1202,7 @@ QDF_STATUS pe_mc_process_handler(struct scheduler_msg *msg)
 	if (mac_ctx == NULL)
 		return QDF_STATUS_E_FAILURE;
 
-	status = pe_process_messages((tHalHandle)mac_ctx, msg);
+	status = pe_process_messages(mac_ctx, msg);
 	if (status == eSIR_SUCCESS)
 		return QDF_STATUS_SUCCESS;