Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 306785
b: refs/heads/master
c: 2615f37
h: refs/heads/master
i:
  306783: dcd7b92
v: v3
  • Loading branch information
Johannes Berg authored and John W. Linville committed May 16, 2012
1 parent d9566fb commit 3da3b05
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4472037be86a9d7d1cab37e0c4cb310997a140ae
refs/heads/master: 2615f3759b7b7d47a2fa894bc9f45286bdf122d7
2 changes: 1 addition & 1 deletion trunk/net/wireless/util.c
Original file line number Diff line number Diff line change
Expand Up @@ -880,7 +880,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;
Expand Down

0 comments on commit 3da3b05

Please sign in to comment.