On Wed, May 6, 2009 at 12:14 PM, Pavel Roskin <proski@xxxxxxx> wrote: > Hello! > > If I scan by "iw dev wlan0 scan" while sending data through the > interface, I get a BUG in net/mac80211/tx.c: Agreed... Also I think the same thing happens for rx for ath5k, explaining the 'unknown rate index' warnings (sc->curband changes during scan but we process a beacon from 2ghz band, that one at least just needs some synchronization in the driver). > /* RC is busted */ > if (WARN_ON_ONCE(info->control.rates[i].idx >= > sband->n_bitrates)) { > info->control.rates[i].idx = -1; > continue; > } I had a patch here to return rate_lowest_index(). But it still crashed eventually. > rate = ieee80211_get_tx_rate(sc->hw, info); > + if (!rate) > + return -EIO; There are a few more rates here for MRR and RTS/CTS etc. -- Bob Copeland %% www.bobcopeland.com -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html