From 92b4bf1196caf8704f9c35642c3510fa4cdb2e37 Mon Sep 17 00:00:00 2001 From: Archana Ramachandran Date: Fri, 17 Mar 2017 15:41:53 -0700 Subject: [PATCH] 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 --- core/wma/src/wma_utils.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/core/wma/src/wma_utils.c b/core/wma/src/wma_utils.c index 1800cd6f5a23..438a863c1679 100644 --- a/core/wma/src/wma_utils.c +++ b/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; } /*