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
This commit is contained in:
Jeff Johnson 2017-09-24 20:00:13 -07:00 • committed by snandini
commit ebb7f0ab68
2 changed files with 4 additions and 5 deletions

View file

@ -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,

View file

@ -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"));