uint8_t is_wme:1;
uint8_t is_mfp:1;
uint8_t is_tdls:1;
+ uint32_t thr;
};
struct iwinfo_txpwrlist_entry {
e->rx_packets
);
- printf(" TX: %-38s %8d Pkts.\n\n",
+ printf(" TX: %-38s %8d Pkts.\n",
format_assocrate(&e->tx_rate),
e->tx_packets
);
+
+ printf(" expected throughput: %s\n\n",
+ format_rate(e->thr));
}
}
set_rateinfo(L, &e->rx_rate, true);
set_rateinfo(L, &e->tx_rate, false);
+ if (e->thr) {
+ lua_pushnumber(L, e->thr);
+ lua_setfield(L, -2, "expected_throughput");
+ }
+
lua_setfield(L, -2, macstr);
}
}
[NL80211_STA_INFO_T_OFFSET] = { .type = NLA_U64 },
[NL80211_STA_INFO_STA_FLAGS] =
{ .minlen = sizeof(struct nl80211_sta_flag_update) },
+ [NL80211_STA_INFO_EXPECTED_THROUGHPUT] = { .type = NLA_U32 },
};
static struct nla_policy rate_policy[NL80211_RATE_INFO_MAX + 1] = {
if (sinfo[NL80211_STA_INFO_T_OFFSET])
e->t_offset = nla_get_u64(sinfo[NL80211_STA_INFO_T_OFFSET]);
+ if (sinfo[NL80211_STA_INFO_EXPECTED_THROUGHPUT])
+ e->thr = nla_get_u32(sinfo[NL80211_STA_INFO_EXPECTED_THROUGHPUT]);
+
/* Station flags */
if (sinfo[NL80211_STA_INFO_STA_FLAGS])
{