summaryrefslogtreecommitdiff
path: root/include/net/mac80211.h
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2011-11-04 17:07:43 (GMT)
committerJohn W. Linville <linville@tuxdriver.com>2011-11-04 17:38:06 (GMT)
commit54d5026e7c173edae8a27c293c286f1783d21ae8 (patch)
tree83ef2dac1fe83a551bcdaf172c80fbfbcf32b0d5 /include/net/mac80211.h
parentf956c34e2a665a1c457d0af7db7604b22f5acb19 (diff)
downloadlinux-fsl-qoriq-54d5026e7c173edae8a27c293c286f1783d21ae8.tar.xz
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/mac80211.h')
-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 dc1123a..72eddd1 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;
}