Skip to content

Commit

Permalink
mac80211: warn only once about not finding a rate
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Johannes Berg authored and John W. Linville committed Nov 4, 2011
1 parent f956c34 commit 54d5026
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/net/mac80211.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 54d5026

Please sign in to comment.