1.\"- 2.\" SPDX-License-Identifier: BSD-2-Clause 3.\" 4.\" Copyright (c) 2023-2024 Bjoern A. Zeeb 5.\" 6.\" Redistribution and use in source and binary forms, with or without 7.\" modification, are permitted provided that the following conditions 8.\" are met: 9.\" 1. Redistributions of source code must retain the above copyright 10.\" notice, this list of conditions and the following disclaimer. 11.\" 2. Redistributions in binary form must reproduce the above copyright 12.\" notice, this list of conditions and the following disclaimer in the 13.\" documentation and/or other materials provided with the distribution. 14.\" 15.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 16.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 17.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 18.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 19.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 20.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 21.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25.\" SUCH DAMAGE. 26.\" 27.Dd November 10, 2024 28.Dt MT7921 4 29.Os 30.Sh NAME 31.Nm mt7921 32.Nd MediaTek IEEE 802.11ax wireless network driver 33.Sh SYNOPSIS 34The driver will auto-load without any user interaction using 35.Xr devmatch 8 36if enabled in 37.Xr rc.conf 5 . 38.Pp 39Only if auto-loading is explicitly disabled, place the following 40lines in 41.Xr rc.conf 5 42to manually load the driver as a module at boot time: 43.Bd -literal -offset indent 44kld_list="${kld_list} if_mt7921" 45.Ed 46.Pp 47The driver should automatically load any 48firmware needed for the particular chipset. 49.Pp 50It is discouraged to load the driver from 51.Xr loader 8 . 52.Sh DESCRIPTION 53The 54.Nm 55driver provides support for MediaTek MT7921E wireless network devices. 56.Nm 57is derived from MediaTek's Linux mt76 driver. 58.Pp 59This driver requires firmware to be loaded before it will work. 60The package 61.Pa wifi-firmware-mt76-kmod 62from the 63.Pa ports/net/wifi-firmware-mt76-kmod 64port needs to be installed before the driver is loaded. 65Otherwise no 66.Xr wlan 4 67interface can be created using 68.Xr ifconfig 8 . 69One can use 70.Xr fwget 8 71to install the correct firmware package. 72.Pp 73The driver uses the 74.\" No LinuxKPI man pages so no .Xr here. 75.Sy linuxkpi_wlan 76and 77.Sy linuxkpi 78compat framework to bridge between the Linux and 79native 80.Fx 81driver code as well as to the native 82.Xr net80211 4 83wireless stack. 84.Sh HARDWARE 85The 86.Nm 87driver supports PCIe devices with the following chipsets: 88.Pp 89.Bl -bullet -offset indent -compact 90.It 91MediaTek MT7921E 92.El 93.Sh SEE ALSO 94.Xr wlan 4 , 95.Xr networking 7 , 96.Xr fwget 8 , 97.Xr ifconfig 8 , 98.Xr wpa_supplicant 8 99.Sh HISTORY 100The 101.Nm 102driver first appeared in 103.Fx 14.0 . 104.Sh BUGS 105Certainly. 106.Pp 107While 108.Nm 109supports 802.11a/b/g/n/ac/ax modes, 110the compatibility code currently only supports 802.11a/b/g modes. 111Support for 802.11n/ac/ax is to come. 112