qcacmn: Fix issues in random channel selection algorithm

Remove dummy function dfs_remove_cur_ch_from_list(). This logic is already
implemented in dfs_apply_rules().

In dfs_apply_rules()/dfs_apply_rules_for_freq(), skip all the HT20 channels
of the curent channel when DFS_RANDOM_CH_FLAG_NO_CURR_OPE_CH flag is set.

In dfs_prepare_random_channel_for_freq(), allocate correct size of memory
for leakage_adjusted_lst array.

Use DFS_80_NUM_SUB_CHANNEL macro instead of DFS_80_NUM_SUB_CHANNEL_FREQ to
choose correct 80MHz channel.

Change-Id: Ie318d667ff1b0caef3032b7aa57f0ddfb7e1f1a7
CRs-Fixed: 2570055
This commit is contained in:
Shashikala Prabhu
2019-11-13 16:52:25 +05:30
committed by nshrivas
부모 21f7286344
커밋 6810d038e9
3개의 변경된 파일32개의 추가작업 그리고 41개의 파일을 삭제

파일 보기

@@ -472,7 +472,7 @@ QDF_STATUS utils_dfs_get_random_channel(struct wlan_objmgr_pdev *pdev,
#endif
/**
* utils_dfs_get_random_channel() - Get random channel.
* utils_dfs_get_random_channel_for_freq() - Get random channel.
* @pdev: Pointer to DFS pdev object.
* @flags: random channel selection flags.
* @ch_params: current channel params.