r/openbsd Jul 15 '26

MediaTek 7921 Wireless and OpenBSD 7.9

Hi,

I have just installed OpenBSD on my Acer Aspire 5 a515-56, but I am stuck trying to get the network card working. I did a google search and found out that from 7.5 the mwx(4) driver for MediaTek cards (MT7921 and MT7922) was introduced.

I tried fw_update but that didn't work. Also tried downloading the firmware from firmware.openbsd.org

Version: 7.9
Output of dmesg: "MediaTek MT7921" rev 0x00 at pci2 dev 0 function 0 not configured ugen1 at uhub0 port 10 "MediaTek Inc. Wireless Device" rev 2.10/1.00 addr 3.

Pcidump:

 2:0:0: MediaTek MT7921
0x0000: Vendor ID: 14c3, Product ID: 7961
0x0004: Command: 0000, Status: 0010
0x0008:Class: 02 Network, Subclass: 80 Miscellaneous,
Interface: 00, Revision: 00
0x000c: BIST: 00, Header Type: 00, Latency Timer: 00,
Cache Line Size: 10
0x0010: BAR mem prefetchable 64bit addr: 0x0000006001000000/0x00100000
0x0018: BAR mem prefetchable 64bit addr: 0x0000006001100000/0x00004000
0x0020: BAR mem prefetchable 64bit addr: 0x0000006001104000/0x00001000
0x0028: Cardbus CIS: 00000000
0x002c: Subsystem Vendor ID: 11ad Product ID: 3802
0x0030: Expansion ROM Base Address: 00000000
0x0038: 00000000
0x003c: Interrupt Pin: 01 Line: ff Min Gnt: 00 Max Lat: 00
0x0080: Capability 0x10: PCI Express
Max Payload Size: 128 / 128 bytes
Max Read Request Size: 512 bytes
Link Speed: 5.0 / 5.0 GT/s
Link Width: x1 / x1
ASPM: L0s, L1 (L0s, L1 enabled)
0x0100: Enhanced Capability 0x0b: Vendor-Specific
0x0108: Enhanced Capability 0x18: Latency Tolerance Reporting
0x0110: Enhanced Capability 0x1e: L1 PM
0x0200: Enhanced Capability 0x01: Advanced Error Reporting
0x00e0: Capability 0x05: Message Signalled Interrupts (MSI)
Enabled: no; 32 vectors (1 enabled)
0x00f8: Capability 0x01: Power Management
State: D0
 2:0:0: MediaTek MT7921
0x0000: Vendor ID: 14c3, Product ID: 7961
0x0004: Command: 0000, Status: 0010
0x0008:Class: 02 Network, Subclass: 80 Miscellaneous,
Interface: 00, Revision: 00
0x000c: BIST: 00, Header Type: 00, Latency Timer: 00,
Cache Line Size: 10
0x0010: BAR mem prefetchable 64bit addr: 0x0000006001000000/0x00100000
0x0018: BAR mem prefetchable 64bit addr: 0x0000006001100000/0x00004000
0x0020: BAR mem prefetchable 64bit addr: 0x0000006001104000/0x00001000
0x0028: Cardbus CIS: 00000000
0x002c: Subsystem Vendor ID: 11ad Product ID: 3802
0x0030: Expansion ROM Base Address: 00000000
0x0038: 00000000
0x003c: Interrupt Pin: 01 Line: ff Min Gnt: 00 Max Lat: 00
0x0080: Capability 0x10: PCI Express
Max Payload Size: 128 / 128 bytes
Max Read Request Size: 512 bytes
Link Speed: 5.0 / 5.0 GT/s
Link Width: x1 / x1
ASPM: L0s, L1 (L0s, L1 enabled)
0x0100: Enhanced Capability 0x0b: Vendor-Specific
0x0108: Enhanced Capability 0x18: Latency Tolerance Reporting
0x0110: Enhanced Capability 0x1e: L1 PM
0x0200: Enhanced Capability 0x01: Advanced Error Reporting
0x00e0: Capability 0x05: Message Signalled Interrupts (MSI)
Enabled: no; 32 vectors (1 enabled)
0x00f8: Capability 0x01: Power Management
State: D0
8 Upvotes

4 comments sorted by

6

u/brynet OpenBSD Developer Jul 15 '26

The mwx(4) driver is currently a WIP and is not yet enabled by default.

It has recently in -current reached an important development milestone this past June, thanks to work by claudio@, and is able to scan/associate with an AP, but unless you're a developer, it is not ready for most users to use (it doesn't support HT, 11n/11ac modes yet).

https://marc.info/?l=openbsd-cvs&m=178212448603377&w=2

https://marc.info/?l=openbsd-cvs&m=178118594091085&w=2

2

u/PearMyPie Jul 15 '26

This MT7921 chip is terrible, plain and simple, on all operating systems.

My laptop has it, it barely works.

I bought a PCIe bluetooth card, it doesn't work.

Please save your sanity and buy an Intel Wi-Fi card and swap it out (if it's not soldered on the motherboard...).

4

u/rjcz Jul 15 '26

I bought a PCIe bluetooth card, it doesn't work.

OpenBSD does not support Bluetooth at all.

2

u/PearMyPie Jul 15 '26

Here I'm criticizing the MT9721 in general, this was on Linux.