mirror of
https://github.com/openwrt/openwrt.git
synced 2026-11-28 16:41:08 +04:00
ieee80211_tu_to_usec() wraps on a 32-bit system above 4194303 TU. The delay of an AP removal (Beacon interval times AP Removal Timer) and the CSA timeout of a station (Beacon interval times Channel Switch Count) can both exceed that, so the link removal or the channel switch then runs early. Convert both delays to ktime in 64 bits. Signed-off-by: Felix Fietkau <nbd@nbd.name>