|
@@ -33,6 +33,9 @@
|
|
|
#include "reg_build_chan_list.h"
|
|
|
#include "reg_host_11d.h"
|
|
|
#include "reg_callbacks.h"
|
|
|
+#ifdef CONFIG_AFC_SUPPORT
|
|
|
+#include <cfg_ucfg_api.h>
|
|
|
+#endif
|
|
|
|
|
|
struct wlan_regulatory_psoc_priv_obj *reg_get_psoc_obj(
|
|
|
struct wlan_objmgr_psoc *psoc)
|
|
@@ -259,6 +262,14 @@ reg_destroy_afc_cb_spinlock(struct wlan_regulatory_pdev_priv_obj *pdev_priv_obj)
|
|
|
{
|
|
|
qdf_spinlock_destroy(&pdev_priv_obj->afc_cb_lock);
|
|
|
}
|
|
|
+
|
|
|
+static void
|
|
|
+reg_init_afc_vars(struct wlan_objmgr_psoc *psoc,
|
|
|
+ struct wlan_regulatory_pdev_priv_obj *pdev_priv_obj)
|
|
|
+{
|
|
|
+ pdev_priv_obj->is_reg_noaction_on_afc_pwr_evt =
|
|
|
+ cfg_get(psoc, CFG_OL_AFC_REG_NO_ACTION);
|
|
|
+}
|
|
|
#else
|
|
|
static inline void
|
|
|
reg_create_afc_cb_spinlock(struct wlan_regulatory_pdev_priv_obj *pdev_priv_obj)
|
|
@@ -269,6 +280,12 @@ static inline void
|
|
|
reg_destroy_afc_cb_spinlock(struct wlan_regulatory_pdev_priv_obj *pdev_priv_obj)
|
|
|
{
|
|
|
}
|
|
|
+
|
|
|
+static void
|
|
|
+reg_init_afc_vars(struct wlan_objmgr_psoc *psoc,
|
|
|
+ struct wlan_regulatory_pdev_priv_obj *pdev_priv_obj)
|
|
|
+{
|
|
|
+}
|
|
|
#endif
|
|
|
|
|
|
QDF_STATUS wlan_regulatory_pdev_obj_created_notification(
|
|
@@ -372,6 +389,8 @@ QDF_STATUS wlan_regulatory_pdev_obj_created_notification(
|
|
|
|
|
|
reg_compute_pdev_current_chan_list(pdev_priv_obj);
|
|
|
|
|
|
+ reg_init_afc_vars(parent_psoc, pdev_priv_obj);
|
|
|
+
|
|
|
if (!psoc_priv_obj->is_11d_offloaded)
|
|
|
reg_11d_host_scan_init(parent_psoc);
|
|
|
|