Fresh pull from upstream
[librecmc/librecmc.git] / package / kernel / mac80211 / patches / 336-mac80211-minstrel_ht-make-att_hist-and-succ_hist-u32.patch
1 From: Felix Fietkau <nbd@nbd.name>
2 Date: Wed, 14 Dec 2016 20:09:14 +0100
3 Subject: [PATCH] mac80211: minstrel_ht: make att_hist and succ_hist u32
4  instead of u64
5
6 They are only used for debugging purposes and take a very long time to
7 overflow. Visibly reduces the size of the per-sta rate control data.
8
9 Signed-off-by: Felix Fietkau <nbd@nbd.name>
10 ---
11
12 --- a/net/mac80211/rc80211_minstrel.h
13 +++ b/net/mac80211/rc80211_minstrel.h
14 @@ -59,7 +59,7 @@ struct minstrel_rate_stats {
15         u16 success, last_success;
16  
17         /* total attempts/success counters */
18 -       u64 att_hist, succ_hist;
19 +       u32 att_hist, succ_hist;
20  
21         /* statistis of packet delivery probability
22          *  cur_prob  - current prob within last update intervall