Parcourir la source

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
Archana Ramachandran il y a 7 ans
Parent
commit
54425cc368
1 fichiers modifiés avec 8 ajouts et 0 suppressions
  1. 8 0
      umac/cmn_services/policy_mgr/src/wlan_policy_mgr_action.c

+ 8 - 0
umac/cmn_services/policy_mgr/src/wlan_policy_mgr_action.c

@@ -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;