Ver código fonte

qcacmn: Add AFC Deployment type enum and deployment type to pdev_priv_obj

Declare the AFC deployment type enum and add deployment type member to
pdev_priv_obj.

Change-Id: Id11a0aac4fcc1b655436d9dbd876607178f27bd4
CRs-Fixed: 3186216
Amith Ajith 3 anos atrás
pai
commit
ecd51a1f66

+ 14 - 0
umac/cmn_services/regulatory/inc/wlan_reg_afc.h

@@ -1,5 +1,6 @@
 /*
  * Copyright (c) 2021, The Linux Foundation. All rights reserved.
+ * Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
  *
  * Permission to use, copy, modify, and/or distribute this software for any
  * purpose with or without fee is hereby granted, provided that the above
@@ -112,6 +113,19 @@ struct wlan_afc_host_partial_request {
 	/* Other structures to follow. See the layout in the comment above */
 } qdf_packed;
 
+/**
+ * enum reg_afc_dev_deploy_type - Deployment type of AP
+ *
+ * @AFC_DEPLOYMENT_UNKNOWN: Unknown
+ * @AFC_DEPLOYMENT_INDOOR: Located Indoor
+ * @AFC_DEPLOYMENT_OUTDOOR: Located Outdoor
+ */
+enum reg_afc_dev_deploy_type {
+	AFC_DEPLOYMENT_UNKNOWN = 0,
+	AFC_DEPLOYMENT_INDOOR  = 1,
+	AFC_DEPLOYMENT_OUTDOOR = 2,
+};
+
 /**
  * The following is the layout of the AFC response.
  *

+ 2 - 0
umac/regulatory/core/src/reg_priv_objs.h

@@ -232,6 +232,7 @@ struct wlan_regulatory_psoc_priv_obj {
  * take action when AFC Power event is received
  * @reg_6g_thresh_priority_freq: All frequencies greater or equal will be given
  * priority during channel selection by upper layer
+ * @reg_afc_dev_deployment_type: AFC device deployment type from BDF
  */
 struct wlan_regulatory_pdev_priv_obj {
 	struct regulatory_channel cur_chan_list[NUM_CHANNELS];
@@ -305,6 +306,7 @@ struct wlan_regulatory_pdev_priv_obj {
 	struct regulatory_channel mas_chan_list_6g_afc[NUM_6GHZ_CHANNELS];
 	struct reg_fw_afc_power_event *power_info;
 	bool is_reg_noaction_on_afc_pwr_evt;
+	enum reg_afc_dev_deploy_type reg_afc_dev_deployment_type;
 #endif
 };