|
@@ -7437,6 +7437,23 @@ reg_unregister_afc_power_event_callback(struct wlan_objmgr_pdev *pdev,
|
|
|
|
|
|
return QDF_STATUS_SUCCESS;
|
|
|
}
|
|
|
+
|
|
|
+QDF_STATUS
|
|
|
+reg_get_afc_dev_deploy_type(struct wlan_objmgr_pdev *pdev,
|
|
|
+ enum reg_afc_dev_deploy_type *reg_afc_dev_type)
|
|
|
+{
|
|
|
+ struct wlan_regulatory_pdev_priv_obj *pdev_priv_obj;
|
|
|
+
|
|
|
+ pdev_priv_obj = reg_get_pdev_obj(pdev);
|
|
|
+ if (!IS_VALID_PDEV_REG_OBJ(pdev_priv_obj)) {
|
|
|
+ reg_err("pdev reg component is NULL");
|
|
|
+ return QDF_STATUS_E_FAILURE;
|
|
|
+ }
|
|
|
+
|
|
|
+ *reg_afc_dev_type = pdev_priv_obj->reg_afc_dev_deployment_type;
|
|
|
+
|
|
|
+ return QDF_STATUS_SUCCESS;
|
|
|
+}
|
|
|
#endif /* CONFIG_AFC_SUPPORT */
|
|
|
|
|
|
QDF_STATUS
|