xref: /freebsd/share/man/man4/mt7921.4 (revision 93b30f1b6caec5083efacf3fb5049b72e75cc09e)
13c4ba5f5SBjoern A. Zeeb.\"-
2*93b30f1bSAlexander Ziaee.\" SPDX-License-Identifier: BSD-2-Clause
3*93b30f1bSAlexander Ziaee.\"
45dbb0b7cSBjoern A. Zeeb.\" Copyright (c) 2023-2024 Bjoern A. Zeeb
53c4ba5f5SBjoern A. Zeeb.\"
63c4ba5f5SBjoern A. Zeeb.\" Redistribution and use in source and binary forms, with or without
73c4ba5f5SBjoern A. Zeeb.\" modification, are permitted provided that the following conditions
83c4ba5f5SBjoern A. Zeeb.\" are met:
93c4ba5f5SBjoern A. Zeeb.\" 1. Redistributions of source code must retain the above copyright
103c4ba5f5SBjoern A. Zeeb.\"    notice, this list of conditions and the following disclaimer.
113c4ba5f5SBjoern A. Zeeb.\" 2. Redistributions in binary form must reproduce the above copyright
123c4ba5f5SBjoern A. Zeeb.\"    notice, this list of conditions and the following disclaimer in the
133c4ba5f5SBjoern A. Zeeb.\"    documentation and/or other materials provided with the distribution.
143c4ba5f5SBjoern A. Zeeb.\"
153c4ba5f5SBjoern A. Zeeb.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
163c4ba5f5SBjoern A. Zeeb.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
173c4ba5f5SBjoern A. Zeeb.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
183c4ba5f5SBjoern A. Zeeb.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
193c4ba5f5SBjoern A. Zeeb.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
203c4ba5f5SBjoern A. Zeeb.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
213c4ba5f5SBjoern A. Zeeb.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
223c4ba5f5SBjoern A. Zeeb.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
233c4ba5f5SBjoern A. Zeeb.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
243c4ba5f5SBjoern A. Zeeb.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
253c4ba5f5SBjoern A. Zeeb.\" SUCH DAMAGE.
263c4ba5f5SBjoern A. Zeeb.\"
27*93b30f1bSAlexander Ziaee.Dd November 10, 2024
283c4ba5f5SBjoern A. Zeeb.Dt MT7921 4
293c4ba5f5SBjoern A. Zeeb.Os
303c4ba5f5SBjoern A. Zeeb.Sh NAME
313c4ba5f5SBjoern A. Zeeb.Nm mt7921
323c4ba5f5SBjoern A. Zeeb.Nd MediaTek IEEE 802.11ax wireless network driver
333c4ba5f5SBjoern A. Zeeb.Sh SYNOPSIS
343c4ba5f5SBjoern A. ZeebThe driver will auto-load without any user interaction using
353c4ba5f5SBjoern A. Zeeb.Xr devmatch 8
363c4ba5f5SBjoern A. Zeebif enabled in
373c4ba5f5SBjoern A. Zeeb.Xr rc.conf 5 .
383c4ba5f5SBjoern A. Zeeb.Pp
393c4ba5f5SBjoern A. ZeebOnly if auto-loading is explicitly disabled, place the following
403c4ba5f5SBjoern A. Zeeblines in
413c4ba5f5SBjoern A. Zeeb.Xr rc.conf 5
423c4ba5f5SBjoern A. Zeebto manually load the driver as a module at boot time:
433c4ba5f5SBjoern A. Zeeb.Bd -literal -offset indent
443c4ba5f5SBjoern A. Zeebkld_list="${kld_list} if_mt7921"
453c4ba5f5SBjoern A. Zeeb.Ed
463c4ba5f5SBjoern A. Zeeb.Pp
473c4ba5f5SBjoern A. ZeebThe driver should automatically load any
483c4ba5f5SBjoern A. Zeebfirmware needed for the particular chipset.
493c4ba5f5SBjoern A. Zeeb.Pp
503c4ba5f5SBjoern A. ZeebIt is discouraged to load the driver from
513c4ba5f5SBjoern A. Zeeb.Xr loader 8 .
523c4ba5f5SBjoern A. Zeeb.Sh DESCRIPTION
533c4ba5f5SBjoern A. ZeebThe
543c4ba5f5SBjoern A. Zeeb.Nm
55*93b30f1bSAlexander Ziaeedriver provides support for MediaTek MT7921E wireless network devices.
56*93b30f1bSAlexander Ziaee.Nm
57*93b30f1bSAlexander Ziaeeis derived from MediaTek's Linux mt76 driver.
583c4ba5f5SBjoern A. Zeeb.Pp
593c4ba5f5SBjoern A. ZeebThis driver requires firmware to be loaded before it will work.
603c4ba5f5SBjoern A. ZeebThe package
613c4ba5f5SBjoern A. Zeeb.Pa wifi-firmware-mt76-kmod
623c4ba5f5SBjoern A. Zeebfrom the
633c4ba5f5SBjoern A. Zeeb.Pa ports/net/wifi-firmware-mt76-kmod
643c4ba5f5SBjoern A. Zeebport needs to be installed before the driver is loaded.
653c4ba5f5SBjoern A. ZeebOtherwise no
663c4ba5f5SBjoern A. Zeeb.Xr wlan 4
673c4ba5f5SBjoern A. Zeebinterface can be created using
683c4ba5f5SBjoern A. Zeeb.Xr ifconfig 8 .
69*93b30f1bSAlexander ZiaeeOne can use
70*93b30f1bSAlexander Ziaee.Xr fwget 8
71*93b30f1bSAlexander Ziaeeto install the correct firmware package.
723c4ba5f5SBjoern A. Zeeb.Pp
733c4ba5f5SBjoern A. ZeebThe driver uses the
743c4ba5f5SBjoern A. Zeeb.\" No LinuxKPI man pages so no .Xr here.
75*93b30f1bSAlexander Ziaee.Sy linuxkpi_wlan
763c4ba5f5SBjoern A. Zeeband
77*93b30f1bSAlexander Ziaee.Sy linuxkpi
783c4ba5f5SBjoern A. Zeebcompat framework to bridge between the Linux and
793c4ba5f5SBjoern A. Zeebnative
803c4ba5f5SBjoern A. Zeeb.Fx
813c4ba5f5SBjoern A. Zeebdriver code as well as to the native
823c4ba5f5SBjoern A. Zeeb.Xr net80211 4
833c4ba5f5SBjoern A. Zeebwireless stack.
845dbb0b7cSBjoern A. Zeeb.Sh HARDWARE
855dbb0b7cSBjoern A. ZeebThe
865dbb0b7cSBjoern A. Zeeb.Nm
875dbb0b7cSBjoern A. Zeebdriver supports PCIe devices with the following chipsets:
885dbb0b7cSBjoern A. Zeeb.Pp
89*93b30f1bSAlexander Ziaee.Bl -bullet -offset indent -compact
90*93b30f1bSAlexander Ziaee.It
91*93b30f1bSAlexander ZiaeeMediaTek MT7921E
925dbb0b7cSBjoern A. Zeeb.El
933c4ba5f5SBjoern A. Zeeb.Sh SEE ALSO
943c4ba5f5SBjoern A. Zeeb.Xr wlan 4 ,
95*93b30f1bSAlexander Ziaee.Xr networking 7 ,
96*93b30f1bSAlexander Ziaee.Xr fwget 8 ,
973c4ba5f5SBjoern A. Zeeb.Xr ifconfig 8 ,
983c4ba5f5SBjoern A. Zeeb.Xr wpa_supplicant 8
993c4ba5f5SBjoern A. Zeeb.Sh HISTORY
1003c4ba5f5SBjoern A. ZeebThe
1013c4ba5f5SBjoern A. Zeeb.Nm
1023c4ba5f5SBjoern A. Zeebdriver first appeared in
1033c4ba5f5SBjoern A. Zeeb.Fx 14.0 .
104*93b30f1bSAlexander Ziaee.Sh BUGS
105*93b30f1bSAlexander ZiaeeCertainly.
106*93b30f1bSAlexander Ziaee.Pp
107*93b30f1bSAlexander ZiaeeWhile
108*93b30f1bSAlexander Ziaee.Nm
109*93b30f1bSAlexander Ziaeesupports 802.11a/b/g/n/ac/ax modes,
110*93b30f1bSAlexander Ziaeethe compatibility code currently only supports 802.11a/b/g modes.
111*93b30f1bSAlexander ZiaeeSupport for 802.11n/ac/ax is to come.
112