qcacld-3.0: Move ifdef CONFIG_VDEV_SM outside functions in wma

Moves ifdef CONFIG_VDEV_SM outside functions in wma.

Change-Id: Idfd2e3f9f9984036bd7b74dfc1497287c7c53404
CRs-Fixed: 2362202
This commit is contained in:
Abhishek Singh
2018-12-06 11:53:08 +05:30
gecommit door nshrivas
bovenliggende 3cfca968de
commit fb5b4d32a3
8 gewijzigde bestanden met toevoegingen van 629 en 335 verwijderingen

Bestand weergeven

@@ -2036,7 +2036,13 @@ static inline void wma_mgmt_nbuf_unmap_cb(struct wlan_objmgr_pdev *pdev,
int wma_chan_info_event_handler(void *handle, uint8_t *event_buf,
uint32_t len);
#ifndef CONFIG_VDEV_SM
#ifdef CONFIG_VDEV_SM
static inline
void wma_vdev_set_mlme_state_stop(tp_wma_handle wma, uint8_t vdev_id) {}
static inline
void wma_vdev_set_mlme_state_run(tp_wma_handle wma, uint8_t vdev_id) {}
#else
/**
* wma_vdev_set_mlme_state() - Set vdev mlme state
* @wma: wma handle
@@ -2065,7 +2071,34 @@ void wma_vdev_set_mlme_state(tp_wma_handle wma, uint8_t vdev_id,
wlan_objmgr_vdev_release_ref(vdev, WLAN_LEGACY_WMA_ID);
}
}
/**
* wma_vdev_set_mlme_state_stop() - Set vdev mlme state to stop
* @wma: wma handle
* @vdev_id: the Id of the vdev to configure
*
* Return: None
*/
static inline
void wma_vdev_set_mlme_state_stop(tp_wma_handle wma, uint8_t vdev_id)
{
wma_vdev_set_mlme_state(wma, vdev_id, WLAN_VDEV_S_STOP);
}
/**
* wma_vdev_set_mlme_state_run() - Set vdev mlme state to run
* @wma: wma handle
* @vdev_id: the Id of the vdev to configure
*
* Return: None
*/
static inline
void wma_vdev_set_mlme_state_run(tp_wma_handle wma, uint8_t vdev_id)
{
wma_vdev_set_mlme_state(wma, vdev_id, WLAN_VDEV_S_RUN);
}
#endif
/**
* wma_update_vdev_pause_bitmap() - update vdev pause bitmap
* @vdev_id: the Id of the vdev to configure