mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 22:40:54 -04:00
qcacmn: Disallow moving to single MAC mode when a 2.4GHz connection exist
After the P2P GO is up on 2.4 GHZ, the opportunistic upgrade timer handler is sending request to move to single MAC mode. Since 2.4 GHZ connection is always on MAC1 in DBS 2X2 capable HW, this is causing P2P connection failure. Add fix to not downgrade to single MAC mode when there exist a 2.4 GHZ connection. Change-Id: I90e2b5b43a6bc8a5b5b44ea96905410092f2866e CRs-Fixed: 2055867
This commit is contained in:
parent
5d0786be5e
commit
54425cc368
1 changed files with 8 additions and 0 deletions
|
|
@ -200,6 +200,14 @@ enum policy_mgr_conc_next_action policy_mgr_need_opportunistic_upgrade(
|
|||
} else if ((pm_conc_connection_list[conn_index].mac == 1) &&
|
||||
pm_conc_connection_list[conn_index].in_use) {
|
||||
mac |= POLICY_MGR_MAC1;
|
||||
if (policy_mgr_is_hw_dbs_2x2_capable(psoc) &&
|
||||
WLAN_REG_IS_24GHZ_CH(
|
||||
pm_conc_connection_list[conn_index].chan)
|
||||
) {
|
||||
qdf_mutex_release(&pm_ctx->qdf_conc_list_lock);
|
||||
policy_mgr_debug("2X2 DBS capable with 2.4 GHZ connection");
|
||||
goto done;
|
||||
}
|
||||
if (POLICY_MGR_MAC0_AND_MAC1 == mac) {
|
||||
qdf_mutex_release(&pm_ctx->qdf_conc_list_lock);
|
||||
goto done;
|
||||
|
|
|
|||
Loading…
Reference in a new issue