mac80211: restructure per-rate throughput calculation into function
[cascardo/linux.git] / net / mac80211 / rc80211_minstrel.h
index 58f2870..490df3b 100644 (file)
@@ -38,9 +38,6 @@ struct minstrel_rate_stats {
        /* total attempts/success counters */
        u64 att_hist, succ_hist;
 
-       /* current EWMA of rate throughput */
-       unsigned int cur_tp;
-
        /* statistis of packet delivery probability
         *  cur_prob  - current prob within last update intervall
         *  prob_ewma - exponential weighted moving average of prob */
@@ -137,6 +134,7 @@ void minstrel_remove_sta_debugfs(void *priv, void *priv_sta);
 
 /* Recalculate success probabilities and counters for a given rate using EWMA */
 void minstrel_calc_rate_stats(struct minstrel_rate_stats *mrs);
+int minstrel_get_tp_avg(struct minstrel_rate *mr);
 
 /* debugfs */
 int minstrel_stats_open(struct inode *inode, struct file *file);