]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
wifi: rtw89: fw: parse firmware element of DIAG_MAC
authorPing-Ke Shih <pkshih@realtek.com>
Tue, 11 Nov 2025 02:24:46 +0000 (10:24 +0800)
committerPing-Ke Shih <pkshih@realtek.com>
Thu, 13 Nov 2025 01:34:39 +0000 (09:34 +0800)
commitde19cc7def5a9c646264a1e7a2a183a3baad112f
treea0d5a70d63fb4e659c316d227a2f4145bb9293d8
parentdae8d7d63b740d8f5972b8438b139a6488e0f9fa
wifi: rtw89: fw: parse firmware element of DIAG_MAC

The firmware element ID 28 is a set of rules to diagnose if MAC get
abnormal. The latter patch will use these rules via debugfs to know
the status.

The element contains rules with their textual messages shown as below:

   +------------------------------------+
   |                                    |
   |                +-----------+       |
   |                | rule_size |-------|----------+
   +----------------+-----------+-------+ --       |
   |             rule[0]                |   \      |
   |             rule[1]                |   |  <---+
   |                :                   |   /
   +------------------------------------+ --
   | msg[0]      msg[1]                 |  each msg has variable length
   |        msg[2]    msg[3] ...        |  (with address align 2)
   | ...                                |
   +------------------------------------+

Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Link: https://patch.msgid.link/20251111022452.28093-3-pkshih@realtek.com
drivers/net/wireless/realtek/rtw89/core.h
drivers/net/wireless/realtek/rtw89/fw.c
drivers/net/wireless/realtek/rtw89/fw.h