|
@@ -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);
|