]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
wifi: mac80211: fix beacon interval calculation overflow
authorLachlan Hodges <lachlan.hodges@morsemicro.com>
Sat, 21 Jun 2025 12:32:09 +0000 (22:32 +1000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 10 Jul 2025 13:57:38 +0000 (15:57 +0200)
commit2afcde1b3676fd45d7d548a19f110b7b92651273
treea50acab761404dfbc22e0a396ca8407cf3fc24f8
parent1197abb1ee3bb518709cdaa0c6b45ecb8d06d7d9
wifi: mac80211: fix beacon interval calculation overflow

[ Upstream commit 7a3750ff0f2e8fee338a9c168f429f6c37f0e820 ]

As we are converting from TU to usecs, a beacon interval of
100*1024 usecs will lead to integer wrapping. To fix change
to use a u32.

Fixes: 057d5f4ba1e4 ("mac80211: sync dtim_count to TSF")
Signed-off-by: Lachlan Hodges <lachlan.hodges@morsemicro.com>
Link: https://patch.msgid.link/20250621123209.511796-1-lachlan.hodges@morsemicro.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/mac80211/util.c