Browse Source

qcacld-3.0: Don't prefer DBS channel over SCC

Currently in case STA is up on 5 GHz channel,
2 GHz band is preferred for P2P CLI and SAP when
concurrency priority is throughput and power
instead of SCC channel.

Fix is to prefer SCC channel in case of
throughput an power instead of moving
to another mac.

Change-Id: I0a2eef10e92f277b38e6ae80961e8d6e27047169
CRs-Fixed: 3289767
Sheenam Monga 2 years ago
parent
commit
a81c00192d

+ 10 - 10
components/cmn_services/policy_mgr/src/wlan_policy_mgr_tables_2x2_dbs_i.h

@@ -50,12 +50,12 @@ pm_second_connection_pcl_dbs_2x2_table = {
 	[PM_STA_5_1x1] = {
 	[PM_STA_MODE] = {PM_24G_SCC_CH_SBS_CH,
 		PM_24G_SCC_CH_SBS_CH, PM_24G_SCC_CH_SBS_CH},
-	[PM_SAP_MODE] = {PM_24G_SCC_CH_SBS_CH,
-		PM_24G_SCC_CH_SBS_CH, PM_24G_SCC_CH_SBS_CH},
-	[PM_P2P_CLIENT_MODE] =	{ PM_24G_SCC_CH_SBS_CH,
-		PM_24G_SCC_CH_SBS_CH, PM_24G_SCC_CH_SBS_CH},
+	[PM_SAP_MODE] = {PM_SCC_CH_24G,
+		PM_SCC_CH_24G, PM_24G_SCC_CH},
+	[PM_P2P_CLIENT_MODE] = {PM_SCC_CH_24G,
+		PM_SCC_CH_24G, PM_24G_SCC_CH},
 	[PM_P2P_GO_MODE] = {PM_SCC_CH_24G,
-		PM_24G_SCC_CH_SBS_CH, PM_24G_SCC_CH_SBS_CH},
+		PM_SCC_CH_24G, PM_24G_SCC_CH},
 	[PM_NAN_DISC_MODE] = {PM_24G_SCC_CH_SBS_CH, PM_24G_SCC_CH_SBS_CH,
 		PM_24G_SCC_CH_SBS_CH},
 	[PM_NDI_MODE] = {PM_MAX_PCL_TYPE, PM_MAX_PCL_TYPE, PM_MAX_PCL_TYPE} },
@@ -63,12 +63,12 @@ pm_second_connection_pcl_dbs_2x2_table = {
 	[PM_STA_5_2x2] = {
 	[PM_STA_MODE] = {PM_24G_SCC_CH_SBS_CH,
 		PM_24G_SCC_CH_SBS_CH, PM_24G_SCC_CH_SBS_CH},
-	[PM_SAP_MODE] = {PM_24G_SCC_CH_SBS_CH,
-		PM_24G_SCC_CH_SBS_CH, PM_24G_SCC_CH_SBS_CH},
-	[PM_P2P_CLIENT_MODE] =	{ PM_24G_SCC_CH_SBS_CH,
-		PM_24G_SCC_CH_SBS_CH, PM_24G_SCC_CH_SBS_CH},
+	[PM_SAP_MODE] = {PM_SCC_CH_24G,
+		PM_SCC_CH_24G, PM_24G_SCC_CH},
+	[PM_P2P_CLIENT_MODE] = {PM_SCC_CH_24G,
+		PM_SCC_CH_24G, PM_24G_SCC_CH},
 	[PM_P2P_GO_MODE] = {PM_SCC_CH_24G,
-		PM_24G_SCC_CH_SBS_CH, PM_24G_SCC_CH_SBS_CH},
+		PM_SCC_CH_24G, PM_24G_SCC_CH},
 	[PM_NAN_DISC_MODE] = {PM_24G_SCC_CH_SBS_CH, PM_24G_SCC_CH_SBS_CH,
 		PM_24G_SCC_CH_SBS_CH},
 	[PM_NDI_MODE] = {PM_MAX_PCL_TYPE, PM_MAX_PCL_TYPE, PM_MAX_PCL_TYPE} },