[PATCH] Fix BSS age underflow

Jouni Malinen j at w1.fi
Wed Feb 1 08:56:35 PST 2023


On Tue, Jan 10, 2023 at 01:39:10AM +0530, chaitanya.mgit at gmail.com wrote:
> While checking for stale BSSes, the current time is used as a basis and
> then based on age the stale check time is calculated, but if this is
> done too early in the boot and if either BOOTTIME/MONOTONIC (the one
> Zephyr uses by default) are used then the stale check time underflows
> and goes to future causing active BSS entries in the scan to be treated
> as stale and flushed.
> 
> Fix this by adding a check before calculating stale time and ignore this
> check till the system reaches the BSS expiration time (this would never
> happen with REALTIME clock).

Thanks, applied.
 
-- 
Jouni Malinen                                            PGP id EFC895FA



More information about the Hostap mailing list