Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 11667807 authored by Mahesh Kumar Kalikot Veetil's avatar Mahesh Kumar Kalikot Veetil Committed by Akash Patel
Browse files

qcacld-3.0: Add backward compatibiilty to older FW

If DBS hwmode is not available from FW, return accrodingly in
wma_get_hw_mode_from_idx.

Change-Id: I603edd8a49bfd584300dcfc21c2b3c8c4c3c1892
CRs-Fixed: 934012
parent af206a78
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -2797,6 +2797,11 @@ CDF_STATUS wma_get_hw_mode_from_idx(uint32_t idx,
		return CDF_STATUS_E_FAILURE;
	}

	if (!wma->num_dbs_hw_modes) {
		WMA_LOGE("%s: No dbs hw modes available", __func__);
		return CDF_STATUS_E_FAILURE;
	}

	param = wma->hw_mode.hw_mode_list[idx];

	hw_mode->mac0_tx_ss = WMI_DBS_HW_MODE_MAC0_TX_STREAMS_GET(param);