Explorar o código

qcacmn: remove panic if the tag length and filled data are not matching

Remove panic when tlv doesn't matching attributes, the following commit
takes away a chance to pass invalid values tlv to test the the wmi event
hence reverting commit ca24670e562f.


Change-Id: Iafff2067288c8a6fafa016f21b1d7fdfdcb0753e
CRs-Fixed: 2706245
Arun Kumar Khandavalli %!s(int64=5) %!d(string=hai) anos
pai
achega
1eb43f3787
Modificáronse 1 ficheiros con 3 adicións e 2 borrados
  1. 3 2
      wmi/src/wmi_unified.c

+ 3 - 2
wmi/src/wmi_unified.c

@@ -2415,8 +2415,9 @@ void __wmi_control_rx(struct wmi_unified *wmi_handle, wmi_buf_t evt_buf)
 							data, len, id,
 							data, len, id,
 							&wmi_cmd_struct_ptr);
 							&wmi_cmd_struct_ptr);
 		if (tlv_ok_status != 0) {
 		if (tlv_ok_status != 0) {
-			QDF_DEBUG_PANIC("%s: Error: id=0x%x, wmitlv check status=%d",
-					__func__, id, tlv_ok_status);
+			QDF_TRACE(QDF_MODULE_ID_WMI, QDF_TRACE_LEVEL_ERROR,
+				  "%s: Error: id=0x%x, wmitlv check status=%d",
+				  __func__, id, tlv_ok_status);
 			goto end;
 			goto end;
 		}
 		}
 	}
 	}