Эх сурвалжийг харах

qcacld-3.0: Fix SBS is set to true by policy manager in SCC mode

SBS is always set to true by the policy manager. so for the second
connection, if the mode is not DBS, then SBS HW mode is selected.
Since SBS is not supported the second connection fails with invalid
HW mode error.

Change-Id: I817e83cbac194cdfde73a586491d645631692f12
CRs-Fixed: 2021512
Archana Ramachandran 8 жил өмнө
parent
commit
92b4bf1196

+ 5 - 6
core/wma/src/wma_utils.c

@@ -3046,17 +3046,16 @@ bool wma_is_hw_sbs_capable(void)
 		return false;
 	}
 
-	WMA_LOGI("%s: SBS service bit map: %d", __func__,
-		WMI_SERVICE_IS_ENABLED(wma->wmi_service_bitmap,
-		WMI_SERVICE_DUAL_BAND_SIMULTANEOUS_SUPPORT));
-
 	/* The agreement with FW is that: To know if the target is SBS
 	 * capable, SBS needs to be supported both in the HW mode list
 	 * and DBS needs to be supported in the service ready event
 	 */
 	if (!(WMI_SERVICE_IS_ENABLED(wma->wmi_service_bitmap,
-			WMI_SERVICE_DUAL_BAND_SIMULTANEOUS_SUPPORT)))
+			WMI_SERVICE_DUAL_BAND_SIMULTANEOUS_SUPPORT))) {
+		WMA_LOGE("%s: SBS cannot be supported since DBS is disabled",
+			 __func__);
 		return false;
+	}
 
 	for (i = 0; i < wma->num_dbs_hw_modes; i++) {
 		param = wma->hw_mode.hw_mode_list[i];
@@ -3071,7 +3070,7 @@ bool wma_is_hw_sbs_capable(void)
 	if (found)
 		return true;
 
-	return true;
+	return false;
 }
 
 /*