wifi: mac80211: fix beacon interval calculation overflow
authorLachlan Hodges <lachlan.hodges@morsemicro.com>
Sat, 21 Jun 2025 12:32:09 +0000 (22:32 +1000)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 24 Jun 2025 07:04:55 +0000 (09:04 +0200)
commit7a3750ff0f2e8fee338a9c168f429f6c37f0e820
treeab2d067767a63c8b2ff6d4302bc515c252bf8272
parent0e7facea6da2bd360361440786785752aa5b0e30
wifi: mac80211: fix beacon interval calculation overflow

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>
net/mac80211/util.c