|
@@ -1407,10 +1407,19 @@ void iwl_mvm_rx_mfuart_notif(struct iwl_mvm *mvm,
|
|
|
struct iwl_rx_packet *pkt = rxb_addr(rxb);
|
|
|
struct iwl_mfuart_load_notif *mfuart_notif = (void *)pkt->data;
|
|
|
|
|
|
- IWL_DEBUG_INFO(mvm,
|
|
|
- "MFUART: installed ver: 0x%08x, external ver: 0x%08x, status: 0x%08x, duration: 0x%08x\n",
|
|
|
- le32_to_cpu(mfuart_notif->installed_ver),
|
|
|
- le32_to_cpu(mfuart_notif->external_ver),
|
|
|
- le32_to_cpu(mfuart_notif->status),
|
|
|
- le32_to_cpu(mfuart_notif->duration));
|
|
|
+ if (iwl_rx_packet_payload_len(pkt) == sizeof(*mfuart_notif))
|
|
|
+ IWL_DEBUG_INFO(mvm,
|
|
|
+ "MFUART: installed ver: 0x%08x, external ver: 0x%08x, status: 0x%08x, duration: 0x%08x, image size: 0x%08x\n",
|
|
|
+ le32_to_cpu(mfuart_notif->installed_ver),
|
|
|
+ le32_to_cpu(mfuart_notif->external_ver),
|
|
|
+ le32_to_cpu(mfuart_notif->status),
|
|
|
+ le32_to_cpu(mfuart_notif->duration),
|
|
|
+ le32_to_cpu(mfuart_notif->image_size));
|
|
|
+ else
|
|
|
+ IWL_DEBUG_INFO(mvm,
|
|
|
+ "MFUART: installed ver: 0x%08x, external ver: 0x%08x, status: 0x%08x, duration: 0x%08x\n",
|
|
|
+ le32_to_cpu(mfuart_notif->installed_ver),
|
|
|
+ le32_to_cpu(mfuart_notif->external_ver),
|
|
|
+ le32_to_cpu(mfuart_notif->status),
|
|
|
+ le32_to_cpu(mfuart_notif->duration));
|
|
|
}
|