|
@@ -1127,43 +1127,6 @@ ucfg_mlme_stats_is_link_speed_report_max_scaled(struct wlan_objmgr_psoc *psoc)
|
|
|
return (report_link_speed == CFG_STATS_LINK_SPEED_REPORT_MAX_SCALED);
|
|
|
}
|
|
|
|
|
|
-QDF_STATUS
|
|
|
-ucfg_mlme_get_ps_data_inactivity_timeout(struct wlan_objmgr_psoc *psoc,
|
|
|
- uint32_t *inactivity_timeout)
|
|
|
-{
|
|
|
- struct wlan_mlme_psoc_ext_obj *mlme_obj;
|
|
|
-
|
|
|
- mlme_obj = mlme_get_psoc_ext_obj(psoc);
|
|
|
- if (!mlme_obj) {
|
|
|
- *inactivity_timeout =
|
|
|
- cfg_default(CFG_PS_DATA_INACTIVITY_TIMEOUT);
|
|
|
- return QDF_STATUS_E_FAILURE;
|
|
|
- }
|
|
|
- *inactivity_timeout = mlme_obj->cfg.timeouts.ps_data_inactivity_timeout;
|
|
|
-
|
|
|
- return QDF_STATUS_SUCCESS;
|
|
|
-}
|
|
|
-
|
|
|
-QDF_STATUS
|
|
|
-ucfg_mlme_set_ps_data_inactivity_timeout(struct wlan_objmgr_psoc *psoc,
|
|
|
- uint32_t inactivity_timeout)
|
|
|
-{
|
|
|
- struct wlan_mlme_psoc_ext_obj *mlme_obj;
|
|
|
-
|
|
|
- mlme_obj = mlme_get_psoc_ext_obj(psoc);
|
|
|
- if (!mlme_obj)
|
|
|
- return QDF_STATUS_E_INVAL;
|
|
|
-
|
|
|
- if (!cfg_in_range(CFG_PS_DATA_INACTIVITY_TIMEOUT, inactivity_timeout)) {
|
|
|
- mlme_legacy_err("inactivity timeout set value is invalid %d",
|
|
|
- inactivity_timeout);
|
|
|
- return QDF_STATUS_E_INVAL;
|
|
|
- }
|
|
|
- mlme_obj->cfg.timeouts.ps_data_inactivity_timeout = inactivity_timeout;
|
|
|
-
|
|
|
- return QDF_STATUS_SUCCESS;
|
|
|
-}
|
|
|
-
|
|
|
QDF_STATUS
|
|
|
ucfg_mlme_get_sta_keepalive_method(struct wlan_objmgr_psoc *psoc,
|
|
|
enum station_keepalive_method *val)
|