Browse Source

qcacld-3.0: Check 3th connection valid on same mac

For 3th connection bring up, if first two connections
are SCC on same mac (STA+SAP or SAP+SAP), third connection
(STA or SAP) is not supported on same mac. Previous
commit If30cf58d2b16fc3ff4dfff4f75d7eeaa51786cad
lost the same mac check.

Change-Id: I278e94cbb1e368af57327da869bd961237e7b4b6
CRs-Fixed: 2534987
Liangwei Dong 5 years ago
parent
commit
f242c78f7b
1 changed files with 2 additions and 1 deletions
  1. 2 1
      components/cmn_services/policy_mgr/src/wlan_policy_mgr_core.c

+ 2 - 1
components/cmn_services/policy_mgr/src/wlan_policy_mgr_core.c

@@ -2603,7 +2603,8 @@ bool policy_mgr_allow_new_home_channel(
 					policy_mgr_err("don't allow 3rd home channel on same MAC");
 					status = false;
 			}
-		} else {
+		} else if (pm_conc_connection_list[0].mac ==
+			   pm_conc_connection_list[1].mac) {
 			/* Existing two connections are SCC */
 			if (policy_mgr_is_hw_dbs_capable(psoc) == false) {
 				/* keep legacy chip "allow" as it is */