Преглед изворни кода

qcacmn: Move reg_set_ap_pwr_type function under CONFIG_BAND_6GHZ

To avoid possible compilation issues, move reg_set_ap_pwr_type
definition under CONFIG_BAND_6GHZ macro.

CRs-Fixed: 3207006
Change-Id: I7c2da42767c37356414a34757245772cd405f3b0
Aditya Kodukula пре 3 година
родитељ
комит
42b53b5b2c
1 измењених фајлова са 7 додато и 7 уклоњено
  1. 7 7
      umac/regulatory/core/src/reg_build_chan_list.c

+ 7 - 7
umac/regulatory/core/src/reg_build_chan_list.c

@@ -813,13 +813,6 @@ static void reg_propagate_6g_mas_channel_list(
 				mas_chan_params->reg_6g_thresh_priority_freq;
 	reg_set_ap_pwr_type(pdev_priv_obj);
 }
-#else
-static inline void reg_propagate_6g_mas_channel_list(
-		struct wlan_regulatory_pdev_priv_obj *pdev_priv_obj,
-		struct mas_chan_params *mas_chan_params)
-{
-}
-#endif
 
 #ifdef CONFIG_AFC_SUPPORT
 void reg_set_ap_pwr_type(struct wlan_regulatory_pdev_priv_obj *pdev_priv_obj)
@@ -834,6 +827,13 @@ void reg_set_ap_pwr_type(struct wlan_regulatory_pdev_priv_obj *pdev_priv_obj)
 {
 	pdev_priv_obj->reg_cur_6g_ap_pwr_type = REG_INDOOR_AP;
 }
+#endif /* CONFIG_AFC_SUPPORT */
+#else
+static inline void reg_propagate_6g_mas_channel_list(
+		struct wlan_regulatory_pdev_priv_obj *pdev_priv_obj,
+		struct mas_chan_params *mas_chan_params)
+{
+}
 #endif
 
 void reg_init_pdev_mas_chan_list(