qcacmn: Move to default SAR version, when SAR2 is not supported
If SAR version 2 is not supported by firmware, then fallback to default SAR version 1 Change-Id: Ibfbcfd7cf3f438f7cb46250c70221956ea54c7ca CRs-Fixed: 2274447
This commit is contained in:
@@ -19324,11 +19324,14 @@ static QDF_STATUS extract_sar_cap_service_ready_ext_tlv(
|
||||
|
||||
param_buf = (WMI_SERVICE_READY_EXT_EVENTID_param_tlvs *)event;
|
||||
|
||||
sar_caps = param_buf->sar_caps;
|
||||
if (!sar_caps)
|
||||
if (!param_buf)
|
||||
return QDF_STATUS_E_INVAL;
|
||||
|
||||
sar_caps = param_buf->sar_caps;
|
||||
if (sar_caps)
|
||||
ext_param->sar_version = sar_caps->active_version;
|
||||
else
|
||||
ext_param->sar_version = 0;
|
||||
|
||||
return QDF_STATUS_SUCCESS;
|
||||
}
|
||||
|
Reference in New Issue
Block a user