diff --git a/mlme/dispatcher/inc/wlan_mlme_api.h b/mlme/dispatcher/inc/wlan_mlme_api.h index 54af017660..85f531fd15 100644 --- a/mlme/dispatcher/inc/wlan_mlme_api.h +++ b/mlme/dispatcher/inc/wlan_mlme_api.h @@ -26,6 +26,8 @@ #include #include +#include "sme_api.h" + /** * wlan_mlme_get_ht_cap_info() - Get the HT cap info config * @psoc: pointer to psoc object @@ -48,6 +50,18 @@ QDF_STATUS wlan_mlme_set_ht_cap_info(struct wlan_objmgr_psoc *psoc, struct mlme_ht_capabilities_info ht_cap_info); +/** + * + * wlan_mlme_get_sap_inactivity_override() - Check if sap max inactivity + * override flag is set. + * @psoc: pointer to psoc object + * @sme_config - Sme config struct + * + * Return: QDF Status + */ +void wlan_mlme_get_sap_inactivity_override(struct wlan_objmgr_psoc *psoc, + bool *value); + /** * wlan_mlme_get_ignore_peer_ht_mode() - Get the ignore peer ht opmode flag * @psoc: pointer to psoc object diff --git a/mlme/dispatcher/inc/wlan_mlme_public_struct.h b/mlme/dispatcher/inc/wlan_mlme_public_struct.h index e84a78c8eb..535f67a4e1 100644 --- a/mlme/dispatcher/inc/wlan_mlme_public_struct.h +++ b/mlme/dispatcher/inc/wlan_mlme_public_struct.h @@ -171,7 +171,6 @@ struct wlan_mlme_rates { * struct wlan_mlme_sap_protection_cfg - SAP erp protection config items * * @protection_enabled - Force enable protection. static via cfg - * @protection_always_11g - Force protection enable for 11g. Static via cfg * @protection_force_policy - Protection force policy. Static via cfg * @ignore_peer_ht_mode - ignore the ht opmode of the peer. Dynamic via INI. * diff --git a/mlme/dispatcher/inc/wlan_mlme_ucfg_api.h b/mlme/dispatcher/inc/wlan_mlme_ucfg_api.h index 18c8b770bc..0e3e7a857a 100644 --- a/mlme/dispatcher/inc/wlan_mlme_ucfg_api.h +++ b/mlme/dispatcher/inc/wlan_mlme_ucfg_api.h @@ -149,6 +149,25 @@ QDF_STATUS ucfg_mlme_set_ht_cap_info(struct wlan_objmgr_psoc *psoc, return wlan_mlme_set_ht_cap_info(psoc, ht_cap_info); } +/** + * + * ucfg_mlme_get_sap_inactivity_override() - Check if sap max inactivity + * override flag is set. + * @psoc: pointer to psoc object + * @sme_config - Sme config struct + * + * Inline UCFG API to be used by HDD/OSIF callers to call + * the mlme function wlan_mlme_get_sap_inactivity_override + * + * Return: QDF Status + */ +static inline +void ucfg_mlme_get_sap_inactivity_override(struct wlan_objmgr_psoc *psoc, + bool *value) +{ + wlan_mlme_get_sap_inactivity_override(psoc, value); +} + /** * ucfg_mlme_get_ignore_peer_ht_mode() - Get the ignore peer ht mode flag * diff --git a/mlme/dispatcher/src/wlan_mlme_api.c b/mlme/dispatcher/src/wlan_mlme_api.c index 71adf76b4d..27d5798f67 100644 --- a/mlme/dispatcher/src/wlan_mlme_api.c +++ b/mlme/dispatcher/src/wlan_mlme_api.c @@ -59,6 +59,19 @@ QDF_STATUS wlan_mlme_set_ht_cap_info(struct wlan_objmgr_psoc *psoc, return QDF_STATUS_SUCCESS; } +void wlan_mlme_get_sap_inactivity_override(struct wlan_objmgr_psoc *psoc, + bool *val) +{ + struct wlan_mlme_psoc_obj *mlme_obj; + + mlme_obj = mlme_get_psoc_obj(psoc); + if (!mlme_obj) { + mlme_err("Failed to get MLME Obj"); + return; + } + *val = mlme_obj->cfg.qos_mlme_params.sap_max_inactivity_override; +} + QDF_STATUS wlan_mlme_get_ignore_peer_ht_mode(struct wlan_objmgr_psoc *psoc, bool *value) {