Search Linux Wireless

Re: [BUG] mt7921e: Missing PCI ID 14c3:7902 for AzureWave device [1a3b:6040]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Alex,

Thanks for the quick reply, and for checking the driver source code ..
I'm not an expert here either so I'll keep this posted in case
something was overlooked.

So based on the specific device tables in pci.c and usb.c, to me it
looks like there is missing entry for the `14c3:7902` device ID in the
`mt7921_pci_device_table` array within pci.c.
Based on the existing entries in that table, would the correct fix
likely involve adding a line similar to this?

```
{ PCI_DEVICE(PCI_VENDOR_ID_MEDIATEK, 0x7902), .driver_data =
(kernel_ulong_t)MT7921_FIRMWARE_WM },
```

(Assuming the MT7921 firmware/driver data is appropriate for the 7902
device ID, similar to the 7961 ID also listed).
Let me know if there's any further information I can provide or if
there might be a patch to test in the future.

Regards,
Nick Popovic

On Fri, Apr 18, 2025 at 4:37 PM Alex Gavin <alex.gavin@xxxxxxxxxxxxxxx> wrote:
>
> On 2025-04-18 1:18 p.m., Nicholas Popovic wrote:
> > Hello Linux Wireless developers,
> >
> > This is my first time sending a bug and I did my best to follow best
> > practices - please advise in the event that I haven't.
> >
> > -----------------------
> > Issue Description
> > -----------------------
> > I have a WiFi card based on the MediaTek MT7921 (Device ID 7902)
> > chipset which is not being recognized by the `mt7921e` driver on
> > recent Arch Linux kernels.
> >
> > **Hardware Information:**
> >
> > Output of `lspci -nnk -d 14c3:7902`:
> >
> > 08:00.0 Network controller [0280]: MEDIATEK Corp. Device [14c3:7902]
> >          Subsystem: AzureWave Device [1a3b:6040]
> >          Kernel modules: mt7921e
>
> Reaching out to point you towards a couple areas of the mt7921e driver
> which show supported devices, in case you were not already aware.
>
> PCIe devices are located here [1] and USB devices here [2].
> In neither case do I see the AzureWave vendor ID matching your
> radio.
>
> I'm not an expert here, though, so I may be mistaken.
>
> > (Note: `lspci -k` shows no "Kernel driver in use" for this device).
> >
> > **System Information:**
> >
> > * Distribution: Arch Linux (kept up-to-date with `pacman -Syu`)
> > * Kernels Tested (where issue occurs):
> >      * `6.14.2-arch1-1` (Standard Arch kernel)
> >      * `6.12.23-1-lts` (Arch LTS kernel)
> >
> > **Problem Description:**
> >
> > The WiFi card is detected by `lspci`, but no driver is automatically
> > loaded. The `mt7921e` module exists on the system, but does not appear
> > to claim the device, likely due to a missing PCI ID alias.
> >
> > **Diagnostics:**
> >
> > 1.  `lspci -k` output for the device shows no "Kernel driver in use".
> > 2.  Checking the module information on both tested kernels confirms
> > the specific PCI ID is missing from the aliases:
> >      ```bash
> >      # modinfo mt7921e | grep 7902
> >      (This command returns no output)
> >      ```
> > 3.  `ip link` does not show any `wlanX` interface.
> > 4.  Manually loading the module (`sudo modprobe mt7921e`) does not
> > result in the interface appearing, and `dmesg` shows no specific
> > errors or probing messages from `mt7921e` related to this device
> > (08:00.0).
> > 5.  A search of a local kernel git repository log (using `git log
> > -S'7902' -- drivers/net/wireless/mediatek/mt76/mt7921/` and `--grep`)
> > did not reveal any obvious commits adding support for this specific
> > PCI ID (`14c3:7902`).
> >
> > **Expected Behavior:**
> >
> > The `mt7921e` driver should recognize the `14c3:7902` PCI ID (with
> > subsystem `1a3b:6040`), bind to the device, and create a functional
> > `wlanX` network interface.
> >
> > Could support for this specific PCI ID (`14c3:7902`, Subsystem
> > `1a3b:6040`) be added to the `mt7921e` driver? Please let me know if
> > any further information or testing is required.
> >
> > Thank you for your time and work on the Linux kernel.
> >
> > Best regards,
> > Nick Popovic
> >
> [1] https://github.com/torvalds/linux/blob/84aca3ca6a42dade09d05a541c8aaab5ea228087/drivers/net/wireless/mediatek/mt76/mt7921/pci.c#L16
> [2] https://github.com/torvalds/linux/blob/84aca3ca6a42dade09d05a541c8aaab5ea228087/drivers/net/wireless/mediatek/mt76/mt7921/usb.c#L15





[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Wireless Regulations]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux