فهرست منبع

qcacmn: Add API wlan_reg_get_next_lower_bandwidth

Add API wlan_reg_get_next_lower_bandwidth

Change-Id: Iff8f112cc848373ea7b0275b4a8613cd43047166
CRs-Fixed: 3639903
Jianmin Zhu 1 سال پیش
والد
کامیت
34c894f480

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

@@ -529,6 +529,14 @@ qdf_freq_t wlan_reg_ch_to_freq(uint32_t ch_enum);
 QDF_STATUS wlan_reg_read_default_country(struct wlan_objmgr_psoc *psoc,
 				   uint8_t *country);
 
+/**
+ * wlan_get_next_lower_bandwidth() - Get next lower bandwidth
+ * @ch_width: Channel width
+ *
+ * Return: Channel width
+ */
+enum phy_ch_width wlan_get_next_lower_bandwidth(enum phy_ch_width ch_width);
+
 /**
  * wlan_reg_get_max_5g_bw_from_country_code() - Get the max 5G
  * bandwidth from country code

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

@@ -51,6 +51,11 @@ QDF_STATUS wlan_reg_read_default_country(struct wlan_objmgr_psoc *psoc,
 	return reg_read_default_country(psoc, country);
 }
 
+enum phy_ch_width wlan_get_next_lower_bandwidth(enum phy_ch_width ch_width)
+{
+	return get_next_lower_bandwidth(ch_width);
+}
+
 QDF_STATUS wlan_reg_read_current_country(struct wlan_objmgr_psoc *psoc,
 					 uint8_t *country)
 {