Quellcode durchsuchen

qcacld-3.0: Refine API wlansap_check_cc_intf()

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

Change-Id: Id994ff58d005a8a50611fa2bbd8ab0bdc9c7fde7
CRs-Fixed: 2116267
Jeff Johnson vor 7 Jahren
Ursprung
Commit
5e6b0d2886
2 geänderte Dateien mit 10 neuen und 18 gelöschten Zeilen
  1. 9 1
      core/sap/inc/sap_api.h
  2. 1 17
      core/sap/src/sap_module.c

+ 9 - 1
core/sap/inc/sap_api.h

@@ -920,7 +920,15 @@ QDF_STATUS wlan_sap_set_pre_cac_complete_status(void *ctx, bool status);
 bool wlan_sap_is_pre_cac_active(tHalHandle handle);
 QDF_STATUS wlan_sap_get_pre_cac_vdev_id(tHalHandle handle, uint8_t *vdev_id);
 #ifdef FEATURE_WLAN_MCC_TO_SCC_SWITCH
-uint16_t wlansap_check_cc_intf(void *Ctx);
+/**
+ * wlansap_check_cc_intf() - Get interfering concurrent channel
+ * @pSapCtx: SAP context pointer
+ *
+ * Determine if a Concurrent Channel is interfering.
+ *
+ * Return: Channel number of the interfering channel, or 0 if none.
+ */
+uint16_t wlansap_check_cc_intf(struct sap_context *pSapCtx);
 #endif
 QDF_STATUS wlansap_set_mac_acl(void *p_cds_gctx, tsap_Config_t *pConfig);
 QDF_STATUS wlansap_stop_bss(void *p_cds_gctx);

+ 1 - 17
core/sap/src/sap_module.c

@@ -484,26 +484,10 @@ bool wlansap_is_channel_leaking_in_nol(struct sap_context *sap_ctx,
 }
 
 #ifdef FEATURE_WLAN_MCC_TO_SCC_SWITCH
-/*==========================================================================
-   FUNCTION    wlansap_check_cc_intf
-
-   DESCRIPTION Restart SAP if Concurrent Channel interfering
-
-   DEPENDENCIES NA.
-
-   PARAMETERS
-   IN
-   Ctx: Pointer to cds Context or Sap Context based on MBSSID
-
-   RETURN VALUE NONE
-
-   SIDE EFFECTS
-   ============================================================================*/
-uint16_t wlansap_check_cc_intf(void *Ctx)
+uint16_t wlansap_check_cc_intf(struct sap_context *pSapCtx)
 {
 	tHalHandle hHal;
 	uint16_t intf_ch;
-	struct sap_context *pSapCtx = CDS_GET_SAP_CB(Ctx);
 
 	hHal = (tHalHandle) CDS_GET_HAL_CB();
 	if (NULL == hHal) {