diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/nl80211.h | 2 | ||||
-rw-r--r-- | include/net/cfg80211.h | 4 |
2 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/nl80211.h b/include/linux/nl80211.h index 410a06ea551b..8e28053ea423 100644 --- a/include/linux/nl80211.h +++ b/include/linux/nl80211.h | |||
@@ -1191,6 +1191,7 @@ enum nl80211_rate_info { | |||
1191 | * station) | 1191 | * station) |
1192 | * @NL80211_STA_INFO_TX_RETRIES: total retries (u32, to this station) | 1192 | * @NL80211_STA_INFO_TX_RETRIES: total retries (u32, to this station) |
1193 | * @NL80211_STA_INFO_TX_FAILED: total failed packets (u32, to this station) | 1193 | * @NL80211_STA_INFO_TX_FAILED: total failed packets (u32, to this station) |
1194 | * @NL80211_STA_INFO_SIGNAL_AVG: signal strength average (u8, dBm) | ||
1194 | */ | 1195 | */ |
1195 | enum nl80211_sta_info { | 1196 | enum nl80211_sta_info { |
1196 | __NL80211_STA_INFO_INVALID, | 1197 | __NL80211_STA_INFO_INVALID, |
@@ -1206,6 +1207,7 @@ enum nl80211_sta_info { | |||
1206 | NL80211_STA_INFO_TX_PACKETS, | 1207 | NL80211_STA_INFO_TX_PACKETS, |
1207 | NL80211_STA_INFO_TX_RETRIES, | 1208 | NL80211_STA_INFO_TX_RETRIES, |
1208 | NL80211_STA_INFO_TX_FAILED, | 1209 | NL80211_STA_INFO_TX_FAILED, |
1210 | NL80211_STA_INFO_SIGNAL_AVG, | ||
1209 | 1211 | ||
1210 | /* keep last */ | 1212 | /* keep last */ |
1211 | __NL80211_STA_INFO_AFTER_LAST, | 1213 | __NL80211_STA_INFO_AFTER_LAST, |
diff --git a/include/net/cfg80211.h b/include/net/cfg80211.h index 788c3989a9e8..8764c9a5bab7 100644 --- a/include/net/cfg80211.h +++ b/include/net/cfg80211.h | |||
@@ -420,6 +420,7 @@ struct station_parameters { | |||
420 | * @STATION_INFO_TX_RETRIES: @tx_retries filled | 420 | * @STATION_INFO_TX_RETRIES: @tx_retries filled |
421 | * @STATION_INFO_TX_FAILED: @tx_failed filled | 421 | * @STATION_INFO_TX_FAILED: @tx_failed filled |
422 | * @STATION_INFO_RX_DROP_MISC: @rx_dropped_misc filled | 422 | * @STATION_INFO_RX_DROP_MISC: @rx_dropped_misc filled |
423 | * @STATION_INFO_SIGNAL_AVG: @signal_avg filled | ||
423 | */ | 424 | */ |
424 | enum station_info_flags { | 425 | enum station_info_flags { |
425 | STATION_INFO_INACTIVE_TIME = 1<<0, | 426 | STATION_INFO_INACTIVE_TIME = 1<<0, |
@@ -435,6 +436,7 @@ enum station_info_flags { | |||
435 | STATION_INFO_TX_RETRIES = 1<<10, | 436 | STATION_INFO_TX_RETRIES = 1<<10, |
436 | STATION_INFO_TX_FAILED = 1<<11, | 437 | STATION_INFO_TX_FAILED = 1<<11, |
437 | STATION_INFO_RX_DROP_MISC = 1<<12, | 438 | STATION_INFO_RX_DROP_MISC = 1<<12, |
439 | STATION_INFO_SIGNAL_AVG = 1<<13, | ||
438 | }; | 440 | }; |
439 | 441 | ||
440 | /** | 442 | /** |
@@ -481,6 +483,7 @@ struct rate_info { | |||
481 | * @plid: mesh peer link id | 483 | * @plid: mesh peer link id |
482 | * @plink_state: mesh peer link state | 484 | * @plink_state: mesh peer link state |
483 | * @signal: signal strength of last received packet in dBm | 485 | * @signal: signal strength of last received packet in dBm |
486 | * @signal_avg: signal strength average in dBm | ||
484 | * @txrate: current unicast bitrate to this station | 487 | * @txrate: current unicast bitrate to this station |
485 | * @rx_packets: packets received from this station | 488 | * @rx_packets: packets received from this station |
486 | * @tx_packets: packets transmitted to this station | 489 | * @tx_packets: packets transmitted to this station |
@@ -501,6 +504,7 @@ struct station_info { | |||
501 | u16 plid; | 504 | u16 plid; |
502 | u8 plink_state; | 505 | u8 plink_state; |
503 | s8 signal; | 506 | s8 signal; |
507 | s8 signal_avg; | ||
504 | struct rate_info txrate; | 508 | struct rate_info txrate; |
505 | u32 rx_packets; | 509 | u32 rx_packets; |
506 | u32 tx_packets; | 510 | u32 tx_packets; |