Selaa lähdekoodia

qcacmn: Return error when aoa_caps tlv is NULL

Return error status when FW does not share aoa_caps

CRs-Fixed: 3586316
Change-Id: Iea7c49e9332a969286ff612ed8c2b527b9a29c85
Shwetha G K 1 vuosi sitten
vanhempi
sitoutus
03f89b0b85
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 2 2
      wmi/src/wmi_unified_tlv.c

+ 2 - 2
wmi/src/wmi_unified_tlv.c

@@ -5738,13 +5738,13 @@ extract_aoa_caps_tlv(struct wmi_unified *wmi_handle, uint8_t *event,
 
 	if (!param_buf->aoa_caps_param) {
 		wmi_debug("NULL aoa_caps_param");
-		return QDF_STATUS_SUCCESS;
+		return QDF_STATUS_E_INVAL;
 	}
 
 	if (!param_buf->num_aoa_per_band_caps_param ||
 	    !param_buf->aoa_per_band_caps_param) {
 		wmi_debug("No aoa_per_band_caps_param");
-		return QDF_STATUS_SUCCESS;
+		return QDF_STATUS_E_INVAL;
 	}
 	populate_aoa_caps(wmi_handle, aoa_cap, param_buf->aoa_caps_param);