فهرست منبع

qcacld-3.0: Remove OS_* usage

There are a few consumers of the legacy OS_* APIs. Directly use
appropriate QDF APIs instead.

Change-Id: Ibe46172200119c6d293acb301baf796276c5949c
CRs-Fixed: 2403793
Dustin Brown 6 سال پیش
والد
کامیت
963101199d
3فایلهای تغییر یافته به همراه5 افزوده شده و 4 حذف شده
  1. 2 1
      core/bmi/src/ol_fw.c
  2. 2 2
      core/cds/src/cds_utils.c
  3. 1 1
      core/wma/src/wma_main.c

+ 2 - 1
core/bmi/src/ol_fw.c

@@ -18,6 +18,7 @@
 
 #include <linux/firmware.h>
 #include "ol_if_athvar.h"
+#include "qdf_time.h"
 #include "targaddrs.h"
 #include "ol_cfg.h"
 #include "cds_api.h"
@@ -1193,7 +1194,7 @@ static QDF_STATUS ol_patch_pll_switch(struct ol_context *ol_ctx)
 		BMI_ERR("Failed to read back PLL_CTRL Addr");
 		goto end;
 	}
-	OS_DELAY(100);
+	qdf_udelay(100);
 	BMI_DBG("Step 5b: %8X", reg_val);
 
 	/* ------Step 6------- */

+ 2 - 2
core/cds/src/cds_utils.c

@@ -381,7 +381,7 @@ cds_is_mmie_valid(uint8_t *igtk, uint8_t *ipn, uint8_t *frm, uint8_t *efrm)
 
 	/* Validate IPN */
 	rx_ipn = mmie->sequence_number;
-	if (OS_MEMCMP(rx_ipn, ipn, CMAC_IPN_LEN) <= 0) {
+	if (qdf_mem_cmp(rx_ipn, ipn, CMAC_IPN_LEN) <= 0) {
 		/* Replay error */
 		cds_err("Replay error mmie ipn %02X %02X %02X %02X %02X %02X"
 			  " drvr ipn %02X %02X %02X %02X %02X %02X",
@@ -438,7 +438,7 @@ cds_is_mmie_valid(uint8_t *igtk, uint8_t *ipn, uint8_t *frm, uint8_t *efrm)
 		mic[0], mic[1], mic[2], mic[3],
 		mic[4], mic[5], mic[6], mic[7]);
 
-	if (OS_MEMCMP(mic, mmie->mic, CMAC_TLEN) != 0) {
+	if (qdf_mem_cmp(mic, mmie->mic, CMAC_TLEN) != 0) {
 		/* MMIE MIC mismatch */
 		cds_err("BC/MC MGMT frame MMIE MIC check Failed"
 			  " rmic %02X %02X %02X %02X %02X %02X %02X %02X"

+ 1 - 1
core/wma/src/wma_main.c

@@ -3713,7 +3713,7 @@ err_event_init:
 err_scn_context:
 	qdf_mem_free(((struct cds_context *) cds_context)->cfg_ctx);
 	((struct cds_context *)cds_context)->cfg_ctx = NULL;
-	OS_FREE(wmi_handle);
+	qdf_mem_free(wmi_handle);
 
 err_wma_handle:
 	wlan_objmgr_psoc_release_ref(psoc, WLAN_LEGACY_WMA_ID);