qcacld-3.0: Update multiple generic INI items using MLME CFG [Part 1]
Replace usage of the below INI Items using MLME CFG instead of HDD config. gPreventLinkDown gSelect5GHzMargin gEnableMemDeepSleep gEnableCckTxFirOverride gEnableForceTargetAssert gEnableLpassSupport Change-Id: Ib89272c7898db8d0c70a60640e00ca9364a9db74 CRs-Fixed: 2327025
This commit is contained in:

committed by
nshrivas

parent
18ce2d5e02
commit
b1ba1f5304
@@ -197,6 +197,46 @@ QDF_STATUS wlan_mlme_get_band_capability(struct wlan_objmgr_psoc *psoc,
|
|||||||
QDF_STATUS wlan_mlme_set_band_capability(struct wlan_objmgr_psoc *psoc,
|
QDF_STATUS wlan_mlme_set_band_capability(struct wlan_objmgr_psoc *psoc,
|
||||||
uint8_t band_capability);
|
uint8_t band_capability);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* wlan_mlme_get_prevent_link_down_cfg() - Get the prevent link down config
|
||||||
|
* @psoc: pointer to psoc object
|
||||||
|
* @prevent_link_down: Pointer to the variable from caller
|
||||||
|
*
|
||||||
|
* Return: QDF Status
|
||||||
|
*/
|
||||||
|
QDF_STATUS wlan_mlme_get_prevent_link_down_cfg(struct wlan_objmgr_psoc *psoc,
|
||||||
|
bool *prevent_link_down);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* wlan_mlme_get_select_5ghz_margin_cfg() - Get the select 5Ghz margin config
|
||||||
|
* @psoc: pointer to psoc object
|
||||||
|
* @select_5ghz_margin: Pointer to the variable from caller
|
||||||
|
*
|
||||||
|
* Return: QDF Status
|
||||||
|
*/
|
||||||
|
QDF_STATUS wlan_mlme_get_select_5ghz_margin_cfg(struct wlan_objmgr_psoc *psoc,
|
||||||
|
uint8_t *select_5ghz_margin);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* wlan_mlme_get_crash_inject_cfg() - Get the crash inject config
|
||||||
|
* @psoc: pointer to psoc object
|
||||||
|
* @crash_inject: Pointer to the variable from caller
|
||||||
|
*
|
||||||
|
* Return: QDF Status
|
||||||
|
*/
|
||||||
|
QDF_STATUS wlan_mlme_get_crash_inject_cfg(struct wlan_objmgr_psoc *psoc,
|
||||||
|
bool *crash_inject);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* wlan_mlme_get_lpass_support() - Get the LPASS Support config
|
||||||
|
* @psoc: pointer to psoc object
|
||||||
|
* @lpass_support: Pointer to the variable from caller
|
||||||
|
*
|
||||||
|
* Return: QDF Status
|
||||||
|
*/
|
||||||
|
QDF_STATUS wlan_mlme_get_lpass_support(struct wlan_objmgr_psoc *psoc,
|
||||||
|
bool *lpass_support);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* wlan_mlme_get_acs_with_more_param() - Get the acs_with_more_param flag
|
* wlan_mlme_get_acs_with_more_param() - Get the acs_with_more_param flag
|
||||||
* @psoc: pointer to psoc object
|
* @psoc: pointer to psoc object
|
||||||
|
@@ -177,6 +177,62 @@ QDF_STATUS ucfg_mlme_set_band_capability(struct wlan_objmgr_psoc *psoc,
|
|||||||
return wlan_mlme_set_band_capability(psoc, band_capability);
|
return wlan_mlme_set_band_capability(psoc, band_capability);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* ucfg_mlme_get_prevent_link_down_cfg() - Get the prevent link down config
|
||||||
|
* @psoc: pointer to psoc object
|
||||||
|
* @prevent_link_down: Pointer to the variable from caller
|
||||||
|
*
|
||||||
|
* Return: QDF Status
|
||||||
|
*/
|
||||||
|
static inline
|
||||||
|
QDF_STATUS ucfg_mlme_get_prevent_link_down_cfg(struct wlan_objmgr_psoc *psoc,
|
||||||
|
bool *prevent_link_down)
|
||||||
|
{
|
||||||
|
return wlan_mlme_get_prevent_link_down_cfg(psoc, prevent_link_down);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* ucfg_mlme_get_select_5ghz_margin_cfg() - Get the select 5Ghz margin config
|
||||||
|
* @psoc: pointer to psoc object
|
||||||
|
* @select_5ghz_margin: Pointer to the variable from caller
|
||||||
|
*
|
||||||
|
* Return: QDF Status
|
||||||
|
*/
|
||||||
|
static inline
|
||||||
|
QDF_STATUS ucfg_mlme_get_select_5ghz_margin_cfg(struct wlan_objmgr_psoc *psoc,
|
||||||
|
uint8_t *select_5ghz_margin)
|
||||||
|
{
|
||||||
|
return wlan_mlme_get_select_5ghz_margin_cfg(psoc, select_5ghz_margin);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* ucfg_mlme_get_crash_inject_cfg() - Get the crash inject config
|
||||||
|
* @psoc: pointer to psoc object
|
||||||
|
* @crash_inject: Pointer to the variable from caller
|
||||||
|
*
|
||||||
|
* Return: QDF Status
|
||||||
|
*/
|
||||||
|
static inline
|
||||||
|
QDF_STATUS ucfg_mlme_get_crash_inject_cfg(struct wlan_objmgr_psoc *psoc,
|
||||||
|
bool *crash_inject)
|
||||||
|
{
|
||||||
|
return wlan_mlme_get_crash_inject_cfg(psoc, crash_inject);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* ucfg_mlme_get_lpass_support() - Get the LPASS Support config
|
||||||
|
* @psoc: pointer to psoc object
|
||||||
|
* @lpass_support: Pointer to the variable from caller
|
||||||
|
*
|
||||||
|
* Return: QDF Status
|
||||||
|
*/
|
||||||
|
static inline
|
||||||
|
QDF_STATUS ucfg_mlme_get_lpass_support(struct wlan_objmgr_psoc *psoc,
|
||||||
|
bool *lpass_support)
|
||||||
|
{
|
||||||
|
return wlan_mlme_get_lpass_support(psoc, lpass_support);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ucfg_mlme_get_acs_with_more_param() - Get the flag for acs with
|
* ucfg_mlme_get_acs_with_more_param() - Get the flag for acs with
|
||||||
* more param
|
* more param
|
||||||
|
@@ -123,6 +123,70 @@ QDF_STATUS wlan_mlme_set_band_capability(struct wlan_objmgr_psoc *psoc,
|
|||||||
return QDF_STATUS_SUCCESS;
|
return QDF_STATUS_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QDF_STATUS wlan_mlme_get_prevent_link_down_cfg(struct wlan_objmgr_psoc *psoc,
|
||||||
|
bool *prevent_link_down)
|
||||||
|
{
|
||||||
|
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 QDF_STATUS_E_FAILURE;
|
||||||
|
}
|
||||||
|
|
||||||
|
*prevent_link_down = mlme_obj->cfg.gen.prevent_link_down;
|
||||||
|
|
||||||
|
return QDF_STATUS_SUCCESS;
|
||||||
|
}
|
||||||
|
|
||||||
|
QDF_STATUS wlan_mlme_get_select_5ghz_margin_cfg(struct wlan_objmgr_psoc *psoc,
|
||||||
|
uint8_t *select_5ghz_margin)
|
||||||
|
{
|
||||||
|
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 QDF_STATUS_E_FAILURE;
|
||||||
|
}
|
||||||
|
|
||||||
|
*select_5ghz_margin = mlme_obj->cfg.gen.select_5ghz_margin;
|
||||||
|
|
||||||
|
return QDF_STATUS_SUCCESS;
|
||||||
|
}
|
||||||
|
|
||||||
|
QDF_STATUS wlan_mlme_get_crash_inject_cfg(struct wlan_objmgr_psoc *psoc,
|
||||||
|
bool *crash_inject)
|
||||||
|
{
|
||||||
|
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 QDF_STATUS_E_FAILURE;
|
||||||
|
}
|
||||||
|
|
||||||
|
*crash_inject = mlme_obj->cfg.gen.crash_inject;
|
||||||
|
|
||||||
|
return QDF_STATUS_SUCCESS;
|
||||||
|
}
|
||||||
|
|
||||||
|
QDF_STATUS wlan_mlme_get_lpass_support(struct wlan_objmgr_psoc *psoc,
|
||||||
|
bool *lpass_support)
|
||||||
|
{
|
||||||
|
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 QDF_STATUS_E_FAILURE;
|
||||||
|
}
|
||||||
|
|
||||||
|
*lpass_support = mlme_obj->cfg.gen.lpass_support;
|
||||||
|
|
||||||
|
return QDF_STATUS_SUCCESS;
|
||||||
|
}
|
||||||
|
|
||||||
void wlan_mlme_get_sap_inactivity_override(struct wlan_objmgr_psoc *psoc,
|
void wlan_mlme_get_sap_inactivity_override(struct wlan_objmgr_psoc *psoc,
|
||||||
bool *val)
|
bool *val)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user