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
부모 f120c86ba3
커밋 8cf6c634b6
11개의 변경된 파일180개의 추가작업 그리고 14개의 파일을 삭제

파일 보기

@@ -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
@@ -98,9 +98,32 @@
1, \
"derive the P2P MAC address from the primary MAC address")
/*
* <ini>
* p2p_disable_roam - Disable Roam on sta interface during P2P connection
* @Min: 0 - Roam Enabled on sta interface during P2P connection
* @Max: 1 - Roam Disabled on sta interface during P2P connection
* @Default: 0
*
* Disable roaming on STA iface to avoid audio glitches on p2p if its connected
*
* Related: None.
*
* Supported Feature: Disable Roam during P2P
*
* Usage: Internal
*
* </ini>
*/
#define CFG_P2P_DISABLE_ROAM CFG_INI_BOOL( \
"p2p_disable_roam", \
0, \
"disable roam on STA iface if p2p is connected")
#define CFG_P2P_ALL \
CFG(CFG_GO_KEEP_ALIVE_PERIOD) \
CFG(CFG_GO_LINK_MONITOR_PERIOD) \
CFG(CFG_P2P_DEVICE_ADDRESS_ADMINISTRATED)
CFG(CFG_P2P_DEVICE_ADDRESS_ADMINISTRATED) \
CFG(CFG_P2P_DISABLE_ROAM)
#endif