From: Andy Green <andy@warmcat.com>
To: Johannes Berg <johannes@sipsolutions.net>
Cc: Ulrich Kunitz <kune@deine-taler.de>,
Jon Smirl <jonsmirl@gmail.com>, Daniel Drake <dsd@gentoo.org>,
linux-wireless@vger.kernel.org,
John Linville <linville@tuxdriver.com>
Subject: Re: Arrested Development
Date: Sun, 08 Jul 2007 22:46:36 +0100 [thread overview]
Message-ID: <46915B3C.6030609@warmcat.com> (raw)
In-Reply-To: <1183929814.3771.5.camel@johannes.berg>
Johannes Berg wrote:
> On Sun, 2007-07-08 at 22:37 +0200, Ulrich Kunitz wrote:
>
>> I just wrote a patch, which forwards now all the received packets
>> on ZD1211. Right now no FCS checks are done, so you will see
>> suspicous packets with strange packets in Wireshark. However you
>> can see now also packets going to other devices.
Thanks for the work Uli, but I couldn't get it to act any differently.
I didn't have the git-fu to magic your patchset on to wireless-dev, so I
tried it three ways, first trying to git clone your whole thing and
moving to the zd1211rw-dev branch ... but even when I was on that
branch, there was no drivers/net/wireless/mac80211 dir.
Then I tried taking a snapshot of the
drivers/net/wireless/mac80211/zd1211rw dir from the gitweb interface and
replacing it by hand using quilt, and lastly saving raw copies of your
17 patches and using quilt to put them on top of wireless-dev one by
one. The last two methods worked okay but the resulting module didn't
act any differently in terms of what it picked up on Monitor mode. I
confirmed it was the new module with md5sum.
> This isn't going to work properly when you add a sta interface and then
> a monitor interface, which afaict the driver doesn't prevent in
> zd_mac_open. Basically, it has the phy always follow the last-added
> virtual interface which doesn't seem right. Also, I might be missing
> something, but it shouldn't allow multiple sta interfaces, afaict it
> does now.
This is a bit of a general issue that has been discussed a couple of
times, not really to a resolution: how to deal with conflicting demands
of multiple interfaces on the same rx hardware. I guess it wants it to
be that if any interface is in Monitor then the hardware promisc is
enabled. IFF_PROMISC was discussed to be another way to select genuine
promisc rx as well.
FWIW my script looks like this:
modprobe -r zd1211rw-mac80211
modprobe -r rc80211_simple
modprobe -r mac80211
modprobe zd1211rw-mac80211
sleep 2s
ifconfig wlan0 up
echo -n mon0 >/sys/class/ieee80211/phy0/add_iface
iwconfig mon0 mode monitor
iwconfig mon0 channel 6
ifconfig mon0 up
-Andy
next prev parent reply other threads:[~2007-07-08 21:46 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-06 6:52 Arrested Development Andy Green
2007-07-06 11:07 ` Johannes Berg
2007-07-06 13:46 ` Daniel Drake
2007-07-06 13:50 ` Daniel Drake
2007-07-06 15:13 ` Andy Green
2007-07-08 14:00 ` Ulrich Kunitz
2007-07-08 16:22 ` Andy Green
2007-07-08 18:15 ` Ulrich Kunitz
2007-07-08 18:18 ` Michael Buesch
2007-07-08 18:29 ` Andy Green
2007-07-08 19:08 ` Johannes Berg
2007-07-09 0:40 ` Daniel Drake
2007-07-09 5:15 ` Johannes Berg
2007-07-08 18:42 ` Jon Smirl
2007-07-08 18:46 ` Andy Green
2007-07-08 19:04 ` Jon Smirl
2007-07-08 19:17 ` Andy Green
2007-07-08 20:37 ` Ulrich Kunitz
2007-07-08 21:23 ` Johannes Berg
2007-07-08 21:46 ` Andy Green [this message]
2007-07-08 22:38 ` Ulrich Kunitz
2007-07-08 22:55 ` Michael Buesch
2007-07-09 5:57 ` Uli Kunitz
2007-07-09 5:29 ` Andy Green
2007-07-08 22:44 ` Michael Wu
2007-07-09 5:15 ` Johannes Berg
2007-07-09 5:32 ` Andy Green
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=46915B3C.6030609@warmcat.com \
--to=andy@warmcat.com \
--cc=dsd@gentoo.org \
--cc=johannes@sipsolutions.net \
--cc=jonsmirl@gmail.com \
--cc=kune@deine-taler.de \
--cc=linux-wireless@vger.kernel.org \
--cc=linville@tuxdriver.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).