[PATCH] Don't let cac_time_left_seconds overflow

Jouni Malinen j at w1.fi
Sat Mar 12 09:05:08 PST 2022

On Tue, Mar 08, 2022 at 11:22:18AM +0100, Nicolas Escande wrote:
> There can be some discrepancy between the theorical dfs cac end (as
> computed with the cac duration and cac start) and the actual cac end as
> reported by the driver. During that window, the value of remaining time
> outputed by the status command on the socket control interface will
> display an overflowed, invalid value.
> To mitigate this lets compute the remaining time as signed and display
> it only when positive, otherwise defaulting it to 0.

Thanks, applied.
Jouni Malinen                                            PGP id EFC895FA

More information about the Hostap mailing list