if (tb_sta[NL80211_STA_INFO_SIGNAL_AVG])
signal = (int8_t) nla_get_u8(tb_sta[NL80211_STA_INFO_SIGNAL_AVG]);
+
+ if (tb_sta[NL80211_STA_INFO_CONNECTED_TIME])
+ si->connected_since = current_time - (nla_get_u32(tb_sta[NL80211_STA_INFO_CONNECTED_TIME]) * 1000);
usteer_sta_info_update(si, signal, true);
{
si->connected = STA_NOT_CONNECTED;
si->kick_time = 0;
+ si->connected_since = 0;
usteer_sta_info_update_timeout(si, config.local_sta_timeout);
}
blobmsg_add_u32(&b, "signal", si->signal);
blobmsg_add_u64(&b, "created", si->created);
blobmsg_add_u64(&b, "seen", si->seen);
+ blobmsg_add_u64(&b, "connected_since", si->connected_since);
blobmsg_add_u64(&b, "last_connected", si->last_connected);
t = blobmsg_open_table(&b, "snr-kick");
struct sta_info_stats stats[__EVENT_TYPE_MAX];
uint64_t created;
uint64_t seen;
+
+ uint64_t connected_since;
uint64_t last_connected;
+
int signal;
uint8_t rrm;