Commit 54d5026e authored by Johannes Berg's avatar Johannes Berg Committed by John W. Linville

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: default avatarLinus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent f956c34e
...@@ -3567,8 +3567,9 @@ rate_lowest_index(struct ieee80211_supported_band *sband, ...@@ -3567,8 +3567,9 @@ rate_lowest_index(struct ieee80211_supported_band *sband,
return i; return i;
/* warn when we cannot find a rate. */ /* warn when we cannot find a rate. */
WARN_ON(1); WARN_ON_ONCE(1);
/* and return 0 (the lowest index) */
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment