gcc/binutils: disable sysv style hash tables for generated binaries
[openwrt/staging/nbd.git] / package / kernel / mac80211 / patches / subsys / 360-mac80211-minstrel-skip-memset-on-station-rate-contro.patch
1 From: Felix Fietkau <nbd@nbd.name>
2 Date: Mon, 1 Feb 2021 10:44:04 +0100
3 Subject: [PATCH] mac80211: minstrel: skip memset on station rate control
4 data
5
6 With legacy minstrel support gone, there is no need to clear the data on
7 capability updates anymore. The supported flags are fully re-initialized,
8 and previous rate table statistics can be preserved.
9
10 Signed-off-by: Felix Fietkau <nbd@nbd.name>
11 ---
12
13 --- a/net/mac80211/rc80211_minstrel_ht.c
14 +++ b/net/mac80211/rc80211_minstrel_ht.c
15 @@ -1558,8 +1558,6 @@ minstrel_ht_update_caps(void *priv, stru
16 else
17 use_vht = 0;
18
19 - memset(mi, 0, sizeof(*mi));
20 -
21 mi->sta = sta;
22 mi->band = sband->band;
23 mi->last_stats_update = jiffies;