]> git.ipfire.org Git - thirdparty/hostap.git/commit
AP: Use monotonic time for STA accounting
authorJohannes Berg <johannes.berg@intel.com>
Mon, 16 Dec 2013 20:08:22 +0000 (21:08 +0100)
committerJouni Malinen <j@w1.fi>
Tue, 24 Dec 2013 04:57:53 +0000 (06:57 +0200)
commit0fc545aee559a515ddfac445e36bc1bab3544252
tree4372b7331f335a04061ce701979668470bf32b28
parent3e06180fe0f47e0263bb1fb8ba97174f26802e52
AP: Use monotonic time for STA accounting

For type-safety, make sta->acct_session_start a struct os_reltime
and then use monotonic time for accounting. For RADIUS reporting,
continue to use wall clock time as specified by RFC 2869, but for
the session time use monotonic time.

Interestingly, RFC 2869 doesn't specify a timezone, so the value
is somewhat arbitrary.

Signed-hostap: Johannes Berg <johannes.berg@intel.com>
src/ap/accounting.c
src/ap/ieee802_1x.c
src/ap/sta_info.h