Search Linux Wireless

Re: iwlwifi injection bug

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

 



On Fri, 2008-05-16 at 17:12 +0200, Stefanik Gábor wrote:
> On Fri, May 16, 2008 at 3:47 PM, Johannes Berg
> <johannes@xxxxxxxxxxxxxxxx> wrote:
> > I don't know why you want to disallow sending frames when in monitor
> > mode (especially since reportedly it works), but this is not a good way
> > to go about it:
> >
> > static int iwl4965_mac_tx(struct ieee80211_hw *hw, struct sk_buff *skb)
> > {
> >        struct iwl_priv *priv = hw->priv;
> >
> >        IWL_DEBUG_MAC80211("enter\n");
> >
> >        if (priv->iw_mode == IEEE80211_IF_TYPE_MNTR) {
> >                IWL_DEBUG_MAC80211("leave - monitor\n");
> >                return -1;
> >        }
> >
> > You see, this will cause mac80211 to resubmit the frame and most likely
> > will totally mess up queue handling and various other things.
> >
> > johannes
> >
> 
> Hmm... thanks for the hint! I was chasing a weird Radiotap bug that
> shown up when I tried to use packetspammer or aireplay on a monitor
> interface with the latest iwlwifi git. The symptoms ranged from just
> not transmitting to hangs and kernel panics. It appears to mess up
> more than just TX/RX queues.

Doesn't surprise me, but I'd be interested in the panics nonetheless.

johannes

Attachment: signature.asc
Description: This is a digitally signed message part


[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