On Fri, Jan 07, 2022 at 08:57:54AM +0000, Anant Pande wrote:
> In particular, regarding the wifi, the dmesg produced ‘ "Intel Wi-Fi 6
> AX201" rev 0x20 at pci0 dev 20 function 3 not configured ‘, which is what I
> got when I had installed OpenBSD release and snapshot.
>
> 0:20:3: Intel Wi-Fi 6 AX201
> 0x0000: Vendor ID: 8086, Product ID: a0f0
Can you build and test a kernel which includes the patch below and see if
this makes your device work?
It seems our driver is a bit too conservative about matching devices with
product ID a0f0. We filter AX201 devices by subsystem ID, but looking again
at what the Linux driver does, a0f0 products with any subsystem ID should
work.
diff 6bbb73995c8e71f4ccedb27558b1e4887fc58c34 /usr/src
blob - 197efe2a82347d27bf30ac1d0a789bbc25820db8
file + sys/dev/pci/if_iwx.c
--- sys/dev/pci/if_iwx.c
+++ sys/dev/pci/if_iwx.c
@@ -9215,8 +9215,9 @@ iwx_match(struct device *parent, iwx_match_t match __u
switch (PCI_PRODUCT(pa->pa_id)) {
case PCI_PRODUCT_INTEL_WL_22500_1: /* AX200 */
return 1; /* match any device */
- case PCI_PRODUCT_INTEL_WL_22500_2: /* AX201 */
case PCI_PRODUCT_INTEL_WL_22500_3: /* AX201 */
+ return 1; /* match any device */
+ case PCI_PRODUCT_INTEL_WL_22500_2: /* AX201 */
case PCI_PRODUCT_INTEL_WL_22500_4: /* AX201 */
case PCI_PRODUCT_INTEL_WL_22500_5: /* AX201 */
for (i = 0; i < nitems(iwx_subsystem_id_ax201); i++) {
@@ -9418,8 +9419,13 @@ iwx_attach(struct device *parent, struct device *self,
sc->sc_device_family = IWX_DEVICE_FAMILY_22000;
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 = 500;
+ if (PCI_PRODUCT(pa->pa_id) == PCI_PRODUCT_INTEL_WL_22500_3) {
+ sc->sc_xtal_latency = 12000;
+ sc->sc_low_latency_xtal = 1;
+ } else {
+ sc->sc_low_latency_xtal = 0;
+ sc->sc_xtal_latency = 500;
+ }
sc->sc_tx_with_siso_diversity = 0;
sc->sc_uhb_supported = 0;
break;