diff options
author | Johannes Berg <johannes.berg@intel.com> | 2011-11-04 18:07:43 +0100 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-11-04 13:38:06 -0400 |
commit | 54d5026e7c173edae8a27c293c286f1783d21ae8 (patch) | |
tree | 83ef2dac1fe83a551bcdaf172c80fbfbcf32b0d5 /include | |
parent | f956c34e2a665a1c457d0af7db7604b22f5acb19 (diff) | |
download | kernel-common-54d5026e7c173edae8a27c293c286f1783d21ae8.tar.gz kernel-common-54d5026e7c173edae8a27c293c286f1783d21ae8.tar.bz2 kernel-common-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')
-rw-r--r-- | include/net/mac80211.h | 3 |
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; } |