All of lore.kernel.org
 help / color / mirror / Atom feed
* iwlwifi injection bug
@ 2008-05-16 13:47 Johannes Berg
       [not found] ` <69e28c910805160812g1c88d796m6133cb36586cc8e8@mail.gmail.com>
  2008-05-20  2:15 ` Zhu Yi
  0 siblings, 2 replies; 16+ messages in thread
From: Johannes Berg @ 2008-05-16 13:47 UTC (permalink / raw)
  To: Zhu Yi; +Cc: linux-wireless, Andy Green

[-- Attachment #1: Type: text/plain, Size: 628 bytes --]

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

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 828 bytes --]

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2008-05-20 16:05 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-16 13:47 iwlwifi injection bug Johannes Berg
     [not found] ` <69e28c910805160812g1c88d796m6133cb36586cc8e8@mail.gmail.com>
2008-05-16 15:30   ` Johannes Berg
2008-05-20  2:15 ` Zhu Yi
2008-05-20  9:13   ` Johannes Berg
2008-05-20  9:29     ` Zhu Yi
2008-05-20 11:32   ` Stefanik Gábor
2008-05-20 12:38     ` Johannes Berg
2008-05-20 13:14       ` Stefanik Gábor
2008-05-20 13:41         ` Tomas Winkler
2008-05-20 14:16           ` Stefanik Gábor
2008-05-20 14:24             ` Stefanik Gábor
2008-05-20 14:27             ` Johannes Berg
2008-05-20 14:58               ` Stefanik Gábor
2008-05-20 15:18                 ` Johannes Berg
2008-05-20 15:39                   ` Stefanik Gábor
2008-05-20 16:04                     ` Johannes Berg

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.