瀏覽代碼

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 年之前
父節點
當前提交
92b4bf1196
共有 1 個文件被更改,包括 5 次插入6 次删除
  1. 5 6
      core/wma/src/wma_utils.c

+ 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;
 }
 
 /*