Include connected time in AP mode STA-* commands
This allows hostapd_cli and wpa_cli all_sta command to be used to display connected time (in seconds) of each station in AP mode. Signed-hostap: Raja Mani <rmani@qca.qualcomm.com>
This commit is contained in:
parent
213c1fa84d
commit
39b1572c41
4 changed files with 34 additions and 2 deletions
|
@ -99,8 +99,10 @@ void ieee802_1x_set_sta_authorized(struct hostapd_data *hapd,
|
|||
"driver (errno=%d).\n", MAC2STR(sta->addr), errno);
|
||||
}
|
||||
|
||||
if (authorized)
|
||||
if (authorized) {
|
||||
os_get_time(&sta->connected_time);
|
||||
accounting_sta_start(hapd, sta);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue