提交 075cbc9e 编写于 作者: S Sujith 提交者: John W. Linville

mac80211: Change WARN_ON to WARN_ON_ONCE

A warning would be printed for every packet that
is transmitted if the rate control information isn't
setup. Change this to WARN_ON_ONCE.
Signed-off-by: NSujith <Sujith.Manoharan@atheros.com>
Acked-by: NJohannes Berg <johannes@sipsolutions.net>
Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
上级 5c020dc6
......@@ -563,7 +563,7 @@ ieee80211_tx_h_rate_ctrl(struct ieee80211_tx_data *tx)
IEEE80211_TX_RC_USE_RTS_CTS;
/* RC is busted */
if (WARN_ON(info->control.rates[i].idx >=
if (WARN_ON_ONCE(info->control.rates[i].idx >=
sband->n_bitrates)) {
info->control.rates[i].idx = -1;
continue;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册