qcacld-3.0: Feature flag for Wlan Latency Manager support

WLAN Latency Manager support is one of the capabilities that is sent
along with the service bits by firmware. Currently, driver is not
exposing this feature to the user space.

Create and add support for a feature flag to expose this feature to the
userspace.

Change-Id: Ica8213bdaeb32c7be01b6a71a7d8b7a32dc8611b
CRs-Fixed: 2363704
This commit is contained in:
Sourav Mohapatra
2018-12-06 15:19:41 +05:30
committed by nshrivas
parent e47878b426
commit 6701c03ab0
2 changed files with 26 additions and 0 deletions

View File

@@ -3208,4 +3208,15 @@ QDF_STATUS ucfg_wlan_mlme_get_rrm_enabled(struct wlan_objmgr_psoc *psoc,
{
return wlan_mlme_get_rrm_enabled(psoc, value);
}
/**
* ucfg_mlme_get_latency_enable() - Get the latency_enable
* @psoc: pointer to psoc object
* @value: Value that needs to be get from the caller
*
* Return: QDF Status
*/
QDF_STATUS
ucfg_mlme_get_latency_enable(struct wlan_objmgr_psoc *psoc, bool *value);
#endif /* _WLAN_MLME_UCFG_API_H_ */

View File

@@ -1195,3 +1195,18 @@ ucfg_mlme_get_ap_random_bssid_enable(struct wlan_objmgr_psoc *psoc,
*value = mlme_obj->cfg.sap_cfg.ap_random_bssid_enable;
return QDF_STATUS_SUCCESS;
}
QDF_STATUS
ucfg_mlme_get_latency_enable(struct wlan_objmgr_psoc *psoc, bool *value)
{
struct wlan_mlme_psoc_obj *mlme_obj;
mlme_obj = mlme_get_psoc_obj(psoc);
if (!mlme_obj) {
mlme_err("mlme obj null");
return QDF_STATUS_E_INVAL;
}
*value = mlme_obj->cfg.wlm_config.latency_enable;
return QDF_STATUS_SUCCESS;
}