diff options
author | Felix Fietkau <nbd@nbd.name> | 2021-01-26 19:25:10 +0100 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2021-01-26 20:00:03 +0100 |
commit | 7ca75a2d01a10711e58a92ae4ed747e23c030814 (patch) | |
tree | 7f823eb0b1e4175fdce7dcf0153dbba93f973143 /package/kernel/mac80211/patches/subsys/348-mac80211-minstrel_ht-reduce-the-need-to-sample-slowe.patch | |
parent | 56c20f0a5ab037ba7dee71ce3d7e05197b2cccf7 (diff) | |
download | upstream-7ca75a2d01a10711e58a92ae4ed747e23c030814.tar.gz upstream-7ca75a2d01a10711e58a92ae4ed747e23c030814.tar.bz2 upstream-7ca75a2d01a10711e58a92ae4ed747e23c030814.zip |
mac80211: fix an uninitialized variable warning
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'package/kernel/mac80211/patches/subsys/348-mac80211-minstrel_ht-reduce-the-need-to-sample-slowe.patch')
-rw-r--r-- | package/kernel/mac80211/patches/subsys/348-mac80211-minstrel_ht-reduce-the-need-to-sample-slowe.patch | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/package/kernel/mac80211/patches/subsys/348-mac80211-minstrel_ht-reduce-the-need-to-sample-slowe.patch b/package/kernel/mac80211/patches/subsys/348-mac80211-minstrel_ht-reduce-the-need-to-sample-slowe.patch index 4b0ba3dbe5..dc6f11e4b9 100644 --- a/package/kernel/mac80211/patches/subsys/348-mac80211-minstrel_ht-reduce-the-need-to-sample-slowe.patch +++ b/package/kernel/mac80211/patches/subsys/348-mac80211-minstrel_ht-reduce-the-need-to-sample-slowe.patch @@ -37,8 +37,8 @@ Signed-off-by: Felix Fietkau <nbd@nbd.name> - mi->sample_slow = 0; mi->sample_count = 0; - memset(tmp_mcs_tp_rate, 0, sizeof(tmp_mcs_tp_rate)); -@@ -883,6 +879,7 @@ minstrel_ht_update_stats(struct minstrel + if (mi->supported[MINSTREL_CCK_GROUP]) +@@ -882,6 +878,7 @@ minstrel_ht_update_stats(struct minstrel /* Find best rate sets within all MCS groups*/ for (group = 0; group < ARRAY_SIZE(minstrel_mcs_groups); group++) { u16 *tp_rate = tmp_mcs_tp_rate; @@ -46,7 +46,7 @@ Signed-off-by: Felix Fietkau <nbd@nbd.name> mg = &mi->groups[group]; if (!mi->supported[group]) -@@ -897,7 +894,7 @@ minstrel_ht_update_stats(struct minstrel +@@ -896,7 +893,7 @@ minstrel_ht_update_stats(struct minstrel if (group == MINSTREL_CCK_GROUP && ht_supported) tp_rate = tmp_legacy_tp_rate; @@ -55,7 +55,7 @@ Signed-off-by: Felix Fietkau <nbd@nbd.name> if (!(mi->supported[group] & BIT(i))) continue; -@@ -906,6 +903,11 @@ minstrel_ht_update_stats(struct minstrel +@@ -905,6 +902,11 @@ minstrel_ht_update_stats(struct minstrel mrs = &mg->rates[i]; mrs->retry_updated = false; minstrel_ht_calc_rate_stats(mp, mrs); @@ -67,7 +67,7 @@ Signed-off-by: Felix Fietkau <nbd@nbd.name> cur_prob = mrs->prob_avg; if (minstrel_ht_get_tp_avg(mi, group, i, cur_prob) == 0) -@@ -1470,13 +1472,9 @@ minstrel_get_sample_rate(struct minstrel +@@ -1469,13 +1471,9 @@ minstrel_get_sample_rate(struct minstrel if (sample_dur >= minstrel_get_duration(tp_rate2) && (cur_max_tp_streams - 1 < minstrel_mcs_groups[sample_group].streams || |