NAME
mwx – MediaTek IEEE 802.11a/ac/ax/b/g/n wireless network device
SYNOPSIS
mwx* at pci?
DESCRIPTION
The mwx driver provides support for MediaTek MT7920, MT7921, MT7922, and MT7925 WI-FI 6 and WI-FI 7 devices.
These are the modes the mwx driver can operate in:
- BSS mode
-
Also known as infrastructure mode, this is used when associating with an access point, through which all traffic passes. This mode is the default.
- monitor mode
-
In this mode the driver is able to receive packets without associating with an access point. This disables the internal receive filter and enables the card to capture packets from networks which it wouldn't normally have access to, or to scan for access points.
The mwx driver can be configured to use Wired Equivalent Privacy (WEP) or Wi-Fi Protected Access (WPA1 and WPA2). WPA2 is currently the most secure encryption standard for wireless networks supported by OpenBSD. It is strongly recommended that neither WEP nor WPA1 are used as the sole mechanism to secure wireless communication, due to serious weaknesses. WPA1 is disabled by default and may be enabled using the option "wpaprotos wpa1,wpa2". For standard WPA networks which use pre-shared keys (PSK), keys are configured using the "wpakey" option. WPA-Enterprise networks require use of the wpa_supplicant package. The mwx driver offloads both encryption and decryption of unicast data frames to the hardware for all ciphers.
In BSS mode the driver supports background scanning; see ifconfig(8).
The mwx driver can be configured at runtime with ifconfig(8) or on boot with hostname.if(5).
FILES
The driver needs the following firmware files, which are loaded when an interface is brought up:
- /etc/firmware/mwx-mt7922_patch_mcu_1_1_hdr
- /etc/firmware/mwx-mt7922_ram_code_1
- /etc/firmware/mwx-mt7925_patch_mcu_1_1_hdr
- /etc/firmware/mwx-mt7925_ram_code_1_1
- /etc/firmware/mwx-mt7961_patch_mcu_1_2_hdr
- /etc/firmware/mwx-mt7961_patch_mcu_1a_2_hdr
- /etc/firmware/mwx-mt7961_ram_code_1
- /etc/firmware/mwx-mt7961_ram_code_1a
A prepackaged version of the firmware can be installed using fw_update(8).
EXAMPLES
The following example scans for available networks:
# ifconfig mwx0 scan
The following hostname.if(5) example configures mwx0 to join network “mynwid”, using WPA key “mywpakey”, obtaining an IP address using DHCP:
join mynwid wpakey mywpakey inet autoconf
SEE ALSO
arp(4), ifmedia(4), intro(4), netintro(4), pci(4), hostname.if(5), ifconfig(8)
HISTORY
The mwx driver first appeared in OpenBSD 8.1.
AUTHORS
The mwx driver was written by Claudio Jeker ⟨[email protected]⟩.
CAVEATS
The mwx driver does not support any of the 802.11n, 802.11ac and 802.11ax capabilities offered by the hardware.