diff options
author | Jo-Philipp Wich <jo@mein.io> | 2022-06-18 23:58:45 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-18 23:58:45 +0200 |
commit | 44bf33a2701d7cf94ae0a41f6befc7f591913e10 (patch) | |
tree | afe19fb44bb28693d1e6ac1c64ac5559493f0058 /lib | |
parent | 456d3f1811aaf864ac0071232e6783ae1779c32a (diff) | |
parent | 03c8ca568e600a132d9705a4177b7fba30807144 (diff) |
Merge pull request #85 from jow-/nl80211-add-sta-info-nlas
nl80211: recognize further NL80211_STA_INFO_* NLAs
Diffstat (limited to 'lib')
-rw-r--r-- | lib/nl80211.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/nl80211.c b/lib/nl80211.c index 38e8d87..6a0fd8a 100644 --- a/lib/nl80211.c +++ b/lib/nl80211.c @@ -716,7 +716,7 @@ static const uc_nl_nested_spec_t nl80211_bss_param_nla = { static const uc_nl_nested_spec_t nl80211_sta_info_nla = { .headsize = 0, - .nattrs = 35, + .nattrs = 40, .attrs = { { NL80211_STA_INFO_INACTIVE_TIME, "inactive_time", DT_U32, 0, NULL }, { NL80211_STA_INFO_RX_BYTES, "rx_bytes", DT_U32, 0, NULL }, @@ -750,9 +750,14 @@ static const uc_nl_nested_spec_t nl80211_sta_info_nla = { { NL80211_STA_INFO_ACK_SIGNAL, "ack_signal", DT_S8, 0, NULL }, { NL80211_STA_INFO_ACK_SIGNAL_AVG, "ack_signal_avg", DT_S8, 0, NULL }, { NL80211_STA_INFO_AIRTIME_LINK_METRIC, "airtime_link_metric", DT_U32, 0, NULL }, + { NL80211_STA_INFO_AIRTIME_WEIGHT, "airtime_weight", DT_U16, 0, NULL }, { NL80211_STA_INFO_CONNECTED_TO_AS, "connected_to_as", DT_BOOL, 0, NULL }, { NL80211_STA_INFO_CONNECTED_TO_GATE, "connected_to_gate", DT_BOOL, 0, NULL }, { NL80211_STA_INFO_CONNECTED_TIME, "connected_time", DT_U32, 0, NULL }, + { NL80211_STA_INFO_ASSOC_AT_BOOTTIME, "assoc_at_boottime", DT_U64, 0, NULL }, + { NL80211_STA_INFO_BEACON_SIGNAL_AVG, "beacon_signal_avg", DT_S8, 0, NULL }, + { NL80211_STA_INFO_EXPECTED_THROUGHPUT, "expected_throughput", DT_U32, 0, NULL }, + { NL80211_STA_INFO_SIGNAL_AVG, "signal_avg", DT_S8, 0, NULL }, } }; |