qcacld-3.0: Add INI parameter to configure NAN in 6GHz
Currently, there is no INI parameter to control NAN feature in 6GHz frequency band. Because of this, there is no provision to disable the NAN in 6GHz when there is no requirement. To address this, add INI parameter to configure NAN feature in 6GHz. Change-Id: I6b4faa8e8aa1a3df72539fed1d7ff3cc8287debd CRs-Fixed: 2817920
This commit is contained in:
@@ -60,6 +60,7 @@ static void nan_cfg_init(struct wlan_objmgr_psoc *psoc,
|
||||
nan_obj->cfg_param.max_ndi = cfg_get(psoc, CFG_NDI_MAX_SUPPORT);
|
||||
nan_obj->cfg_param.nan_feature_config =
|
||||
cfg_get(psoc, CFG_NAN_FEATURE_CONFIG);
|
||||
nan_obj->cfg_param.disable_6g_nan = cfg_get(psoc, CFG_DISABLE_6G_NAN);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -94,6 +95,18 @@ static void nan_cfg_dp_init(struct wlan_objmgr_psoc *psoc,
|
||||
}
|
||||
#endif
|
||||
|
||||
bool ucfg_get_disable_6g_nan(struct wlan_objmgr_psoc *psoc)
|
||||
{
|
||||
struct nan_psoc_priv_obj *nan_obj = nan_get_psoc_priv_obj(psoc);
|
||||
|
||||
if (!nan_obj) {
|
||||
nan_err("nan psoc priv object is NULL");
|
||||
return cfg_default(CFG_DISABLE_6G_NAN);
|
||||
}
|
||||
|
||||
return nan_obj->cfg_param.disable_6g_nan;
|
||||
}
|
||||
|
||||
QDF_STATUS ucfg_nan_psoc_open(struct wlan_objmgr_psoc *psoc)
|
||||
{
|
||||
struct nan_psoc_priv_obj *nan_obj = nan_get_psoc_priv_obj(psoc);
|
||||
|
Reference in New Issue
Block a user