aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/rc80211_minstrel.h
diff options
context:
space:
mode:
Diffstat (limited to 'net/mac80211/rc80211_minstrel.h')
-rw-r--r--net/mac80211/rc80211_minstrel.h15
1 files changed, 8 insertions, 7 deletions
diff --git a/net/mac80211/rc80211_minstrel.h b/net/mac80211/rc80211_minstrel.h
index 97eca86a4af0..410efe620c57 100644
--- a/net/mac80211/rc80211_minstrel.h
+++ b/net/mac80211/rc80211_minstrel.h
@@ -33,8 +33,8 @@ minstrel_ewma(int old, int new, int weight)
33 33
34struct minstrel_rate_stats { 34struct minstrel_rate_stats {
35 /* current / last sampling period attempts/success counters */ 35 /* current / last sampling period attempts/success counters */
36 unsigned int attempts, last_attempts; 36 u16 attempts, last_attempts;
37 unsigned int success, last_success; 37 u16 success, last_success;
38 38
39 /* total attempts/success counters */ 39 /* total attempts/success counters */
40 u64 att_hist, succ_hist; 40 u64 att_hist, succ_hist;
@@ -46,8 +46,8 @@ struct minstrel_rate_stats {
46 unsigned int cur_prob, probability; 46 unsigned int cur_prob, probability;
47 47
48 /* maximum retry counts */ 48 /* maximum retry counts */
49 unsigned int retry_count; 49 u8 retry_count;
50 unsigned int retry_count_rtscts; 50 u8 retry_count_rtscts;
51 51
52 u8 sample_skipped; 52 u8 sample_skipped;
53 bool retry_updated; 53 bool retry_updated;
@@ -55,14 +55,15 @@ struct minstrel_rate_stats {
55 55
56struct minstrel_rate { 56struct minstrel_rate {
57 int bitrate; 57 int bitrate;
58 int rix; 58
59 s8 rix;
60 u8 retry_count_cts;
61 u8 adjusted_retry_count;
59 62
60 unsigned int perfect_tx_time; 63 unsigned int perfect_tx_time;
61 unsigned int ack_time; 64 unsigned int ack_time;
62 65
63 int sample_limit; 66 int sample_limit;
64 unsigned int retry_count_cts;
65 unsigned int adjusted_retry_count;
66 67
67 struct minstrel_rate_stats stats; 68 struct minstrel_rate_stats stats;
68}; 69};