mirror of
https://github.com/Telecominfraproject/wlan-ap.git
synced 2025-11-01 19:07:47 +00:00
If a client "disappears" from wireless, spotfilter eventually wipes their state data before the accounting removal occurs. Thus in radius_acct(), the ubus call returns empty and no RADIUS accounting Stop frame is sent in this condition, leaving a dangling accounting for the client. This commit solves this issue by maintaining a local copy of the most recent accounting data and sending that when the live data is no longer available. Signed-off-by: Thibaut VARÈNE <hacks@slashdirt.org>