ath9k: remove an old tx stop workaround which conflicts with the powersave fixes
[openwrt/svn-archive/archive.git] / package / iw / patches / 500-sta-signal-avg.patch
1 iw: add signal average to station information
2
3 From: Bruno Randolf <br1@einfach.org>
4
5
6 ---
7 nl80211.h | 1 +
8 station.c | 3 +++
9 2 files changed, 4 insertions(+), 0 deletions(-)
10
11 --- a/nl80211.h
12 +++ b/nl80211.h
13 @@ -1183,6 +1183,7 @@ enum nl80211_sta_info {
14 NL80211_STA_INFO_TX_PACKETS,
15 NL80211_STA_INFO_TX_RETRIES,
16 NL80211_STA_INFO_TX_FAILED,
17 + NL80211_STA_INFO_SIGNAL_AVG,
18
19 /* keep last */
20 __NL80211_STA_INFO_AFTER_LAST,
21 --- a/station.c
22 +++ b/station.c
23 @@ -107,6 +107,9 @@ static int print_sta_handler(struct nl_m
24 if (sinfo[NL80211_STA_INFO_SIGNAL])
25 printf("\n\tsignal: \t%d dBm",
26 (int8_t)nla_get_u8(sinfo[NL80211_STA_INFO_SIGNAL]));
27 + if (sinfo[NL80211_STA_INFO_SIGNAL_AVG])
28 + printf("\n\tsignal avg:\t%d dBm",
29 + (int8_t)nla_get_u8(sinfo[NL80211_STA_INFO_SIGNAL_AVG]));
30
31 if (sinfo[NL80211_STA_INFO_TX_BITRATE]) {
32 if (nla_parse_nested(rinfo, NL80211_RATE_INFO_MAX,