Przeglądaj źródła

qcacmn: Fix compilation error for non 6G platforms

Add the 6G config flag so that super channel list functions are not
compiled on devices that do not support 6G.

Change-Id: I95a13c6cc8dd6ee36aed5fdb1df4555a08adc058
CRs-fixed: 3118310
Lincoln Tran 3 lat temu
rodzic
commit
a9e6f3a9e3
1 zmienionych plików z 8 dodań i 0 usunięć
  1. 8 0
      umac/regulatory/core/src/reg_build_chan_list.c

+ 8 - 0
umac/regulatory/core/src/reg_build_chan_list.c

@@ -1795,6 +1795,8 @@ reg_modify_chan_list_for_avoid_chan_ext(struct wlan_regulatory_pdev_priv_obj
 {
 }
 #endif
+
+#ifdef CONFIG_BAND_6GHZ
 /**
  * reg_is_supp_pwr_mode_invalid() - Check if the input power mode is invalid
  * @supp_pwr_mode: 6G supported power mode
@@ -2275,6 +2277,12 @@ reg_compute_super_chan_list(struct wlan_regulatory_pdev_priv_obj *pdev_priv_obj)
 	for (i = 0; i < NUM_6GHZ_CHANNELS; i++)
 		reg_update_super_chan_entry(pdev_priv_obj, i);
 }
+#else /* CONFIG_BAND_6GHZ */
+static inline void
+reg_compute_super_chan_list(struct wlan_regulatory_pdev_priv_obj *pdev_priv_obj)
+{
+}
+#endif /* CONFIG_BAND_6GHZ */
 
 void reg_compute_pdev_current_chan_list(struct wlan_regulatory_pdev_priv_obj
 					*pdev_priv_obj)