qcacmn: Support p2p GO random chan selection
MCL needs the interface type to query policy mgr for PCL when selecting random channel. The existing API utils_dfs_get_random_channel doesn't provide the vdev type. Add new utils_dfs_get_vdev_random_channel with vdev parameter to support P2P GO random channel selection. Change-Id: I0c6841b1692baca92730a6be73653282c98f1682 CRs-Fixed: 2467871
Этот коммит содержится в:

коммит произвёл
nshrivas

родитель
3a3b8fca39
Коммит
b2569fd660
@@ -448,6 +448,26 @@ QDF_STATUS utils_dfs_get_random_channel(struct wlan_objmgr_pdev *pdev,
|
||||
uint32_t *hw_mode, uint8_t *target_chan,
|
||||
struct dfs_acs_info *acs_info);
|
||||
|
||||
/**
|
||||
* utils_dfs_get_vdev_random_channel() - Get random channel for vdev
|
||||
* @pdev: Pointer to DFS pdev object.
|
||||
* @vdev: vdev of the request
|
||||
* @flags: random channel selection flags.
|
||||
* @ch_params: current channel params.
|
||||
* @hw_mode: current operating mode.
|
||||
* @target_chan: Pointer to target_chan.
|
||||
* @acs_info: acs range info.
|
||||
*
|
||||
* Get random channel based on vdev interface type. If the vdev is null,
|
||||
* the function will get random channel by SAP interface type.
|
||||
*
|
||||
* Return: QDF_STATUS
|
||||
*/
|
||||
QDF_STATUS utils_dfs_get_vdev_random_channel(
|
||||
struct wlan_objmgr_pdev *pdev, struct wlan_objmgr_vdev *vdev,
|
||||
uint16_t flags, struct ch_params *ch_params, uint32_t *hw_mode,
|
||||
uint8_t *target_chan, struct dfs_acs_info *acs_info);
|
||||
|
||||
/**
|
||||
* utils_dfs_bw_reduced_channel() - Get BW reduced channel.
|
||||
* @pdev: Pointer to DFS pdev object.
|
||||
|
Ссылка в новой задаче
Block a user