qcacmn: Add an API wlan_reg_chan_opclass_to_freq
Add an API wlan_reg_chan_opclass_to_freq, that takes IEEE Channel number and opclass as input and gives the channel center frequency as output. Change-Id: I09733d9dc27beb8f16037aa8653acededf32b715 CRs-Fixed: 2555042
This commit is contained in:

committad av
nshrivas

förälder
97b8676b4e
incheckning
853a2cda71
@@ -1174,4 +1174,15 @@ bool wlan_reg_is_6ghz_op_class(struct wlan_objmgr_pdev *pdev,
|
||||
*/
|
||||
bool wlan_reg_is_6ghz_supported(struct wlan_objmgr_pdev *pdev);
|
||||
|
||||
/**
|
||||
* reg_chan_opclass_to_freq() - Convert channel number and opclass to frequency
|
||||
* @chan: IEEE Channel Number.
|
||||
* @op_class: Opclass.
|
||||
* @global_tbl_lookup: Global table lookup.
|
||||
*
|
||||
* Return: Channel center frequency else return 0.
|
||||
*/
|
||||
uint16_t wlan_reg_chan_opclass_to_freq(uint8_t chan,
|
||||
uint8_t op_class,
|
||||
bool global_tbl_lookup);
|
||||
#endif
|
||||
|
Referens i nytt ärende
Block a user