OpenWRT Boot Times Affected by WiFi: Difference between revisions

mNo edit summary
mNo edit summary
Line 89: Line 89:
(57240 - 71000 @ 2160), (40)
(57240 - 71000 @ 2160), (40)
</syntaxhighlight>See?  Now change it back to be legal.
</syntaxhighlight>See?  Now change it back to be legal.
== OpenWrt 25.12.5 USB WiFi and Bluetooth Notes ==
=== MediaTek MT7921AU / USB ID 0e8d:7961 ===
The adapter works with OpenWrt 25.12.5 using:
<pre> apk add kmod-mt7921u </pre>
This installs the required MT76 driver, USB support, common modules and firmware.
Working driver chain:
<pre> mt7921u mt7921_common mt792x_usb mt792x_lib mt76_usb mt76_connac_lib mt76 </pre>
Firmware files:
<pre> /lib/firmware/mediatek/WIFI_MT7961_patch_mcu_1_2_hdr.bin /lib/firmware/mediatek/WIFI_RAM_CODE_MT7961_1.bin </pre>
Successful initialization looks similar to:
<pre> mt7921u 1-1.4:1.0: HW/SW Version: 0x8a108a10 mt7921u 1-1.4:1.0: WM Firmware Version: ____010000 </pre>
The adapter works as an 802.11ax Access Point on both 2.4 GHz and 5 GHz.
=== 6 GHz / NO-IR Problem ===
The MT7921AU reports 6 GHz AP capability, but all 6 GHz channels are marked:
<pre> (no IR) </pre>
NO-IR means ''No Initiating Radiation''. This prevents the radio from starting an Access Point on those channels.
For the United States regulatory domain, OpenWrt's regulatory database contains:
<pre> (5925 - 7125 @ 320), (12), NO-OUTDOOR, NO-IR </pre>
This can be tested by building a modified regulatory database with only NO-IR removed:
<pre> (5925 - 7125 @ 320), (12), NO-OUTDOOR </pre>
Use the same regulatory database version installed by OpenWrt. For OpenWrt 25.12.5 tested here:
<pre> wireless-regdb-2026.05.30 </pre>
Edit the human-readable source:
<pre> nano db.txt </pre>
Then build the binary database:
<pre> python3 ./db2fw.py regulatory.db db.txt </pre>
''regulatory.db is a compiled binary and should not be edited directly.''
Copy the resulting file to:
<pre> /lib/firmware/regulatory.db </pre>
A fixed 6 GHz channel should be used while testing rather than Auto.
=== Realtek Bluetooth / USB ID 0bda:8771 ===
The existing OpenWrt image already contained the required Bluetooth drivers:
<pre> btusb btrtl bluetooth </pre>
Only the RTL8761BU firmware was missing:
<pre> apk add rtl8761bu-firmware </pre>
After reboot, successful firmware loading was confirmed:
<pre> Bluetooth: hci0: RTL: loading rtl_bt/rtl8761bu_fw.bin Bluetooth: hci0: RTL: loading rtl_bt/rtl8761bu_config.bin Bluetooth: hci0: RTL: cfg_sz 6, total sz 30210 Bluetooth: hci0: RTL: fw version 0xdfc6d922 </pre>
Useful verification command:
<pre> dmesg | grep -iE 'hci0|rtl8761|btrtl' </pre>
=== Useful Hardware Identification Commands ===
<pre> lsusb lsusb -t lsmod | grep -E 'mt7921|mt792x|mt76|btusb|btrtl|bluetooth' iw dev iw phy iw reg get wifi status </pre>