Преглед на файлове

qcacld-3.0: Refine API wlan_sap_get_phymode()

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

Change-Id: I572a61fe1068d47e1f443788c9dbf1ea21664e4c
CRs-Fixed: 2116267
Jeff Johnson преди 7 години
родител
ревизия
ebb7f0ab68
променени са 2 файла, в които са добавени 4 реда и са изтрити 5 реда
  1. 3 2
      core/sap/inc/sap_api.h
  2. 1 3
      core/sap/src/sap_module.c

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

@@ -1048,13 +1048,14 @@ QDF_STATUS wlansap_set_dfs_target_chnl(tHalHandle hHal,
 
 /**
  * wlan_sap_get_phymode() - Returns sap phymode.
- * @ctx:	Pointer to cds Context or Sap Context.
+ * @sap_ctx:	Pointer to Sap Context.
  *
  * This function provides the SAP current phymode.
  *
  * Return: phymode
  */
-eCsrPhyMode wlan_sap_get_phymode(void *ctx);
+eCsrPhyMode wlan_sap_get_phymode(struct sap_context *sap_ctx);
+
 uint32_t wlan_sap_get_vht_ch_width(void *ctx);
 void wlan_sap_set_vht_ch_width(void *ctx, uint32_t vht_channel_width);
 QDF_STATUS wlansap_update_sap_config_add_ie(tsap_Config_t *pConfig,

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

@@ -588,10 +588,8 @@ wlansap_set_scan_acs_channel_params(tsap_Config_t *pconfig,
 	return status;
 }
 
-eCsrPhyMode wlan_sap_get_phymode(void *ctx)
+eCsrPhyMode wlan_sap_get_phymode(struct sap_context *sap_ctx)
 {
-	struct sap_context *sap_ctx = CDS_GET_SAP_CB(ctx);
-
 	if (!sap_ctx) {
 		QDF_TRACE(QDF_MODULE_ID_SAP, QDF_TRACE_LEVEL_ERROR,
 			FL("Invalid SAP pointer from ctx"));