qcacld-3.0: Use policy manager frequency APIs

For 6GHz support and to remove channel number ambiguity use policy
manager APIs updated for frequency in other modules. This change
covers following APIs:
policy_mgr_is_chnl_in_diff_band
policy_mgr_check_for_session_conc
policy_mgr_handle_conc_multiport
policy_mgr_change_sap_channel_with_csa
policy_mgr_get_channel
policy_mgr_get_nondfs_preferred_channel

Change-Id: I4a6673db3a02b6e8d7fa94ae452338db618e3883
CRs-fixed: 2545099
This commit is contained in:
Manikandan Mohan 2019-08-14 16:49:02 -07:00 • committed by nshrivas
commit 7fdb02592b
10 changed files with 64 additions and 119 deletions

View file

@ -2238,9 +2238,11 @@ QDF_STATUS tdls_process_antenna_switch(struct tdls_antenna_switch_request *req)
vdev_id = wlan_vdev_get_id(vdev);
opmode = wlan_vdev_mlme_get_opmode(vdev);
channel = policy_mgr_get_channel(soc_obj->soc,
channel = wlan_freq_to_chan(
policy_mgr_get_channel(
soc_obj->soc,
policy_mgr_convert_device_mode_to_qdf_type(opmode),
&vdev_id);
&vdev_id));
/* Check supported nss for TDLS, if is 1x1, no need to teardown links */
if (WLAN_REG_IS_24GHZ_CH(channel))

View file

@ -399,9 +399,11 @@ static void tdls_determine_channel_opclass(struct tdls_soc_priv_obj *soc_obj,
vdev_id = wlan_vdev_get_id(vdev_obj->vdev);
opmode = wlan_vdev_mlme_get_opmode(vdev_obj->vdev);
*channel = policy_mgr_get_channel(soc_obj->soc,
*channel = wlan_freq_to_chan(
policy_mgr_get_channel(
soc_obj->soc,
policy_mgr_convert_device_mode_to_qdf_type(opmode),
&vdev_id);
&vdev_id));
*opclass = 0;
} else {
*channel = peer->pref_off_chan_num;