Search Linux Wireless

Re: [ath5k-devel] ath5k: scanning while transmitting causes oops on 802.11a capable card

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux