mac80211: export the expected throughput
authorAntonio Quartulli <antonio@open-mesh.com>
Mon, 19 May 2014 19:53:20 +0000 (21:53 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 21 May 2014 07:15:16 +0000 (09:15 +0200)
commitcca674d47e59665630f3005291b61bb883015fc5
treebd83cc2c0b576cdc7adae72ca7c170c1e1648fa8
parent867d849fc844623a88ec7b380442952b5ffe5e68
mac80211: export the expected throughput

Add get_expected_throughput() API to mac80211 so that each
driver can implement its own version based on the RC
algorithm they are using (might be using an HW RC algo).
The API returns a value expressed in Kbps.

Also, add the new get_expected_throughput() member
to the rate_control_ops structure in order to be
able to query the RC algorithm (this patch provides an
implementation of this API for both minstrel and
minstrel_ht).

The related member in the station_info object is now
filled accordingly when dumping a station.

Cc: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: Antonio Quartulli <antonio@open-mesh.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
include/net/mac80211.h
net/mac80211/cfg.c
net/mac80211/driver-ops.h
net/mac80211/rc80211_minstrel.c
net/mac80211/rc80211_minstrel_ht.c
net/mac80211/trace.h