Root/
1 | --- a/ath_rate/minstrel/minstrel.c |
2 | +++ b/ath_rate/minstrel/minstrel.c |
3 | @@ -393,6 +393,9 @@ ath_rate_get_mrr(struct ath_softc *sc, s |
4 | struct minstrel_node *sn = ATH_NODE_MINSTREL(an); |
5 | int rc1, rc2, rc3; /* Index into the rate table, so for example, it is 0..11 */ |
6 | |
7 | + if (sn->num_rates <= 0) |
8 | + return; |
9 | + |
10 | if (sn->is_sampling) { |
11 | sn->is_sampling = 0; |
12 | if (sn->rs_sample_rate_slower) |
13 |