Ignore debug sections present in newer iwx(4) firmware images.
authorstsp <stsp@openbsd.org>
Thu, 29 Jul 2021 11:50:57 +0000 (11:50 +0000)
committerstsp <stsp@openbsd.org>
Thu, 29 Jul 2021 11:50:57 +0000 (11:50 +0000)
ok kevlo@

sys/dev/pci/if_iwx.c

index 106ad52..73438b8 100644 (file)
@@ -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 <info@genua.de>
@@ -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;