qcacmn: Get opclass from freq and width given a country code
Add the API wlan_reg_get_opclass_from_freq_width, to give country_iso, channel frequency, channel width and behaviour limit as input, and get the operating class as output. Change-Id: I96c39119ab855d10965b2603e8b15c21699daa68 CRs-Fixed: 2583789
Este cometimento está contido em:

cometido por
nshrivas

ascendente
141db5f642
cometimento
f8f30ced97
@@ -546,6 +546,21 @@ QDF_STATUS wlan_reg_get_domain_from_country_code(v_REGDOMAIN_t *reg_domain_ptr,
|
||||
uint16_t wlan_reg_dmn_get_opclass_from_channel(uint8_t *country,
|
||||
uint8_t channel,
|
||||
uint8_t offset);
|
||||
|
||||
/**
|
||||
* wlan_reg_get_opclass_from_freq_width() - Get operating class from frequency
|
||||
* @country: Country code.
|
||||
* @freq: Channel center frequency.
|
||||
* @ch_width: Channel width.
|
||||
* @behav_limit: Behaviour limit.
|
||||
*
|
||||
* Return: Error code.
|
||||
*/
|
||||
uint8_t wlan_reg_get_opclass_from_freq_width(uint8_t *country,
|
||||
qdf_freq_t freq,
|
||||
uint8_t ch_width,
|
||||
uint16_t behav_limit);
|
||||
|
||||
/**
|
||||
* wlan_reg_dmn_print_channels_in_opclass() - Print channels in op-class
|
||||
* @country: country alpha2
|
||||
|
@@ -267,6 +267,15 @@ uint16_t wlan_reg_dmn_get_opclass_from_channel(uint8_t *country,
|
||||
offset);
|
||||
}
|
||||
|
||||
uint8_t wlan_reg_get_opclass_from_freq_width(uint8_t *country,
|
||||
qdf_freq_t freq,
|
||||
uint8_t ch_width,
|
||||
uint16_t behav_limit)
|
||||
{
|
||||
return reg_dmn_get_opclass_from_freq_width(country, freq, ch_width,
|
||||
behav_limit);
|
||||
}
|
||||
|
||||
void wlan_reg_dmn_print_channels_in_opclass(uint8_t *country,
|
||||
uint8_t opclass)
|
||||
{
|
||||
|
Criar uma nova questão referindo esta
Bloquear um utilizador