wifi: rtw89: introduce fw feature group and redefine CRASH_TRIGGER
authorZong-Zhe Yang <kevin_yang@realtek.com>
Thu, 10 Jul 2025 04:24:17 +0000 (12:24 +0800)
committerPing-Ke Shih <pkshih@realtek.com>
Tue, 15 Jul 2025 01:33:03 +0000 (09:33 +0800)
commit5693bdd58de48bc91831d8d2e60f78595205c6eb
tree4622ccb4aaacca0c613dcd988fdb8d0e8b461083
parent65093fab65cb79d6ae6abaefc5ebe0427cbd1c5a
wifi: rtw89: introduce fw feature group and redefine CRASH_TRIGGER

Some FW features may have variants on how to deal with in leaf functions,
e.g. H2C commands. However, from SW component point of view, it might not
matter which variant is supported exactly. In some cases, SW component may
just care whether any of the variants is supported or not.

So, introduce a concept of FW feature group which can manage a set of FW
features and can easily be checked if at least one of them is supported.

Since CRASH_TRIGGER will have variants and then matches the case mentioned
above, so redefine CRASH_TRIGGER as a FW feature group and add a variant
of type 0 for original handling.

Signed-off-by: Zong-Zhe Yang <kevin_yang@realtek.com>
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Link: https://patch.msgid.link/20250710042423.73617-9-pkshih@realtek.com
drivers/net/wireless/realtek/rtw89/core.h
drivers/net/wireless/realtek/rtw89/debug.c
drivers/net/wireless/realtek/rtw89/fw.c