qcacld-3.0: Don't send PCL command for P2P vdev
Set PCL command should be sent to firmware only for STA mode. For P2P vdev, except the connected band, the other band channels are marked disallowed. With this, if the set PCL command is sent then STA can't roam to the disallowed channels. Hence don't send PCL command if the vdev opmode is not Station. Change-Id: I6c4917f75d5f14169e2c564d5f6deee819fb629a CRs-Fixed: 2939148
This commit is contained in:

committed by
Madan Koyyalamudi

parent
081d3c8e1d
commit
97b85405a1
@@ -1405,8 +1405,22 @@ void policy_mgr_set_pcl_for_connected_vdev(struct wlan_objmgr_psoc *psoc,
|
||||
uint8_t vdev_id, bool clear_pcl)
|
||||
{
|
||||
struct policy_mgr_pcl_list msg = { {0} };
|
||||
struct wlan_objmgr_vdev *vdev;
|
||||
uint8_t roam_enabled_vdev_id;
|
||||
|
||||
vdev = wlan_objmgr_get_vdev_by_id_from_psoc(psoc, vdev_id,
|
||||
WLAN_POLICY_MGR_ID);
|
||||
if (!vdev) {
|
||||
policy_mgr_err("vdev is NULL");
|
||||
return;
|
||||
}
|
||||
|
||||
if (wlan_vdev_mlme_get_opmode(vdev) != QDF_STA_MODE) {
|
||||
wlan_objmgr_vdev_release_ref(vdev, WLAN_POLICY_MGR_ID);
|
||||
return;
|
||||
}
|
||||
wlan_objmgr_vdev_release_ref(vdev, WLAN_POLICY_MGR_ID);
|
||||
|
||||
/*
|
||||
* Get the vdev id of the STA on which roaming is already
|
||||
* initialized and set the vdev PCL for that STA vdev if dual
|
||||
|
Reference in New Issue
Block a user