Quellcode durchsuchen

qcacld-3.0: Refine API wlansap_is_channel_leaking_in_nol()

See change "qcacld-3.0: Refine API wlansap_open()" for the API
history. Update wlansap_is_channel_leaking_in_nol() to use the
true struct pointer type.

Change-Id: If9c05df8c3b15ab8c480347ef6e5c87e42e545a6
CRs-Fixed: 2116267
Jeff Johnson vor 7 Jahren
Ursprung
Commit
2f6013c21a
2 geänderte Dateien mit 6 neuen und 5 gelöschten Zeilen
  1. 3 2
      core/sap/inc/sap_api.h
  2. 3 3
      core/sap/src/sap_module.c

+ 3 - 2
core/sap/inc/sap_api.h

@@ -887,13 +887,14 @@ bool wlansap_is_channel_in_nol_list(struct sap_context *pSapCtx,
 /**
  * wlansap_is_channel_leaking_in_nol() - This API checks if channel is leaking
  * in nol list
- * @ctx: context pointer
+ * @sap_ctx: SAP context pointer
  * @channel: channel
  * @chan_bw: channel bandwidth
  *
  * Return: True/False
  */
-bool wlansap_is_channel_leaking_in_nol(void *ctx, uint8_t channel,
+bool wlansap_is_channel_leaking_in_nol(struct sap_context *sap_ctx,
+				       uint8_t channel,
 				       uint8_t chan_bw);
 
 QDF_STATUS wlansap_start_bss(void *p_cds_gctx,

+ 3 - 3
core/sap/src/sap_module.c

@@ -454,10 +454,10 @@ static QDF_STATUS wlansap_mark_leaking_channel(struct sap_context *sap_ctx,
 }
 #endif
 
-bool wlansap_is_channel_leaking_in_nol(void *ctx, uint8_t channel,
-		uint8_t chan_bw)
+bool wlansap_is_channel_leaking_in_nol(struct sap_context *sap_ctx,
+				       uint8_t channel,
+				       uint8_t chan_bw)
 {
-	struct sap_context *sap_ctx = CDS_GET_SAP_CB(ctx);
 	tpAniSirGlobal mac_ctx;
 	uint8_t leakage_adjusted_lst[1];
 	void *handle = NULL;