qcacmn: Check if inter-band switch is allowed in random channel selection

During DFS random channel selection, in the function
utils_dfs_get_channel_list, check if inter-band channel switch is
allowed before adding the inter-band channels in the channel list,
from which a random channel is selected as the target channel.

Change-Id: I3f6c88788819039c4b562b462a922edf1baafe12
CRs-Fixed: 2771640
Šī revīzija ir iekļauta:
Hariharan Basuthkar
2020-09-08 00:41:33 +05:30
revīziju iesūtīja snandini
vecāks 60b35027b2
revīzija b820d97f13
5 mainīti faili ar 37 papildinājumiem un 9 dzēšanām

Parādīt failu

@@ -443,6 +443,15 @@ void dfs_mlme_handle_dfs_scan_violation(struct wlan_objmgr_pdev *pdev)
*/
bool dfs_mlme_is_opmode_sta(struct wlan_objmgr_pdev *pdev);
/**
* dfs_mlme_is_inter_band_chan_switch_allowed() - Check if inter-band channel
* switch is allowed.
* @pdev: Pointer to DFS pdev object.
*
* Return: true if inter-band channel switch is allowed.
*/
bool dfs_mlme_is_inter_band_chan_switch_allowed(struct wlan_objmgr_pdev *pdev);
/**
* dfs_mlme_acquire_radar_mode_switch_lock() - Acquire lock for radar processing
* over mode switch handling.

Parādīt failu

@@ -256,6 +256,8 @@ struct dfs_to_mlme {
(struct wlan_objmgr_pdev *pdev,
uint16_t freq,
enum WLAN_DFS_EVENTS event);
bool (*mlme_is_inter_band_chan_switch_allowed)
(struct wlan_objmgr_pdev *pdev);
void (*mlme_acquire_radar_mode_switch_lock)
(struct wlan_objmgr_pdev *pdev);
void (*mlme_release_radar_mode_switch_lock)