summaryrefslogtreecommitdiffstats
path: root/net/mac80211/tx.c
diff options
context:
space:
mode:
authorSujith <Sujith.Manoharan@atheros.com>2008-10-23 08:44:02 +0200
committerJohn W. Linville <linville@tuxdriver.com>2008-11-01 00:00:54 +0100
commit075cbc9eb15da8f4cba7c7eaadedd8b030d3a87a (patch)
tree2caa2f3acb07520439d93dc2be2c5ccc7ab159ca /net/mac80211/tx.c
parentath9k: Allow user to change tx power when asked (diff)
downloadlinux-075cbc9eb15da8f4cba7c7eaadedd8b030d3a87a.tar.xz
linux-075cbc9eb15da8f4cba7c7eaadedd8b030d3a87a.zip
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: Sujith <Sujith.Manoharan@atheros.com> Acked-by: Johannes Berg <johannes@sipsolutions.net> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/tx.c')
-rw-r--r--net/mac80211/tx.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/mac80211/tx.c b/net/mac80211/tx.c
index 21951bac1ef7..541e3e64493d 100644
--- a/net/mac80211/tx.c
+++ b/net/mac80211/tx.c
@@ -563,8 +563,8 @@ 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 >=
- sband->n_bitrates)) {
+ if (WARN_ON_ONCE(info->control.rates[i].idx >=
+ sband->n_bitrates)) {
info->control.rates[i].idx = -1;
continue;
}