diff options
| author | John W. Linville <linville@tuxdriver.com> | 2012-05-22 15:18:06 -0400 | 
|---|---|---|
| committer | John W. Linville <linville@tuxdriver.com> | 2012-05-22 15:18:06 -0400 | 
| commit | a0d0d1685f9763ab26a394df3ab84026b39a06a7 (patch) | |
| tree | 4165dc6fd3266977ab4b3fa3b379c47597f97d88 /net/wireless/util.c | |
| parent | 31a67102f4762df5544bc2dfb34a931233d2a5b2 (diff) | |
| parent | 05f8f25276ea8c7d41b3649890d6eaf179e67a81 (diff) | |
| download | olio-linux-3.10-a0d0d1685f9763ab26a394df3ab84026b39a06a7.tar.xz olio-linux-3.10-a0d0d1685f9763ab26a394df3ab84026b39a06a7.zip  | |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next
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 1cd255892a4..55d99466bab 100644 --- a/net/wireless/util.c +++ b/net/wireless/util.c @@ -879,7 +879,7 @@ u16 cfg80211_calculate_bitrate(struct rate_info *rate)  		return rate->legacy;  	/* the formula below does only work for MCS values smaller than 32 */ -	if (rate->mcs >= 32) +	if (WARN_ON_ONCE(rate->mcs >= 32))  		return 0;  	modulation = rate->mcs & 7;  |