“308816472d93dfdb7048c5c79651deb38301fa0a”上不存在“...fluid/operators/git@gitcode.net:paddlepaddle/Paddle.git”
提交 ecc3d5ae 编写于 作者: M Ming Lei 提交者: John W. Linville

minstrel_ht: fix check for downgrading of top2 rate

The check should be against current top2 rate, instead of
current top rate.
Signed-off-by: NMing Lei <tom.leiming@gmail.com>
Acked-by: NFelix Fietkau <nbd@openwrt.org>
Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
上级 009271f9
...@@ -443,8 +443,8 @@ minstrel_ht_tx_status(void *priv, struct ieee80211_supported_band *sband, ...@@ -443,8 +443,8 @@ minstrel_ht_tx_status(void *priv, struct ieee80211_supported_band *sband,
minstrel_downgrade_rate(mi, &mi->max_tp_rate, true); minstrel_downgrade_rate(mi, &mi->max_tp_rate, true);
rate2 = minstrel_get_ratestats(mi, mi->max_tp_rate2); rate2 = minstrel_get_ratestats(mi, mi->max_tp_rate2);
if (rate->attempts > 30 && if (rate2->attempts > 30 &&
MINSTREL_FRAC(rate->success, rate->attempts) < MINSTREL_FRAC(rate2->success, rate2->attempts) <
MINSTREL_FRAC(20, 100)) MINSTREL_FRAC(20, 100))
minstrel_downgrade_rate(mi, &mi->max_tp_rate2, false); minstrel_downgrade_rate(mi, &mi->max_tp_rate2, false);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册