[Yocto][BT] Yocto SDK, how to configure the Bluetooth MAC address of the MT7921 to a fixed MAC address?

Our portable recorder project is developed based on the Yocto SDK, utilizing the MT7921 module. We found that each device has the same Bluetooth MAC address. How can we configure the Bluetooth MAC address of the MT7921 module within the Yocto SDK? Please specify whether it can be done via command or by modifying a specific file in the Yocto SDK to set the Bluetooth MAC address.

Repeat the steps:

  1. Boot multiple devices, then use the hciconfig command to check the Bluetooth MAC address of the MT7921 module.

You mentioned that you are using the MT7921 module, rather than self-manufacturing COB Bluetooth & Wi-Fi modules.

Therefore, the modules provided by the MT7921 manufacturer should have their Bluetooth MAC addresses pre-programmed.

Bluetooth MAC addresses are not something that can be randomly assigned; they require purchasing. As we understand, once the module manufacturer produces the modules, they should have the Bluetooth addresses already programmed.

Currently, we need your side to verify the source of the modules. If the modules provided by the manufacturer do not have the Bluetooth addresses pre-written, then this issue should be addressed with the module manufacturer to reprogram the addresses.

Sorry, the description of the problem is not professional. Our MT7921 is a custom-made COB module for BT & WiFi.

If that’s the case, then the efuse on the current platform should be empty.

The efuse content, including BT & WiFi addresses, TX power, and RF calibration parameters,
all need to be written using the wifitest tool.

This tool is integrated by default in Android OS, but on Yocto, it is uncertain whether such a tool is readily available.
You may need to create a separate ticket to ask WiFi how to write efuse and WiFi MAC.

For BT, it depends on the WiFi tool to write the MAC address.
Moreover, the RF calibration parameters and other important settings should be tested and confirmed by you beforehand,
and then written to the efuse via the WiFi tool.