qcacld-3.0: Refine API wlan_sap_get_vht_ch_width()

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

Change-Id: I1c717866721a6f2573df5bc7adbd0ddb6ea61cc3
CRs-Fixed: 2116267
Цей коміт міститься в:
Jeff Johnson
2017-09-24 20:17:55 -07:00
зафіксовано snandini
джерело ebb7f0ab68
коміт ee7a3938d5
2 змінених файлів з 12 додано та 13 видалено

Переглянути файл

@@ -1056,7 +1056,16 @@ QDF_STATUS wlansap_set_dfs_target_chnl(tHalHandle hHal,
*/
eCsrPhyMode wlan_sap_get_phymode(struct sap_context *sap_ctx);
uint32_t wlan_sap_get_vht_ch_width(void *ctx);
/**
* wlan_sap_get_vht_ch_width() - Returns SAP VHT channel width.
* @sap_ctx: Pointer to Sap Context
*
* This function provides the SAP current VHT channel with.
*
* Return: VHT channel width
*/
uint32_t wlan_sap_get_vht_ch_width(struct sap_context *sap_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,
const uint8_t *

Переглянути файл

@@ -598,21 +598,11 @@ eCsrPhyMode wlan_sap_get_phymode(struct sap_context *sap_ctx)
return sap_ctx->csr_roamProfile.phyMode;
}
/**
* wlan_sap_get_vht_ch_width() - Returns SAP VHT channel width.
* @ctx: Pointer to cds Context or Sap Context based on MBSSID
*
* This function provides the SAP current VHT channel with.
*
* Return: VHT channel width
*/
uint32_t wlan_sap_get_vht_ch_width(void *ctx)
uint32_t wlan_sap_get_vht_ch_width(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"));
FL("Invalid SAP pointer"));
return 0;
}