cfg80211: export expected throughput through get_station()
authorAntonio Quartulli <antonio@open-mesh.com>
Mon, 19 May 2014 19:53:19 +0000 (21:53 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 20 May 2014 13:13:32 +0000 (15:13 +0200)
commit867d849fc844623a88ec7b380442952b5ffe5e68
tree6f45a836156a9e0f049fe68acf07eaeae0cd67ed
parent922bd80fc33b5b90eb34b1485ebcf3c7b2e61618
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>
include/net/cfg80211.h
include/uapi/linux/nl80211.h
net/wireless/nl80211.c