Эх сурвалжийг харах

qcacmn: Add API wlan_reg_get_next_lower_bandwidth

Export regulatory API wlan_reg_get_next_lower_bandwidth to
get next lower bandwidth of given channel bandwidth.

Change-Id: Id86d83c1bf738061d325b23d3f46b77d45eaeca5
CRs-Fixed: 3021976
Liangwei Dong 3 жил өмнө
parent
commit
71ba53089e

+ 9 - 0
umac/regulatory/dispatcher/inc/wlan_reg_services_api.h

@@ -121,6 +121,15 @@ bool wlan_reg_is_range_overlap_5g(qdf_freq_t low_freq, qdf_freq_t high_freq);
  */
 bool wlan_reg_is_freq_indoor(struct wlan_objmgr_pdev *pdev, qdf_freq_t freq);
 
+/**
+ * wlan_reg_get_next_lower_bandwidth() - Get next lower bandwdith
+ * @ch_width: channel bandwdith
+ *
+ * Return: Return next lower bandwidth of input channel bandwidth
+ */
+enum phy_ch_width
+wlan_reg_get_next_lower_bandwidth(enum phy_ch_width ch_width);
+
 #ifdef CONFIG_REG_CLIENT
 /**
  * wlan_reg_is_freq_indoor_in_secondary_list() - Check if the input frequency is

+ 6 - 0
umac/regulatory/dispatcher/src/wlan_reg_services_api.c

@@ -697,6 +697,12 @@ bool wlan_reg_is_freq_indoor(struct wlan_objmgr_pdev *pdev, qdf_freq_t freq)
 	return reg_is_freq_indoor(pdev, freq);
 }
 
+enum phy_ch_width
+wlan_reg_get_next_lower_bandwidth(enum phy_ch_width ch_width)
+{
+	return get_next_lower_bandwidth(ch_width);
+}
+
 #ifdef CONFIG_REG_CLIENT
 bool wlan_reg_is_freq_indoor_in_secondary_list(struct wlan_objmgr_pdev *pdev,
 					       qdf_freq_t freq)