]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
wifi: rtw89: 8922a: set random mac if efuse contains zeroes
authorJose Ignacio Tornos Martinez <jtornosm@redhat.com>
Wed, 26 Nov 2025 09:18:56 +0000 (10:18 +0100)
committerPing-Ke Shih <pkshih@realtek.com>
Tue, 23 Dec 2025 03:42:38 +0000 (11:42 +0800)
commit41be33d3efc120f6a2c02d12742655f2aa09e1b6
tree957425f7129a2c12fec31e76bb39fd9d6bc1a5dc
parent77653c327e11c71c5363b18a53fbf2b92ed21da4
wifi: rtw89: 8922a: set random mac if efuse contains zeroes

I have some rtl8922ae devices with no permanent mac stored in efuse.

It could be properly saved and/or configured from user tools like
NetworkManager, but it would be desirable to be able to initialize it
somehow to get the device working by default.

So, in the same way as with other devices, if the mac address read from
efuse contains zeros, a random mac address is assigned to at least allow
operation, and the user is warned about this in case any action needs to
be considered.

Signed-off-by: Jose Ignacio Tornos Martinez <jtornosm@redhat.com>
Acked-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Link: https://patch.msgid.link/20251126091905.217951-1-jtornosm@redhat.com
drivers/net/wireless/realtek/rtw89/rtw8922a.c