El día miércoles, marzo 27, 2024 a las 03:51:33p. m. +0100, Matthias Apitz 
escribió:

> The WLAN card seems to be:
> 
> none2@pci0:1:0:0:       class=0x028000 rev=0x00 hdr=0x00 vendor=0x14c3 
> device=0x7961 subvendor=0x1a3b subdevice=0x4680
>     vendor     = 'MEDIATEK Corp.'
>     device     = 'MT7921 802.11ax PCI Express Wireless Network Adapter'
>     class      = network
> 
> Perhaps not supported until today:
> https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=264300

While grepping through /usr/src I found the driver in 
/usr/src/sys/contrib/dev/mediatek/mt76/mt7921/ and a make && make
install in 

# cd /usr/src/sys/modules/mt76
# make
..
# make install
===> core (install)
install -T release -o root -g wheel -m 555   mt76_core.ko /boot/modules/
kldxref /boot/modules
===> mt7915 (install)
install -T release -o root -g wheel -m 555   if_mt7915.ko /boot/modules/
kldxref /boot/modules
===> mt7921 (install)
install -T release -o root -g wheel -m 555   if_mt7921.ko /boot/modules/
kldxref /boot/modules

installs it fine. There is also a manpage in /usr/src/share/man/man4/mt7921.4
(attached)

I still have to build the firmware from ports/net/wifi-firmware-mt76-kmod.

        matthias

-- 
Matthias Apitz, ✉ g...@unixarea.de, http://www.unixarea.de/ +49-176-38902045
Public GnuPG key: http://www.unixarea.de/key.pub
MT7921(4)              FreeBSD Kernel Interfaces Manual              MT7921(4)

NAME
     mt7921 – MediaTek IEEE 802.11ax wireless network driver

SYNOPSIS
     The driver will auto-load without any user interaction using devmatch(8)
     if enabled in rc.conf(5).

     Only if auto-loading is explicitly disabled, place the following lines in
     rc.conf(5) to manually load the driver as a module at boot time:

           kld_list="${kld_list} if_mt7921"

     The driver should automatically load any firmware needed for the
     particular chipset.

     It is discouraged to load the driver from loader(8).

DESCRIPTION
     The mt7921 driver is derived from MediaTek's Linux mt76 driver and
     provides support for the following chipsets:

           MediaTek MT7921E (PCIe)

     This driver requires firmware to be loaded before it will work.  The
     package wifi-firmware-mt76-kmod from the
     ports/net/wifi-firmware-mt76-kmod port needs to be installed before the
     driver is loaded.  Otherwise no wlan(4) interface can be created using
     ifconfig(8).

     The driver uses the linuxkpi_wlan and linuxkpi compat framework to bridge
     between the Linux and native FreeBSD driver code as well as to the native
     net80211(4) wireless stack.

     While mt7921 supports all 802.11 a/b/g/n/ac and ax the compatibility code
     currently only supports 802.11 a/b/g modes.  Support for 802.11 n/ac is
     to come.

BUGS
     Certainly.

SEE ALSO
     wlan(4), ifconfig(8), wpa_supplicant(8)

HISTORY
     The mt7921 driver first appeared in FreeBSD 14.0.

FreeBSD 14.0-CURRENT            April 18, 2023            FreeBSD 14.0-CURRENT

Reply via email to