diff options
Diffstat (limited to 'net/mac80211/rc80211_minstrel.c')
| -rw-r--r-- | net/mac80211/rc80211_minstrel.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/mac80211/rc80211_minstrel.c b/net/mac80211/rc80211_minstrel.c index 6e5d68b4e427..778c604d7939 100644 --- a/net/mac80211/rc80211_minstrel.c +++ b/net/mac80211/rc80211_minstrel.c | |||
| @@ -50,6 +50,7 @@ | |||
| 50 | #include <linux/debugfs.h> | 50 | #include <linux/debugfs.h> |
| 51 | #include <linux/random.h> | 51 | #include <linux/random.h> |
| 52 | #include <linux/ieee80211.h> | 52 | #include <linux/ieee80211.h> |
| 53 | #include <linux/slab.h> | ||
| 53 | #include <net/mac80211.h> | 54 | #include <net/mac80211.h> |
| 54 | #include "rate.h" | 55 | #include "rate.h" |
| 55 | #include "rc80211_minstrel.h" | 56 | #include "rc80211_minstrel.h" |
| @@ -66,7 +67,6 @@ rix_to_ndx(struct minstrel_sta_info *mi, int rix) | |||
| 66 | for (i = rix; i >= 0; i--) | 67 | for (i = rix; i >= 0; i--) |
| 67 | if (mi->r[i].rix == rix) | 68 | if (mi->r[i].rix == rix) |
| 68 | break; | 69 | break; |
| 69 | WARN_ON(i < 0); | ||
| 70 | return i; | 70 | return i; |
| 71 | } | 71 | } |
| 72 | 72 | ||
| @@ -541,7 +541,7 @@ minstrel_free(void *priv) | |||
| 541 | kfree(priv); | 541 | kfree(priv); |
| 542 | } | 542 | } |
| 543 | 543 | ||
| 544 | static struct rate_control_ops mac80211_minstrel = { | 544 | struct rate_control_ops mac80211_minstrel = { |
| 545 | .name = "minstrel", | 545 | .name = "minstrel", |
| 546 | .tx_status = minstrel_tx_status, | 546 | .tx_status = minstrel_tx_status, |
| 547 | .get_rate = minstrel_get_rate, | 547 | .get_rate = minstrel_get_rate, |
