JetPack 5.x Wifi drivers in kernel


As we are “stuck” with kernel 5.10 for the time being and a custom recompile is hard to maintain, how can we get the most used wifi drivers included/backported?

In the previous JetPack we had those realtek drivers included in the nvidia-l4t-kernel package:

jetson@jetson:~$ ls /lib/modules/4.9.253-tegra/kernel/drivers/net/wireless/realtek/
rtl818x  rtl8812au  rtl8814au  rtl8821au  rtl8821cu  rtl8822bu  rtl8822ce  rtl8xxxu  rtlwifi

Now we only have those:

jetson@jetson:~$ ls /lib/modules/5.10.104-tegra/kernel/drivers/net/wireless/realtek/
rtl818x  rtl8822ce  rtl8xxxu  rtlwifi

More to this, we now want to use another (newer) Wifi 6E card, using the MediaTek mt7921u, which has the driver merged on mainline kernel 5.12 (USB support in 5.18 and AP mode in 5.19), so we need a backported version.

Looking online, I found that OpenWRT 22.03.x did that already for kernel 5.10, so should be rather easy to include into tegra-kernel, I see the version of mt76 driver included in JetPack is older.

How can we compile this as a module? I think this would benefit the whole community.

I have tried and to some extent succeeded to compile the driver on 5.10.

BUT: to contribute it back to the open source community and especially to L4T users, how should we do it?

Also, can we maybe include/use/integrate backports project? Documentation - Driver Backports Wiki