]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
wifi: rtw89: fix potential zero beacon interval in beacon tracking
authorKuan-Chung Chen <damon.chen@realtek.com>
Wed, 31 Dec 2025 09:06:46 +0000 (17:06 +0800)
committerPing-Ke Shih <pkshih@realtek.com>
Wed, 7 Jan 2026 07:53:03 +0000 (15:53 +0800)
commiteb57be32f438c57c88d6ce756101c1dfbcc03bba
treeba8b3b373e6b91203ba485099327b83d4d239081
parentcd7ce83ff6da0d9a760230f5dbf0c3148c534133
wifi: rtw89: fix potential zero beacon interval in beacon tracking

During fuzz testing, it was discovered that bss_conf->beacon_int
might be zero, which could result in a division by zero error in
subsequent calculations. Set a default value of 100 TU if the
interval is zero to ensure stability.

Signed-off-by: Kuan-Chung Chen <damon.chen@realtek.com>
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Link: https://patch.msgid.link/20251231090647.56407-11-pkshih@realtek.com
drivers/net/wireless/realtek/rtw89/core.c