From: Johannes Berg <johannes.berg@xxxxxxxxx> 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@xxxxxxxxxxxxxxxxxxxx> Signed-off-by: Johannes Berg <johannes.berg@xxxxxxxxx> --- 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; } -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html