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:
Johannes Berg 2013-11-25 21:56:04 +01:00 committed by Jouni Malinen
parent ed0ebee14f
commit b3493fa110
4 changed files with 5 additions and 6 deletions

View file

@ -1967,7 +1967,7 @@ void hostapd_new_assoc_sta(struct hostapd_data *hapd, struct sta_info *sta,
* IEEE 802.1X/WPA code will start accounting after the station has
* been authorized. */
if (!hapd->conf->ieee802_1x && !hapd->conf->wpa) {
os_get_time(&sta->connected_time);
os_get_reltime(&sta->connected_time);
accounting_sta_start(hapd, sta);
}