Commit 7a3750f
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: 057d5f4 ("mac80211: sync dtim_count to TSF")
Signed-off-by: Lachlan Hodges <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Johannes Berg <[email protected]>1 parent 0e7face commit 7a3750f
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3884 | 3884 | | |
3885 | 3885 | | |
3886 | 3886 | | |
3887 | | - | |
| 3887 | + | |
3888 | 3888 | | |
3889 | 3889 | | |
3890 | 3890 | | |
| |||
0 commit comments