]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
wifi: rtw89: phy: skip trailing 8-byte zeros of PHY status IE for RTL8922D
authorPing-Ke Shih <pkshih@realtek.com>
Wed, 6 May 2026 13:09:58 +0000 (21:09 +0800)
committerPing-Ke Shih <pkshih@realtek.com>
Wed, 13 May 2026 03:42:01 +0000 (11:42 +0800)
commit48402f736f93e6377ee47984d9dd2aa1b6815604
treed232a912ad0a46dd333d5cbfd1847cbcb34c2ebd
parent884495c39de1a02f42bd40051b921e2311d6ac91
wifi: rtw89: phy: skip trailing 8-byte zeros of PHY status IE for RTL8922D

Hardware reports a list of PHY status IE. In monitor mode, IE-09 of
PHY status is enabled, and the report contains trailing 8-byte zeros,
causing failed to parse and drop all IE information.

The 8 zeros are recognize as IE type 0, but length of type 0 must be
not 8 (reference to rtw89_phy_gen_def::physt_ie_len[0]).
Check and skip them.

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