Browse Source

qcacmn: Redefine channel frequency MACRO as public

Move MACRO definition of TWOG_CHAN_6_IN_MHZ out of
ifdef CONFIG_CHAN_FREQ_API, move to public header file,
then other components can use it.

Change-Id: Ieb4b2b167c664246d39949ad4f8d53eda6b9d7de
CRs-Fixed: 2580207
Jianmin Zhu 5 years ago
parent
commit
6aded3fc94

+ 0 - 7
umac/regulatory/core/src/reg_services_common.h

@@ -51,13 +51,6 @@
 	((freq) <= REG_MAX_24GHZ_CH_FREQ))
 
 #ifdef CONFIG_CHAN_FREQ_API
-#define FIVEG_STARTING_FREQ     5000
-#define TWOG_STARTING_FREQ      2407
-#define TWOG_CHAN_14_IN_MHZ     2484
-#define TWOG_CHAN_1_IN_MHZ      2412
-#define TWOG_CHAN_5_IN_MHZ      2432
-#define TWOG_CHAN_6_IN_MHZ      2437
-#define TWOG_CHAN_13_IN_MHZ     2472
 #define REG_MIN_5GHZ_CH_FREQ channel_map[MIN_5GHZ_CHANNEL].center_freq
 #define REG_MAX_5GHZ_CH_FREQ channel_map[MAX_5GHZ_CHANNEL].center_freq
 #endif /* CONFIG_CHAN_FREQ_API */

+ 8 - 0
umac/regulatory/dispatcher/inc/reg_services_public_struct.h

@@ -1062,4 +1062,12 @@ struct avoid_freq_ind_data {
 	struct unsafe_ch_list chan_list;
 };
 
+#define FIVEG_STARTING_FREQ     5000
+#define TWOG_STARTING_FREQ      2407
+#define TWOG_CHAN_14_IN_MHZ     2484
+#define TWOG_CHAN_1_IN_MHZ      2412
+#define TWOG_CHAN_5_IN_MHZ      2432
+#define TWOG_CHAN_6_IN_MHZ      2437
+#define TWOG_CHAN_13_IN_MHZ     2472
+
 #endif