openwrt / openwrt

This repository is a mirror of https://git.openwrt.org/openwrt/openwrt.git It is for reference only and is not active for check-ins. We will continue to accept Pull Requests here. They will be merged via staging trees then into openwrt.git.
Other
20.06k stars 10.42k forks source link

Intel WiFi AX201 Wireless card recognized like Detected Intel(R) Wireless-AC 9560 160MHz #11630

Open WhiteWolf84 opened 1 year ago

WhiteWolf84 commented 1 year ago

Describe the bug

Hi,

the wireless card Intel AX201 is recognized as "Intel(R) Wireless-AC 9560 160MHz" this is generating many problems during the AP mode, like frequent disconnections.

There is already some patched into the wild, like those:

https://bbs.archlinux.org/viewtopic.php?id=268094 https://bugzilla.redhat.com/show_bug.cgi?id=1977295

Seems that there is a wrong association into the code itself.

OpenWrt version

r19803-9a599fee93

OpenWrt target/subtarget

x86/64

Device

KVM Virtual Machine with PCIE Passtrough

Image kind

Official downloaded image

Steps to reproduce

Install the kmod-iwlwifi, and using the card with the required and wrong (iwlwifi-QuZ-a0-jf-b0-66.ucode) firmware downloaded from linux kernel git.

Actual behaviour

Wireless instability

Expected behaviour

Wireless stability

Additional info

No response

Diffconfig

No response

Terms

981213 commented 1 year ago

Could you update your snapshot version and try again? The patch for the issues you mentioned is accepted on 2021.09.02 and our wireless drivers are updated to linux 6.1-rc8 recently.

WhiteWolf84 commented 1 year ago

Hi,

Thanks for the fast reply!

here the results:

[ 4.405118] Intel(R) Wireless WiFi driver for Linux [ 4.444699] iwlwifi 0000:01:00.0: api flags index 2 larger than supported by driver [ 4.447324] iwlwifi 0000:01:00.0: TLV_FW_FSEQ_VERSION: FSEQ Version: 89.3.35.37 [ 4.455675] PPP generic driver version 2.4.2 [ 4.456938] NET: Registered PF_PPPOX protocol family [ 4.458622] iwlwifi 0000:01:00.0: loaded firmware version 72.daa05125.0 QuZ-a0-jf-b0-72.ucode op_mode iwlmvm [ 4.462335] iwlwifi 0000:01:00.0: Detected Intel(R) Wireless-AC 9560 160MHz, REV=0x351 [ 4.468516] thermal thermal_zone0: failed to read out thermal zone (-61) [ 4.584632] iwlwifi 0000:01:00.0: Detected RF JF, rfid=0x105110 [ 4.643741] iwlwifi 0000:01:00.0: base HW address: 64:6e:e0:9e:f3:7c

I think that the problem is still here.

OpenWrt Version r21603-fb15cb4ce9

Best Regards

WhiteWolf84 commented 1 year ago

A small update, the wireless seems to be more stable anyway. So I'm going to test it and give you some feedback.

WhiteWolf84 commented 1 year ago

Hi,

the problem still there :-(

some more evidences:

[ 1440.664809] device phy0-ap0 left promiscuous mode [ 1440.667141] br-guest: port 2(phy0-ap0) entered disabled state [ 1440.810286] iwlwifi 0000:01:00.0: Microcode SW error detected. Restarting 0x0. [ 1440.812698] iwlwifi 0000:01:00.0: Start IWL Error Log Dump: [ 1440.813682] iwlwifi 0000:01:00.0: Transport status: 0x0000004B, valid: 6 [ 1440.814754] iwlwifi 0000:01:00.0: Loaded firmware version: 72.daa05125.0 QuZ-a0-jf-b0-72.ucode [ 1440.815981] iwlwifi 0000:01:00.0: 0x00000071 | NMI_INTERRUPT_UMAC_FATAL [ 1440.817074] iwlwifi 0000:01:00.0: 0x000022F0 | trm_hw_status0 [ 1440.818074] iwlwifi 0000:01:00.0: 0x00000000 | trm_hw_status1 [ 1440.819074] iwlwifi 0000:01:00.0: 0x004C33EA | branchlink2 [ 1440.820103] iwlwifi 0000:01:00.0: 0x00011EB4 | interruptlink1 [ 1440.821145] iwlwifi 0000:01:00.0: 0x00011EB4 | interruptlink2 [ 1440.822271] iwlwifi 0000:01:00.0: 0x0001019E | data1 [ 1440.823778] iwlwifi 0000:01:00.0: 0x00001000 | data2 [ 1440.827138] iwlwifi 0000:01:00.0: 0x00000000 | data3 [ 1440.828076] iwlwifi 0000:01:00.0: 0x00000000 | beacon time [ 1440.829029] iwlwifi 0000:01:00.0: 0x3B768965 | tsf low [ 1440.829980] iwlwifi 0000:01:00.0: 0x00000000 | tsf hi [ 1440.830898] iwlwifi 0000:01:00.0: 0x00000000 | time gp1 [ 1440.831813] iwlwifi 0000:01:00.0: 0x3B76DFD5 | time gp2 [ 1440.832730] iwlwifi 0000:01:00.0: 0x00000001 | uCode revision type [ 1440.833721] iwlwifi 0000:01:00.0: 0x00000048 | uCode version major [ 1440.834724] iwlwifi 0000:01:00.0: 0xDAA05125 | uCode version minor [ 1440.835701] iwlwifi 0000:01:00.0: 0x00000351 | hw version [ 1440.836621] iwlwifi 0000:01:00.0: 0x18489001 | board version [ 1440.837567] iwlwifi 0000:01:00.0: 0x00DD0103 | hcmd [ 1440.838434] iwlwifi 0000:01:00.0: 0x00020000 | isr0 [ 1440.839306] iwlwifi 0000:01:00.0: 0x20000000 | isr1 [ 1440.840195] iwlwifi 0000:01:00.0: 0x08F04002 | isr2 [ 1440.841054] iwlwifi 0000:01:00.0: 0x00C3400C | isr3 [ 1440.841902] iwlwifi 0000:01:00.0: 0x00000000 | isr4 [ 1440.842750] iwlwifi 0000:01:00.0: 0x00DD0103 | last cmd Id [ 1440.843610] iwlwifi 0000:01:00.0: 0x0001019E | wait_event [ 1440.844440] iwlwifi 0000:01:00.0: 0x00000000 | l2p_control [ 1440.845258] iwlwifi 0000:01:00.0: 0x00000000 | l2p_duration [ 1440.846074] iwlwifi 0000:01:00.0: 0x00000000 | l2p_mhvalid [ 1440.846884] iwlwifi 0000:01:00.0: 0x00000000 | l2p_addr_match [ 1440.847706] iwlwifi 0000:01:00.0: 0x00000048 | lmpm_pmg_sel [ 1440.848518] iwlwifi 0000:01:00.0: 0x00000000 | timestamp [ 1440.849300] iwlwifi 0000:01:00.0: 0x0000A07C | flow_handler [ 1440.850145] iwlwifi 0000:01:00.0: Start IWL Error Log Dump: [ 1440.850937] iwlwifi 0000:01:00.0: Transport status: 0x0000004B, valid: 7 [ 1440.851790] iwlwifi 0000:01:00.0: 0x2000341A | ADVANCED_SYSASSERT [ 1440.852746] iwlwifi 0000:01:00.0: 0x00000000 | umac branchlink1 [ 1440.853657] iwlwifi 0000:01:00.0: 0x80453BD8 | umac branchlink2 [ 1440.854461] iwlwifi 0000:01:00.0: 0x010630BC | umac interruptlink1 [ 1440.859016] iwlwifi 0000:01:00.0: 0x00000000 | umac interruptlink2 [ 1440.859861] iwlwifi 0000:01:00.0: 0x00000002 | umac data1 [ 1440.860623] iwlwifi 0000:01:00.0: 0x00000008 | umac data2 [ 1440.861368] iwlwifi 0000:01:00.0: 0xDEADBEEF | umac data3 [ 1440.862093] iwlwifi 0000:01:00.0: 0x00000048 | umac major [ 1440.862821] iwlwifi 0000:01:00.0: 0xDAA05125 | umac minor [ 1440.863527] iwlwifi 0000:01:00.0: 0x3B76DFCF | frame pointer [ 1440.864241] iwlwifi 0000:01:00.0: 0xC0886C2C | stack pointer [ 1440.864946] iwlwifi 0000:01:00.0: 0x00DE0117 | last host cmd [ 1440.865642] iwlwifi 0000:01:00.0: 0x00000000 | isr status reg [ 1440.866359] iwlwifi 0000:01:00.0: IML/ROM dump: [ 1440.866985] iwlwifi 0000:01:00.0: 0x00000003 | IML/ROM error/state [ 1440.867740] iwlwifi 0000:01:00.0: 0x00005471 | IML/ROM data1 [ 1440.868449] iwlwifi 0000:01:00.0: 0x00000080 | IML/ROM WFPM_AUTH_KEY_0 [ 1440.869214] iwlwifi 0000:01:00.0: Fseq Registers: [ 1440.869872] iwlwifi 0000:01:00.0: 0x60000000 | FSEQ_ERROR_CODE [ 1440.870601] iwlwifi 0000:01:00.0: 0x80260000 | FSEQ_TOP_INIT_VERSION [ 1440.871381] iwlwifi 0000:01:00.0: 0x00020006 | FSEQ_CNVIO_INIT_VERSION [ 1440.872165] iwlwifi 0000:01:00.0: 0x0000A384 | FSEQ_OTP_VERSION [ 1440.872905] iwlwifi 0000:01:00.0: 0xFF0EDC4C | FSEQ_TOP_CONTENT_VERSION [ 1440.873694] iwlwifi 0000:01:00.0: 0x4552414E | FSEQ_ALIVE_TOKEN [ 1440.874431] iwlwifi 0000:01:00.0: 0x20000302 | FSEQ_CNVI_ID [ 1440.875154] iwlwifi 0000:01:00.0: 0x01300202 | FSEQ_CNVR_ID [ 1440.875867] iwlwifi 0000:01:00.0: 0x20000302 | CNVI_AUX_MISC_CHIP [ 1440.876622] iwlwifi 0000:01:00.0: 0x01300202 | CNVR_AUX_MISC_CHIP [ 1440.877377] iwlwifi 0000:01:00.0: 0x0000485B | CNVR_SCU_SD_REGS_SD_REG_DIG_DCDC_VTRIM [ 1440.878294] iwlwifi 0000:01:00.0: 0xA5A5A5A2 | CNVR_SCU_SD_REGS_SD_REG_ACTIVE_VDIG_MIRROR [ 1440.879376] iwlwifi 0000:01:00.0: WRT: Collecting data: ini trigger 5 fired (delay=0ms). [ 1440.880343] ieee80211 phy0: Hardware restart was requested

my lspci output:

root@OpenWrt:~# lspci 00:00.0 Host bridge: Intel Corporation 82G33/G31/P35/P31 Express DRAM Controller 00:01.0 VGA compatible controller: Red Hat, Inc. QXL paravirtual graphic card (rev 05) 00:1a.0 USB controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #4 (rev 03) 00:1a.1 USB controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #5 (rev 03) 00:1a.2 USB controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #6 (rev 03) 00:1a.7 USB controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #2 (rev 03) 00:1b.0 Audio device: Intel Corporation 82801I (ICH9 Family) HD Audio Controller (rev 03) 00:1c.0 PCI bridge: Red Hat, Inc. QEMU PCIe Root port 00:1c.1 PCI bridge: Red Hat, Inc. QEMU PCIe Root port 00:1c.2 PCI bridge: Red Hat, Inc. QEMU PCIe Root port 00:1c.3 PCI bridge: Red Hat, Inc. QEMU PCIe Root port 00:1d.0 USB controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #1 (rev 03) 00:1d.1 USB controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #2 (rev 03) 00:1d.2 USB controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #3 (rev 03) 00:1d.7 USB controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #1 (rev 03) 00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev 92) 00:1f.0 ISA bridge: Intel Corporation 82801IB (ICH9) LPC Interface Controller (rev 02) 00:1f.2 SATA controller: Intel Corporation 82801IR/IO/IH (ICH9R/DO/DH) 6 port SATA Controller [AHCI mode] (rev 02) 00:1f.3 SMBus: Intel Corporation 82801I (ICH9 Family) SMBus Controller (rev 02)

01:00.0 Network controller: Intel Corporation Wi-Fi 6 AX201 160MHz (rev 01)

05:01.0 PCI bridge: Red Hat, Inc. QEMU PCI-PCI bridge 05:02.0 PCI bridge: Red Hat, Inc. QEMU PCI-PCI bridge 05:03.0 PCI bridge: Red Hat, Inc. QEMU PCI-PCI bridge 05:04.0 PCI bridge: Red Hat, Inc. QEMU PCI-PCI bridge 06:07.0 SATA controller: Intel Corporation 82801IR/IO/IH (ICH9R/DO/DH) 6 port SATA Controller [AHCI mode] (rev 02) 06:08.0 Communication controller: Red Hat, Inc. Virtio console 06:09.0 Communication controller: Red Hat, Inc. Virtio console 06:12.0 Ethernet controller: Red Hat, Inc. Virtio network device 06:13.0 Ethernet controller: Red Hat, Inc. Virtio network device

I don't think that the patch is in place.

WhiteWolf84 commented 1 year ago

I'm still with the problem, and I'm constantly upgrading the OpenWrt with snapshots.

Someone has acknowledged the problem?

981213 commented 1 year ago

I don't think that the patch is in place.

The patches in the link you mentioned are already part of the iwlwifi used in OpenWrt, so you are probably facing a different issue than those people.

This seems to be an issue in the upstream kernel driver, not an OpenWrt specific problem. To confirm this, you can try booting other Linux distros (e.g. Ubuntu/Fedora/...) in your VM, check the kernel log and see if this incorrect detection still happens. If that's true, there aren't much we can do from OpenWrt side. You may get more help by reporting this issue to linux kernel.

Spudz76 commented 1 year ago

Can you post output of lspci -vns 01:00.0

WhiteWolf84 commented 1 year ago

Hi guys,

you are right, I'm so deadly sorry, it seem I was wrongs. I was sure to have seen the right device name into OpenWRT KERNEL Firmware loading log (dmesg), but it seem that the right name is only showed via LSPCI command. So my wireless stability problems are coming from another cause... :-(

Thanks for your patience and help!

WhiteWolf84 commented 1 year ago

Hi!

maybe I've found the problem! I was using only hostapd in order to make wireless AP working, but I've found another package wpad-openssl that seems to work a lot better and with WPA3 Security!

WhiteWolf84 commented 1 year ago

Can you post output of lspci -vns 01:00.0


root@OpenWrt:~# lspci -nnk
00:00.0 Host bridge [0600]: Intel Corporation 82G33/G31/P35/P31 Express DRAM Controller [8086:29c0]
        Subsystem: Red Hat, Inc. QEMU Virtual Machine [1af4:1100]
lspci: Unable to load libkmod resources: error -12
00:01.0 VGA compatible controller [0300]: Red Hat, Inc. QXL paravirtual graphic card [1b36:0100] (rev 05)
        Subsystem: Red Hat, Inc. QEMU Virtual Machine [1af4:1100]
00:1a.0 USB controller [0c03]: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #4 [8086:2937] (rev 03)
        Subsystem: Red Hat, Inc. QEMU Virtual Machine [1af4:1100]
        Kernel driver in use: uhci_hcd
00:1a.1 USB controller [0c03]: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #5 [8086:2938] (rev 03)
        Subsystem: Red Hat, Inc. QEMU Virtual Machine [1af4:1100]
        Kernel driver in use: uhci_hcd
00:1a.2 USB controller [0c03]: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #6 [8086:2939] (rev 03)
        Subsystem: Red Hat, Inc. QEMU Virtual Machine [1af4:1100]
        Kernel driver in use: uhci_hcd
00:1a.7 USB controller [0c03]: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #2 [8086:293c] (rev 03)
        Subsystem: Red Hat, Inc. QEMU Virtual Machine [1af4:1100]
        Kernel driver in use: ehci-pci
00:1b.0 Audio device [0403]: Intel Corporation 82801I (ICH9 Family) HD Audio Controller [8086:293e] (rev 03)
        Subsystem: Red Hat, Inc. QEMU Virtual Machine [1af4:1100]
00:1c.0 PCI bridge [0604]: Red Hat, Inc. QEMU PCIe Root port [1b36:000c]
        Subsystem: Red Hat, Inc. Device [1b36:0000]
        Kernel driver in use: pcieport
00:1c.1 PCI bridge [0604]: Red Hat, Inc. QEMU PCIe Root port [1b36:000c]
        Subsystem: Red Hat, Inc. Device [1b36:0000]
        Kernel driver in use: pcieport
00:1c.2 PCI bridge [0604]: Red Hat, Inc. QEMU PCIe Root port [1b36:000c]
        Subsystem: Red Hat, Inc. Device [1b36:0000]
        Kernel driver in use: pcieport
00:1c.3 PCI bridge [0604]: Red Hat, Inc. QEMU PCIe Root port [1b36:000c]
        Subsystem: Red Hat, Inc. Device [1b36:0000]
        Kernel driver in use: pcieport
00:1d.0 USB controller [0c03]: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #1 [8086:2934] (rev 03)
        Subsystem: Red Hat, Inc. QEMU Virtual Machine [1af4:1100]
        Kernel driver in use: uhci_hcd
00:1d.1 USB controller [0c03]: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #2 [8086:2935] (rev 03)
        Subsystem: Red Hat, Inc. QEMU Virtual Machine [1af4:1100]
        Kernel driver in use: uhci_hcd
00:1d.2 USB controller [0c03]: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #3 [8086:2936] (rev 03)
        Subsystem: Red Hat, Inc. QEMU Virtual Machine [1af4:1100]
        Kernel driver in use: uhci_hcd
00:1d.7 USB controller [0c03]: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #1 [8086:293a] (rev 03)
        Subsystem: Red Hat, Inc. QEMU Virtual Machine [1af4:1100]
        Kernel driver in use: ehci-pci
00:1e.0 PCI bridge [0604]: Intel Corporation 82801 PCI Bridge [8086:244e] (rev 92)
00:1f.0 ISA bridge [0601]: Intel Corporation 82801IB (ICH9) LPC Interface Controller [8086:2918] (rev 02)
        Subsystem: Red Hat, Inc. QEMU Virtual Machine [1af4:1100]
        Kernel driver in use: lpc_ich
00:1f.2 SATA controller [0106]: Intel Corporation 82801IR/IO/IH (ICH9R/DO/DH) 6 port SATA Controller [AHCI mode] [8086:2922] (rev 02)
        Subsystem: Red Hat, Inc. QEMU Virtual Machine [1af4:1100]
        Kernel driver in use: ahci
00:1f.3 SMBus [0c05]: Intel Corporation 82801I (ICH9 Family) SMBus Controller [8086:2930] (rev 02)
        Subsystem: Red Hat, Inc. QEMU Virtual Machine [1af4:1100]
05:01.0 PCI bridge [0604]: Red Hat, Inc. QEMU PCI-PCI bridge [1b36:0001]
05:02.0 PCI bridge [0604]: Red Hat, Inc. QEMU PCI-PCI bridge [1b36:0001]
05:03.0 PCI bridge [0604]: Red Hat, Inc. QEMU PCI-PCI bridge [1b36:0001]
05:04.0 PCI bridge [0604]: Red Hat, Inc. QEMU PCI-PCI bridge [1b36:0001]
06:07.0 SATA controller [0106]: Intel Corporation 82801IR/IO/IH (ICH9R/DO/DH) 6 port SATA Controller [AHCI mode] [8086:2922] (rev 02)
        Subsystem: Red Hat, Inc. QEMU Virtual Machine [1af4:1100]
        Kernel driver in use: ahci
06:08.0 Communication controller [0780]: Red Hat, Inc. Virtio console [1af4:1003]
        Subsystem: Red Hat, Inc. Device [1af4:0003]
        Kernel driver in use: virtio-pci
06:09.0 Communication controller [0780]: Red Hat, Inc. Virtio console [1af4:1003]
        Subsystem: Red Hat, Inc. Device [1af4:0003]
        Kernel driver in use: virtio-pci
06:10.0 Network controller [0280]: Intel Corporation Wi-Fi 6 AX201 160MHz [8086:4df0] (rev 01)
        Subsystem: Intel Corporation Device [8086:0034]
        Kernel driver in use: iwlwifi
06:12.0 Ethernet controller [0200]: Red Hat, Inc. Virtio network device [1af4:1000]
        Subsystem: Red Hat, Inc. Device [1af4:0001]
        Kernel driver in use: virtio-pci
06:13.0 Ethernet controller [0200]: Red Hat, Inc. Virtio network device [1af4:1000]
        Subsystem: Red Hat, Inc. Device [1af4:0001]
        Kernel driver in use: virtio-pci
root@OpenWrt:~# lspci -vns 06:10.0
06:10.0 0280: 8086:4df0 (rev 01)
        Subsystem: 8086:0034
        Physical Slot: 16-1
        Flags: bus master, fast devsel, latency 0, IRQ 21
        Memory at c8600000 (64-bit, non-prefetchable) [size=16K]
        Capabilities: [c8] Power Management version 3
        Capabilities: [d0] MSI: Enable- Count=1/1 Maskable- 64bit+
        Capabilities: [80] MSI-X: Enable+ Count=16 Masked-
        Kernel driver in use: iwlwifi
lspci: Unable to load libkmod resources: error -12
'''
Spudz76 commented 1 year ago

Yes the default wpad doesn't work well for me either, I use the wpad-wolfssl flavor for a similar and much better result (on totally different hardware).