From: stsp Date: Thu, 29 Jul 2021 11:50:57 +0000 (+0000) Subject: Ignore debug sections present in newer iwx(4) firmware images. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=41e5a3c43c4a9835a74c5dcc742ae091d9aaf1b1;p=openbsd Ignore debug sections present in newer iwx(4) firmware images. ok kevlo@ --- diff --git a/sys/dev/pci/if_iwx.c b/sys/dev/pci/if_iwx.c index 106ad52e91d..73438b8b6b3 100644 --- a/sys/dev/pci/if_iwx.c +++ b/sys/dev/pci/if_iwx.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_iwx.c,v 1.72 2021/07/29 11:50:37 stsp Exp $ */ +/* $OpenBSD: if_iwx.c,v 1.73 2021/07/29 11:50:57 stsp Exp $ */ /* * Copyright (c) 2014, 2016 genua gmbh @@ -1317,6 +1317,13 @@ iwx_read_firmware(struct iwx_softc *sc) case 0x1000002: break; + case IWX_UCODE_TLV_TYPE_DEBUG_INFO: + case IWX_UCODE_TLV_TYPE_BUFFER_ALLOCATION: + case IWX_UCODE_TLV_TYPE_HCMD: + case IWX_UCODE_TLV_TYPE_REGIONS: + case IWX_UCODE_TLV_TYPE_TRIGGERS: + break; + default: err = EINVAL; goto parse_out;