qcacmn: Pass hopping radar test when DFS puncture enabled
Hopping radar happens on whole band, hope all DFS sub channels are put to NOL, but F/W only reports single radar event on special freq to host. When DFS puncture enabled, sub channel marking is enabled, host only put single affected 20M sub channel to NOL instead of all current bonded sub channel, AP still stays on current freq for valid puncture bitmap instead of leave DFS freq. If the radar is a frequency hopping radar that truly hops over entire DFS band, then the AP and clients are best served by moving out of the DFS band. But it could well be that only part of the band is used. It is difficult to find product specifications with info on the total bandwidth. Mostly military systems use frequency hopping to avoid jamming. So a middle ground would be to put full bandwidth of current AP to NOL for FCC type 6 frequency hopping radar. When frequency hopping radar happens, F/W set flag that full bandwidth need put to NOL in new added tlv radar_flags of event WMI_PDEV_DFS_RADAR_DETECTION_EVENT, When find the flag is set, host will put full bandwidth of current AP to NOL even sub channel marking is enabled. To avoid compatibility issue between old/new F/W and new/old host, add a F/W service bit wmi_service_radar_flags_support and host service flag is_full_bw_nol_supported. If the wmi_service WMI_SERVICE_RADAR_FLAGS_SUPPORT is enabled by FW, host shall set/unset a bit in the host service flag is_full_bw_nol_supported based on host capabilities. This host service flag is then sent to FW via WMI_INIT_CMDID. Change-Id: I6e280ca4ab00dce97c5aec90c7a4b4fc7c4a440a CRs-Fixed: 3595476
This commit is contained in:
@@ -890,6 +890,31 @@ dfs_radar_action_for_hw_mode_switch(struct wlan_dfs *dfs,
|
||||
}
|
||||
|
||||
#ifdef CONFIG_CHAN_FREQ_API
|
||||
#ifdef MOBILE_DFS_SUPPORT
|
||||
static uint8_t
|
||||
dfs_find_radar_full_bw_channels(struct wlan_dfs *dfs,
|
||||
struct radar_found_info *radar_found,
|
||||
uint16_t *freq_list)
|
||||
{
|
||||
uint8_t num_channels = 0;
|
||||
|
||||
if (radar_found->is_full_bw_nol)
|
||||
num_channels =
|
||||
dfs_get_bonding_channel_without_seg_info_for_freq
|
||||
(dfs->dfs_curchan, freq_list);
|
||||
|
||||
return num_channels;
|
||||
}
|
||||
#else
|
||||
static uint8_t
|
||||
dfs_find_radar_full_bw_channels(struct wlan_dfs *dfs,
|
||||
struct radar_found_info *radar_found,
|
||||
uint16_t *freq_list)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
uint8_t
|
||||
dfs_find_radar_affected_channels(struct wlan_dfs *dfs,
|
||||
struct radar_found_info *radar_found,
|
||||
@@ -898,6 +923,11 @@ dfs_find_radar_affected_channels(struct wlan_dfs *dfs,
|
||||
{
|
||||
uint8_t num_channels;
|
||||
|
||||
num_channels = dfs_find_radar_full_bw_channels(dfs, radar_found,
|
||||
freq_list);
|
||||
if (num_channels)
|
||||
return num_channels;
|
||||
|
||||
if (dfs->dfs_bangradar_type == DFS_BANGRADAR_FOR_ALL_SUBCHANS)
|
||||
num_channels =
|
||||
dfs_get_bonding_channel_without_seg_info_for_freq
|
||||
|
@@ -39,6 +39,7 @@
|
||||
* @chan_freq: channel frequency (Primary channel frequency).
|
||||
* @radar_freq: radar frequency (Is it same as '@chan_freq'?).
|
||||
* @sidx: sidx value (same as freq_offset).
|
||||
* @is_full_bw_nol: Is full bandwidth needed to put to NOL.
|
||||
*/
|
||||
struct radar_found_info {
|
||||
uint32_t pdev_id;
|
||||
@@ -52,6 +53,7 @@ struct radar_found_info {
|
||||
uint32_t chan_freq;
|
||||
uint32_t radar_freq;
|
||||
int32_t sidx;
|
||||
uint8_t is_full_bw_nol;
|
||||
};
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user