diff options
author | 2021-03-17 15:59:27 +0000 | |
---|---|---|
committer | 2021-03-17 15:59:27 +0000 | |
commit | 6882bbf1e86ad919f98ef7c0454b05e7a5cae5c4 (patch) | |
tree | 78c286fd82bdfeb84d12ececd95b1b75f45f1f06 | |
parent | regen (diff) | |
download | wireguard-openbsd-6882bbf1e86ad919f98ef7c0454b05e7a5cae5c4.tar.xz wireguard-openbsd-6882bbf1e86ad919f98ef7c0454b05e7a5cae5c4.zip |
Make iwx(4) attach to AX201 devices with PCI ID 0x34f0.
Requires Qu-c0-hr-b0-48 firmware which is available via fw_update(1).
Patch by Fredrik Engberg
-rw-r--r-- | sys/dev/pci/if_iwx.c | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/sys/dev/pci/if_iwx.c b/sys/dev/pci/if_iwx.c index c1f839f2977..1f619296ab1 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.49 2021/01/17 14:24:00 jcs Exp $ */ +/* $OpenBSD: if_iwx.c,v 1.50 2021/03/17 15:59:27 stsp Exp $ */ /* * Copyright (c) 2014, 2016 genua gmbh <info@genua.de> @@ -7710,6 +7710,7 @@ static const struct pci_matchid iwx_devices[] = { { PCI_VENDOR_INTEL, PCI_PRODUCT_INTEL_WL_22500_1 }, { PCI_VENDOR_INTEL, PCI_PRODUCT_INTEL_WL_22500_2 }, { PCI_VENDOR_INTEL, PCI_PRODUCT_INTEL_WL_22500_3 }, + { PCI_VENDOR_INTEL, PCI_PRODUCT_INTEL_WL_22500_4,}, }; static const struct pci_matchid iwx_subsystem_id_ax201[] = { @@ -7749,6 +7750,7 @@ iwx_match(struct device *parent, iwx_match_t match __unused, void *aux) return 1; /* match any device */ case PCI_PRODUCT_INTEL_WL_22500_2: /* AX201 */ case PCI_PRODUCT_INTEL_WL_22500_3: /* AX201 */ + case PCI_PRODUCT_INTEL_WL_22500_4: /* AX201 */ for (i = 0; i < nitems(iwx_subsystem_id_ax201); i++) { if (svid == iwx_subsystem_id_ax201[i].pm_vid && spid == iwx_subsystem_id_ax201[i].pm_pid) @@ -7951,6 +7953,17 @@ iwx_attach(struct device *parent, struct device *self, void *aux) sc->sc_tx_with_siso_diversity = 0; sc->sc_uhb_supported = 0; break; + case PCI_PRODUCT_INTEL_WL_22500_4: + sc->sc_fwname = "iwx-Qu-c0-hr-b0-48"; + sc->sc_device_family = IWX_DEVICE_FAMILY_22000; + sc->sc_fwdmasegsz = IWX_FWDMASEGSZ_8000; + sc->sc_integrated = 1; + sc->sc_ltr_delay = IWX_SOC_FLAGS_LTR_APPLY_DELAY_200; + sc->sc_low_latency_xtal = 0; + sc->sc_xtal_latency = 5000; + sc->sc_tx_with_siso_diversity = 0; + sc->sc_uhb_supported = 0; + break; default: printf("%s: unknown adapter type\n", DEVNAME(sc)); return; |