qcacld-3.0: Disable all roam scan in case p2p connection is present

Glitches seen after the STA disconnection because of the roam scan
triggered on a heartbeat failure ( beacon miss ).STA does a partial
scan followed by full scan causing the DUT to go off-channel from
the STA and P2P home channel, causing the music BLIP.

Fix is to disable roaming irrespective of data traffic present
or not on P2P interface and enabled again once P2P is disconnected.

Change-Id: I5ddf946adbfbe99d5b20c23c46b2b4ac0bfac47f
CRs-Fixed: 2632939
This commit is contained in:
Pankaj Singh
2020-02-27 10:14:00 +05:30
committed by nshrivas
parent f120c86ba3
commit 8cf6c634b6
11 changed files with 180 additions and 14 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2018-2019 The Linux Foundation. All rights reserved.
* Copyright (c) 2018-2020 The Linux Foundation. All rights reserved.
*
* Permission to use, copy, modify, and/or distribute this software for
* any purpose with or without fee is hereby granted, provided that the
@@ -86,3 +86,15 @@ cfg_p2p_get_device_addr_admin(struct wlan_objmgr_psoc *psoc,
return QDF_STATUS_SUCCESS;
}
bool cfg_p2p_is_roam_config_disabled(struct wlan_objmgr_psoc *psoc)
{
struct p2p_soc_priv_obj *p2p_soc_obj;
p2p_soc_obj = wlan_psoc_get_p2p_object(psoc);
if (!p2p_soc_obj) {
p2p_err("p2p psoc null");
return false;
}
return p2p_soc_obj->param.p2p_disable_roam;
}