qcacmn: Add support for SRD channels in ETSI domain

Add support for Short Range Devices 25 mW max power
channels in ETSI regulatory domain.

Add Short Range Devices 25 mW max power channels only
if DSRC feature is disabled.
Provide service apis to check SRD and DSRC channels.

Change-Id: Ib2a1d7cf191d07319cb29038ad60130f5cbe7f16
CRs-Fixed: 2264790
这个提交包含在:
Kiran Kumar Lokere
2018-05-15 15:48:57 -07:00
提交者 nshrivas
父节点 661ec9d74a
当前提交 b49263bc0b
修改 14 个文件,包含 277 行新增46 行删除

查看文件

@@ -46,14 +46,6 @@ struct wlan_find_vdev_filter {
*/
uint32_t wlan_chan_to_freq(uint8_t chan);
/*
* wlan_is_dsrc_channel() - is the channel DSRC
* @center_freq: center freq of the channel
*
* Return: true if DSRC channel or false otherwise
*/
bool wlan_is_dsrc_channel(uint16_t center_freq);
/**
* wlan_freq_to_chan() - converts frequency to channel
* @freq: frequency

查看文件

@@ -44,15 +44,6 @@ uint32_t wlan_chan_to_freq(uint8_t chan)
return WLAN_5_GHZ_BASE_FREQ + chan * WLAN_CHAN_SPACING_5MHZ;
}
bool wlan_is_dsrc_channel(uint16_t center_freq)
{
if (center_freq >= 5852 &&
center_freq <= 5920)
return true;
return false;
}
uint8_t wlan_freq_to_chan(uint32_t freq)
{
uint8_t chan;