On Wed, May 6, 2009 at 12:14 PM, Pavel Roskin <pro...@gnu.org> 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
_______________________________________________
ath5k-devel mailing list
ath5k-devel@lists.ath5k.org
https://lists.ath5k.org/mailman/listinfo/ath5k-devel

Reply via email to