]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
wifi: rtw89: add debugfs entry of monitor mode options to capture HE-MU packets
authorPing-Ke Shih <pkshih@realtek.com>
Wed, 6 May 2026 13:09:56 +0000 (21:09 +0800)
committerPing-Ke Shih <pkshih@realtek.com>
Wed, 13 May 2026 03:40:29 +0000 (11:40 +0800)
commitcd92d278c1864852cb4840c5e51c1cd0eaa60e85
tree039e1ece1898d8cfbb4ebb9f5dfdcd62c0bab1c4
parent41d78f3f35961ca533cff5bbc159e7fb3c32e3df
wifi: rtw89: add debugfs entry of monitor mode options to capture HE-MU packets

To capture HE-MU packets, set BSS color and AID for specific connected
station.

The writing format: <bss color> <aid>
For example,
  $ echo 0x4 0x16 > monitor_opts

Read this entry to get current setting:
  bss_color=0x4 aid=0x16

By the way, add another sec2() function to create debugfs entries to
prevent running smatch timeout.

Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Link: https://patch.msgid.link/20260506131000.1706298-11-pkshih@realtek.com
drivers/net/wireless/realtek/rtw89/debug.c
drivers/net/wireless/realtek/rtw89/phy.c
drivers/net/wireless/realtek/rtw89/phy.h