qcacmn: Get center freq from chan center freq index

AP sends chan center freq index via Bandwidth Indication OPIE
in channel load request.

Call reg_compute_6g_center_freq_from_cfi API to get corresponding
center freq for 6 GHz and 320 MHz case.

Change-Id: I14bbfe75016e40189388f32fd207d21197bc989b
CRs-Fixed: 3629129
这个提交包含在:
Abhinav Kumar
2023-09-26 03:35:24 -07:00
提交者 Rahul Choudhary
父节点 bab306058c
当前提交 2d444f83ec
修改 4 个文件,包含 36 行新增9 行删除

查看文件

@@ -2165,6 +2165,15 @@ uint16_t wlan_reg_chan_opclass_to_freq(uint8_t chan,
uint8_t op_class,
bool global_tbl_lookup);
/**
* wlan_reg_compute_6g_center_freq_from_cfi() - Given the IEEE value of the
* 6 GHz center frequency, find the 6 GHz center frequency.
* @ieee_6g_cfi: IEEE value of 6 GHz cfi
*
* Return: Center frequency in MHz
*/
qdf_freq_t wlan_reg_compute_6g_center_freq_from_cfi(uint8_t ieee_6g_cfi);
/**
* wlan_reg_chan_opclass_to_freq_auto() - Convert channel number and opclass to
* frequency

查看文件

@@ -1564,6 +1564,14 @@ uint16_t wlan_reg_chan_opclass_to_freq(uint8_t chan,
return reg_chan_opclass_to_freq(chan, op_class, global_tbl_lookup);
}
qdf_freq_t wlan_reg_compute_6g_center_freq_from_cfi(uint8_t ieee_6g_cfi)
{
if (!ieee_6g_cfi)
return 0;
return reg_compute_6g_center_freq_from_cfi(ieee_6g_cfi);
}
qdf_freq_t wlan_reg_chan_opclass_to_freq_auto(uint8_t chan, uint8_t op_class,
bool global_tbl_lookup)
{