From: Antonio Quartulli <antonio@xxxxxxxxxxxxx> In order to make mac80211 export the expected throughput, a new API which extracts such information from any mac80211 SW RC algorithm is needed. Therefore add the new get_expected_throughput() member to the rate_control_ops structure. The exported value is expressed in Mbps/100. Such unit has been chosen because it is the highest precision that MinstrelHT can return. Signed-off-by: Antonio Quartulli <antonio@xxxxxxxxxxxxx> --- include/net/mac80211.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/net/mac80211.h b/include/net/mac80211.h index 0efe37c..47b891a 100644 --- a/include/net/mac80211.h +++ b/include/net/mac80211.h @@ -4480,6 +4480,9 @@ struct rate_control_ops { void (*add_sta_debugfs)(void *priv, void *priv_sta, struct dentry *dir); void (*remove_sta_debugfs)(void *priv, void *priv_sta); + + u32 (*get_expected_throughput)(void *priv, void *priv_sta, + struct ieee80211_supported_band *sband); }; static inline int rate_supported(struct ieee80211_sta *sta, -- 1.8.3.2 -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html