summaryrefslogtreecommitdiffstats
path: root/include/net
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2011-11-04 18:07:43 +0100
committerJohn W. Linville <linville@tuxdriver.com>2011-11-04 13:38:06 -0400
commit54d5026e7c173edae8a27c293c286f1783d21ae8 (patch)
tree83ef2dac1fe83a551bcdaf172c80fbfbcf32b0d5 /include/net
parentf956c34e2a665a1c457d0af7db7604b22f5acb19 (diff)
downloadlinux-54d5026e7c173edae8a27c293c286f1783d21ae8.tar.gz
linux-54d5026e7c173edae8a27c293c286f1783d21ae8.tar.bz2
linux-54d5026e7c173edae8a27c293c286f1783d21ae8.zip
mac80211: warn only once about not finding a rate
The warning really shouldn't happen, but until we find the reason why it does don't spew it all the time, just once is enough to know we've hit it. Reported-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'include/net')
-rw-r--r--include/net/mac80211.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/net/mac80211.h b/include/net/mac80211.h
index dc1123aa8181..72eddd1b410b 100644
--- a/include/net/mac80211.h
+++ b/include/net/mac80211.h
@@ -3567,8 +3567,9 @@ rate_lowest_index(struct ieee80211_supported_band *sband,
return i;
/* warn when we cannot find a rate. */
- WARN_ON(1);
+ WARN_ON_ONCE(1);
+ /* and return 0 (the lowest index) */
return 0;
}