qcacmn: Use global opclass for 6GHz channel lookup
For 6G band, only valid opclass_table is the global_op_class as per the current specification. Therefore, if the band is 6G set the opclass to global_op_class instead of the default class. Change-Id: I43d1be8266aa80b11c446d84bc3d027cde8bebea
This commit is contained in:
@@ -1309,4 +1309,17 @@ wlan_reg_country_chan_opclass_to_freq(struct wlan_objmgr_pdev *pdev,
|
||||
uint16_t wlan_reg_chan_opclass_to_freq(uint8_t chan,
|
||||
uint8_t op_class,
|
||||
bool global_tbl_lookup);
|
||||
|
||||
/**
|
||||
* wlan_reg_chan_opclass_to_freq_auto() - Convert channel number and opclass to
|
||||
* frequency
|
||||
* @chan: IEEE channel number
|
||||
* @op_class: Operating class of channel
|
||||
* @global_tbl_lookup: Flag to determine if global table has to be looked up
|
||||
*
|
||||
* Return: Channel center frequency if valid, else zero
|
||||
*/
|
||||
|
||||
qdf_freq_t wlan_reg_chan_opclass_to_freq_auto(uint8_t chan, uint8_t op_class,
|
||||
bool global_tbl_lookup);
|
||||
#endif
|
||||
|
@@ -1102,3 +1102,12 @@ 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_chan_opclass_to_freq_auto(uint8_t chan, uint8_t op_class,
|
||||
bool global_tbl_lookup)
|
||||
{
|
||||
if (!chan || !op_class)
|
||||
return 0;
|
||||
|
||||
return reg_chan_opclass_to_freq_auto(chan, op_class, global_tbl_lookup);
|
||||
}
|
||||
|
Reference in New Issue
Block a user