* [PATCH 3.2] mac80211: warn only once about not finding a rate
@ 2011-11-04 17:07 Johannes Berg
0 siblings, 0 replies; only message in thread
From: Johannes Berg @ 2011-11-04 17:07 UTC (permalink / raw)
To: John Linville; +Cc: linux-wireless
From: Johannes Berg <johannes.berg@intel.com>
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>
---
include/net/mac80211.h | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
--- a/include/net/mac80211.h 2011-11-04 15:10:56.000000000 +0100
+++ b/include/net/mac80211.h 2011-11-04 18:04:48.000000000 +0100
@@ -3576,8 +3576,9 @@ rate_lowest_index(struct ieee80211_suppo
return i;
/* warn when we cannot find a rate. */
- WARN_ON(1);
+ WARN_ON_ONCE(1);
+ /* and return 0 (the lowest index) */
return 0;
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-11-04 17:07 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-04 17:07 [PATCH 3.2] mac80211: warn only once about not finding a rate Johannes Berg
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox