All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andy Green <andy@warmcat.com>
To: Jiri Benc <jbenc@suse.cz>
Cc: Johannes Berg <johannes@sipsolutions.net>,
	linux-wireless <linux-wireless@vger.kernel.org>
Subject: Re: [WIP] mac80211: kill mgmt interface
Date: Sat, 23 Jun 2007 09:29:32 +0100	[thread overview]
Message-ID: <467CD9EC.1020405@warmcat.com> (raw)
In-Reply-To: <467C003C.30803@warmcat.com>

Andy Green wrote:
> Jiri Benc wrote:
> 
>> On Fri, 22 Jun 2007 15:29:05 +0100, Andy Green wrote:
>>> But for any nontrivial use, you need to capture RX and not blindly
>>> inject, and so you have a monitor mode interface up anyway.
>> No, why? You can encapsulate received management frames (only the ones
>> that need to go to user space or so) in the same way and send them
>> through the regular interface.
> 
> For my usage case I want specific unencrypted packets filtered by a MAC
> address that isn't part of the authenticated network, so the reception
> action needs to be effectively promisc a la Monitor mode, not just
> "received management frames".  But I guess it can be done with IFF_PROMISC.
> 
> By piping everything down "wlan0" normal packets will not have the
> radiotap metadata on their capture, but presumably the abnormal packets
> can have it via a special ethernet frame type + radiotap header.  Maybe
> it doesn't matter for any actual use.

I've converted the injection patches and packetspammer[1] to use this
encapsulation method.  I added

#define ETH_P_80211_RT	0x001B		/* Radiotap + 80211 encapsulation */

to ./include/linux/if_ether.h to define the new ethtype.

My results at the moment are that my encapsulated injected packets are
dropped before reaching wlan0's dev->hard_start_xmit(), but if I send
them to a second network interface for the same device configured into
monitor mode, then they are injected correctly and go out on the air.

Any ideas about where to look or what to do about the packets getting
dropped on wlan0?  wlan0 is "up" and has its channel set, but is not
associated to anything during this test.

-Andy

[1] in git at http://git.warmcat.com

  reply	other threads:[~2007-06-23  8:30 UTC|newest]

Thread overview: 35+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-21  9:42 [WIP] mac80211: kill mgmt interface Johannes Berg
2007-06-21 12:35 ` Jiri Benc
2007-06-21 12:45   ` Johannes Berg
2007-06-21 13:14     ` Jiri Benc
2007-06-21 23:27       ` Andy Green
2007-06-22 13:45       ` Jiri Benc
2007-06-22 14:29         ` Andy Green
2007-06-22 15:30           ` Johannes Berg
2007-06-22 15:49             ` Jiri Benc
2007-06-22 20:20               ` Johannes Berg
2007-06-23  5:58                 ` Andy Green
2007-06-23  6:53                   ` Johannes Berg
2007-06-23  9:00                     ` Andy Green
2007-06-23 21:48                       ` Johannes Berg
2007-06-24  8:51                         ` Andy Green
2007-06-24  9:38                           ` Johannes Berg
2007-06-23 11:44                     ` Jiri Benc
2007-06-23 12:23                       ` Andy Green
2007-06-23 21:51                         ` Johannes Berg
2007-06-24  8:39                           ` Andy Green
2007-06-24 10:46                             ` Jiri Benc
2007-06-22 15:39           ` Jiri Benc
2007-06-22 17:00             ` Andy Green
2007-06-23  8:29               ` Andy Green [this message]
2007-06-23 21:41                 ` Johannes Berg
2007-06-21 13:35 ` Jouni Malinen
2007-06-22  5:05   ` Michael Wu
2007-06-22 10:12     ` Johannes Berg
2007-06-23  7:08   ` Johannes Berg
  -- strict thread matches above, loose matches on Subject: below --
2007-06-21 21:50 Joerg Pommnitz
2007-06-22  9:10 ` Johannes Berg
2007-06-22 13:15 ` Jiri Benc
2007-07-01  1:48   ` Cohen, Guy
2007-07-02 13:38 AW: " Joerg Pommnitz
2007-07-02 13:53 ` Jiri Benc
2007-07-04  6:13   ` Tomas Winkler

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=467CD9EC.1020405@warmcat.com \
    --to=andy@warmcat.com \
    --cc=jbenc@suse.cz \
    --cc=johannes@sipsolutions.net \
    --cc=linux-wireless@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.