|
@@ -127,6 +127,28 @@ void reg_freq_width_to_chan_op_class(struct wlan_objmgr_pdev *pdev,
|
|
|
uint8_t *op_class,
|
|
|
uint8_t *chan_num);
|
|
|
|
|
|
+/**
|
|
|
+ * reg_freq_width_to_chan_op_class_auto() - convert frequency to operating
|
|
|
+ * class,channel after fixing up the global_tbl_lookup and behav_limit
|
|
|
+ * for 6G frequencies.
|
|
|
+ * @pdev: pdev pointer
|
|
|
+ * @freq: channel frequency in mhz
|
|
|
+ * @chan_width: channel width
|
|
|
+ * @global_tbl_lookup: whether to lookup global op class tbl
|
|
|
+ * @behav_limit: behavior limit
|
|
|
+ * @op_class: operating class
|
|
|
+ * @chan_num: channel number
|
|
|
+ *
|
|
|
+ * Return: Void.
|
|
|
+ */
|
|
|
+void reg_freq_width_to_chan_op_class_auto(struct wlan_objmgr_pdev *pdev,
|
|
|
+ qdf_freq_t freq,
|
|
|
+ uint16_t chan_width,
|
|
|
+ bool global_tbl_lookup,
|
|
|
+ uint16_t behav_limit,
|
|
|
+ uint8_t *op_class,
|
|
|
+ uint8_t *chan_num);
|
|
|
+
|
|
|
/**
|
|
|
* reg_freq_to_chan_op_class() - convert frequency to oper class,
|
|
|
* channel
|
|
@@ -248,6 +270,16 @@ reg_freq_width_to_chan_op_class(struct wlan_objmgr_pdev *pdev,
|
|
|
{
|
|
|
}
|
|
|
|
|
|
+static inline void
|
|
|
+reg_freq_width_to_chan_op_class_auto(struct wlan_objmgr_pdev *pdev,
|
|
|
+ qdf_freq_t freq,
|
|
|
+ bool global_tbl_lookup,
|
|
|
+ uint16_t behav_limit,
|
|
|
+ uint8_t *op_class,
|
|
|
+ uint8_t *chan_num)
|
|
|
+{
|
|
|
+}
|
|
|
+
|
|
|
static inline void
|
|
|
reg_freq_to_chan_op_class(struct wlan_objmgr_pdev *pdev,
|
|
|
qdf_freq_t freq,
|