qcacld-3.0: Add INI support to disable STA roaming
Use INI "sta_disable_roam" to disable roaming on STA interface if connection on other interfaces ex. p2p, ndp comes up. Each bit of the INI "sta_disable_roam" represents an interface. ex. LFR3_STA_ROAM_DISABLE_BY_P2P BIT(0) LFR3_STA_ROAM_DISABLE_BY_NAN BIT(1) As INI "sta_disable_roam" is generic for all the interfaces, cleanup for INI "p2p_disable_roam" done. Change-Id: Icd05a97c640ca07978d9960a33de036ed6fe38df CRs-Fixed: 2637555
这个提交包含在:
@@ -83,7 +83,21 @@ QDF_STATUS cfg_nan_get_ndp_keepalive_period(struct wlan_objmgr_psoc *psoc,
|
||||
*/
|
||||
bool cfg_nan_get_support_mp0_discovery(struct wlan_objmgr_psoc *psoc);
|
||||
|
||||
/**
|
||||
* cfg_nan_is_roam_config_disabled() - get value of nan config roam disable
|
||||
* discovery
|
||||
* @psoc: pointer to psoc object
|
||||
*
|
||||
* Return: true on sta roam disable by nan else false
|
||||
*/
|
||||
bool cfg_nan_is_roam_config_disabled(struct wlan_objmgr_psoc *psoc);
|
||||
#else
|
||||
static inline
|
||||
bool cfg_nan_is_roam_config_disabled(struct wlan_objmgr_psoc *psoc)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
static inline bool cfg_nan_get_enable(struct wlan_objmgr_psoc *psoc)
|
||||
{
|
||||
return false;
|
||||
|
@@ -23,6 +23,7 @@
|
||||
#include "wlan_objmgr_psoc_obj.h"
|
||||
#include "cfg_nan_api.h"
|
||||
#include "../../core/src/nan_main_i.h"
|
||||
#include "wlan_mlme_ucfg_api.h"
|
||||
|
||||
static inline struct nan_psoc_priv_obj
|
||||
*cfg_nan_get_priv_obj(struct wlan_objmgr_psoc *psoc)
|
||||
@@ -107,3 +108,13 @@ bool cfg_nan_get_support_mp0_discovery(struct wlan_objmgr_psoc *psoc)
|
||||
return nan_obj->cfg_param.support_mp0_discovery;
|
||||
}
|
||||
|
||||
bool cfg_nan_is_roam_config_disabled(struct wlan_objmgr_psoc *psoc)
|
||||
{
|
||||
uint32_t sta_roam_disable;
|
||||
|
||||
if (ucfg_mlme_get_roam_disable_config(psoc, &sta_roam_disable) ==
|
||||
QDF_STATUS_SUCCESS)
|
||||
return sta_roam_disable & LFR3_STA_ROAM_DISABLE_BY_NAN;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
在新工单中引用
屏蔽一个用户