Search Linux Wireless

Re: Arrested Development

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

 



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
-
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