AP: Use monotonic time for STA connected time
Connected time is relative, so should be using monotonic time rather than time of day. Signed-hostap: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
parent
ed0ebee14f
commit
b3493fa110
4 changed files with 5 additions and 6 deletions
|
@ -102,7 +102,7 @@ void ieee802_1x_set_sta_authorized(struct hostapd_data *hapd,
|
|||
}
|
||||
|
||||
if (authorized) {
|
||||
os_get_time(&sta->connected_time);
|
||||
os_get_reltime(&sta->connected_time);
|
||||
accounting_sta_start(hapd, sta);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue