]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - net/mac80211/rc80211_minstrel_ht.h
mac80211: minstrel_ht: improve rate probing for devices with static fallback
[linux.git] / net / mac80211 / rc80211_minstrel_ht.h
index 80296268c7783ee6feeeae76b92f303085566d79..f938701e7ab7d6348d243e4e809942f067df76b5 100644 (file)
@@ -33,6 +33,7 @@ struct mcs_group {
        u16 flags;
        u8 streams;
        u8 shift;
+       u8 bw;
        u16 duration[MCS_GROUP_RATES];
 };
 
@@ -50,6 +51,12 @@ struct minstrel_mcs_group_data {
        struct minstrel_rate_stats rates[MCS_GROUP_RATES];
 };
 
+enum minstrel_sample_mode {
+       MINSTREL_SAMPLE_IDLE,
+       MINSTREL_SAMPLE_ACTIVE,
+       MINSTREL_SAMPLE_PENDING,
+};
+
 struct minstrel_ht_sta {
        struct ieee80211_sta *sta;
 
@@ -71,6 +78,8 @@ struct minstrel_ht_sta {
        unsigned int overhead;
        unsigned int overhead_rtscts;
 
+       unsigned int total_packets_last;
+       unsigned int total_packets_cur;
        unsigned int total_packets;
        unsigned int sample_packets;
 
@@ -82,6 +91,9 @@ struct minstrel_ht_sta {
        u8 sample_count;
        u8 sample_slow;
 
+       enum minstrel_sample_mode sample_mode;
+       u16 sample_rate;
+
        /* current MCS group to be sampled */
        u8 sample_group;