qcacld-3.0: In PMO, replace cfg_get_int with component cfg API's

Legacy WNI CFG items are refactored into new CFG implementation.
PMO uses a wma callback which uses cfg_get API to get listen
interval. Listen interval is now part of the MLME component's
private object. Define API's to get this value and use it instead
of the callbacks.

Remove WMA callback implementation and use new API that gets
listen interval from MLME component.

Change-Id: I797001ea14cc654f9daee3ce297e1ad0c0a08f2a
CRs-Fixed: 2386725
This commit is contained in:
Nachiket Kukade
2019-01-23 19:09:36 +05:30
committad av Gerrit - the friendly Code Review server
förälder a1d20c3b90
incheckning 6159553884
8 ändrade filer med 63 tillägg och 123 borttagningar

Visa fil

@@ -483,6 +483,16 @@ QDF_STATUS wlan_mlme_get_bt_chain_separation_flag(struct wlan_objmgr_psoc *psoc,
QDF_STATUS wlan_mlme_configure_chain_mask(struct wlan_objmgr_psoc *psoc,
uint8_t session_id);
/**
* wlan_mlme_get_listen_interval() - Get listen interval
* @psoc: pointer to psoc object
* @value: Pointer to value that needs to be filled by MLME
*
* Return: QDF Status
*/
QDF_STATUS wlan_mlme_get_listen_interval(struct wlan_objmgr_psoc *psoc,
int *value);
/**
* wlan_mlme_set_sap_listen_interval() - Set the sap listen interval
* @psoc: pointer to psoc object

Visa fil

@@ -1349,6 +1349,23 @@ QDF_STATUS ucfg_mlme_set_rmc_action_period_freq(struct wlan_objmgr_psoc *psoc,
return wlan_mlme_set_rmc_action_period_freq(psoc, value);
}
/**
* ucfg_mlme_get_listen_interval() - Get listen interval
* @psoc: pointer to psoc object
* @value: Pointer to variable that needs to be filled by MLME
*
* Inline UCFG API to be used by HDD/OSIF callers
*
* Return: QDF Status
*/
static inline
QDF_STATUS ucfg_mlme_get_listen_interval(struct wlan_objmgr_psoc *psoc,
int *value)
{
return wlan_mlme_get_listen_interval(psoc, value);
}
/**
* ucfg_mlme_get_sap_get_peer_info() - get the sap get peer info
* @psoc: pointer to psoc object

Visa fil

@@ -1511,6 +1511,20 @@ wlan_mlme_get_ts_acm_value_for_ac(struct wlan_objmgr_psoc *psoc, bool *value)
return QDF_STATUS_SUCCESS;
}
QDF_STATUS wlan_mlme_get_listen_interval(struct wlan_objmgr_psoc *psoc,
int *value)
{
struct wlan_mlme_psoc_obj *mlme_obj;
mlme_obj = mlme_get_psoc_obj(psoc);
if (!mlme_obj)
return QDF_STATUS_E_FAILURE;
*value = mlme_obj->cfg.sap_cfg.listen_interval;
return QDF_STATUS_SUCCESS;
}
QDF_STATUS wlan_mlme_set_sap_listen_interval(struct wlan_objmgr_psoc *psoc,
int value)
{