cfg80211: export expected throughput through get_station()
Users may need information about the expected throughput towards a given peer. This value is supposed to consider the size overhead generated by the 802.11 header. This value is exported in kbps through the get_station() API by including it into the station_info object. Moreover, it is sent to user space when replying to the nl80211 GET_STATION command. This information will be useful to the batman-adv module which will use it for its new metric computation. Signed-off-by: Antonio Quartulli <antonio@open-mesh.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
parent
922bd80fc3
commit
867d849fc8
3 changed files with 41 additions and 28 deletions
|
@ -2199,6 +2199,8 @@ enum nl80211_sta_bss_param {
|
|||
* Contains a nested array of signal strength attributes (u8, dBm)
|
||||
* @NL80211_STA_INFO_CHAIN_SIGNAL_AVG: per-chain signal strength average
|
||||
* Same format as NL80211_STA_INFO_CHAIN_SIGNAL.
|
||||
* @NL80211_STA_EXPECTED_THROUGHPUT: expected throughput considering also the
|
||||
* 802.11 header (u32, kbps)
|
||||
* @__NL80211_STA_INFO_AFTER_LAST: internal
|
||||
* @NL80211_STA_INFO_MAX: highest possible station info attribute
|
||||
*/
|
||||
|
@ -2230,6 +2232,7 @@ enum nl80211_sta_info {
|
|||
NL80211_STA_INFO_TX_BYTES64,
|
||||
NL80211_STA_INFO_CHAIN_SIGNAL,
|
||||
NL80211_STA_INFO_CHAIN_SIGNAL_AVG,
|
||||
NL80211_STA_INFO_EXPECTED_THROUGHPUT,
|
||||
|
||||
/* keep last */
|
||||
__NL80211_STA_INFO_AFTER_LAST,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue