qcacld-3.0: Remove legacy INI items of QOS aggregation configs

Remove the legacy INI code from hdd_cfg. Replace the existing
access from hdd_config with new mlme api.

Change-Id: Iddde15330c1ad39a59bd9a3c7ea86af971df61b5
CRs-Fixed: 2313296
This commit is contained in:
Pragaspathi Thilagaraj
2018-08-31 00:53:02 +05:30
committed by nshrivas
parent 5affd647ac
commit 280aae6e95
4 changed files with 46 additions and 1 deletions

View File

@@ -26,6 +26,8 @@
#include <wlan_objmgr_psoc_obj.h> #include <wlan_objmgr_psoc_obj.h>
#include <wlan_cmn.h> #include <wlan_cmn.h>
#include "sme_api.h"
/** /**
* wlan_mlme_get_ht_cap_info() - Get the HT cap info config * wlan_mlme_get_ht_cap_info() - Get the HT cap info config
* @psoc: pointer to psoc object * @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 struct mlme_ht_capabilities_info
ht_cap_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 * wlan_mlme_get_ignore_peer_ht_mode() - Get the ignore peer ht opmode flag
* @psoc: pointer to psoc object * @psoc: pointer to psoc object

View File

@@ -171,7 +171,6 @@ struct wlan_mlme_rates {
* struct wlan_mlme_sap_protection_cfg - SAP erp protection config items * struct wlan_mlme_sap_protection_cfg - SAP erp protection config items
* *
* @protection_enabled - Force enable protection. static via cfg * @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 * @protection_force_policy - Protection force policy. Static via cfg
* @ignore_peer_ht_mode - ignore the ht opmode of the peer. Dynamic via INI. * @ignore_peer_ht_mode - ignore the ht opmode of the peer. Dynamic via INI.
* *

View File

@@ -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); 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 * ucfg_mlme_get_ignore_peer_ht_mode() - Get the ignore peer ht mode flag
* *

View File

@@ -59,6 +59,19 @@ QDF_STATUS wlan_mlme_set_ht_cap_info(struct wlan_objmgr_psoc *psoc,
return QDF_STATUS_SUCCESS; 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, QDF_STATUS wlan_mlme_get_ignore_peer_ht_mode(struct wlan_objmgr_psoc *psoc,
bool *value) bool *value)
{ {