diff options
Diffstat (limited to 'net/wireless/util.c')
-rw-r--r-- | net/wireless/util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/wireless/util.c b/net/wireless/util.c index 6cba00173a2f..177df03064cf 100644 --- a/net/wireless/util.c +++ b/net/wireless/util.c | |||
@@ -880,7 +880,7 @@ u16 cfg80211_calculate_bitrate(struct rate_info *rate) | |||
880 | return rate->legacy; | 880 | return rate->legacy; |
881 | 881 | ||
882 | /* the formula below does only work for MCS values smaller than 32 */ | 882 | /* the formula below does only work for MCS values smaller than 32 */ |
883 | if (rate->mcs >= 32) | 883 | if (WARN_ON_ONCE(rate->mcs >= 32)) |
884 | return 0; | 884 | return 0; |
885 | 885 | ||
886 | modulation = rate->mcs & 7; | 886 | modulation = rate->mcs & 7; |