diff options
| author | Sam Leffler <sam@FreeBSD.org> | 2005-11-15 05:47:20 +0000 |
|---|---|---|
| committer | Sam Leffler <sam@FreeBSD.org> | 2005-11-15 05:47:20 +0000 |
| commit | 0ae09ec575fd744c7eb8e0a349c6996b50813935 (patch) | |
| tree | ea64f7b73fefb244e438243275098538040eb36e /sys/dev/ath | |
| parent | fcf97578ffbe0758aa07be1e7bdbc29f20aa72ad (diff) | |
Notes
Diffstat (limited to 'sys/dev/ath')
| -rw-r--r-- | sys/dev/ath/ath_rate/sample/sample.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/dev/ath/ath_rate/sample/sample.c b/sys/dev/ath/ath_rate/sample/sample.c index 7acdc5cfe447f..f7b2920b5ca03 100644 --- a/sys/dev/ath/ath_rate/sample/sample.c +++ b/sys/dev/ath/ath_rate/sample/sample.c @@ -710,6 +710,11 @@ ath_rate_ctl_reset(struct ath_softc *sc, struct ieee80211_node *ni) for (x = 0; x < ni->ni_rates.rs_nrates; x++) { sn->rates[x].rate = ni->ni_rates.rs_rates[x] & IEEE80211_RATE_VAL; sn->rates[x].rix = sc->sc_rixmap[sn->rates[x].rate]; + if (sn->rates[x].rix == 0xff) { + DPRINTF(sc, "%s: ignore bogus rix at %d\n", + __func__, x); + continue; + } sn->rates[x].rateCode = rt->info[sn->rates[x].rix].rateCode; sn->rates[x].shortPreambleRateCode = rt->info[sn->rates[x].rix].rateCode | |
