Search Linux Wireless

Re: mac80211, iwlwifi and packet injection

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

 



The reason for the oops is (almost certainly) that iwlwifi
wants to print the mac address.

7568 IWL_DEBUG_MAC80211("enter - id %d, type %d, MAC " MAC_FMT "\n",
7569 conf->if_id, conf->type, MAC_ARG(conf->mac_addr));

conf->mac_addr which is set to NULL before calling add_interface.
in ieee80211_start_hard_monitor
So this will not occur when you don't enable debug. And we should probably
check for that

In case you don't enable debug, iwlwifi will exit iwl_macc_add_interface
in the next if statement..

I'm believe that there are still other places where iwlwifi isn't
ready to inject packages into the network though. Would need some
work.

For the record, it would have been nice if you had copied the "oops"
in the mail. And that you had tested it on an untainted kernel...
some people really hate that otherwise ;-)

ian

Robert Führicht wrote:
> Hi,
> 
> I wanted to try out packet injection with my ipw3945 card, and was
> thrilled that there are patches by Andy Green for mac80211 that should
> make everything that is needed for this possible.
> 
> So I patched 2.6.23-rc3 with wireless-git's everything branch, but when
> attemting to inject, Andy's packetspammer (and aireplay -9
> from aircrack-ng 1.0-dev) hung.
> 
> After reporting this to him and several mails I switched on debugging
> flags, and modprobed iwl3945 with 'debug=0x43fff', ifconfig then oopsed:
> 
> modprobe iwl3945 debug=0x43fff
> iwconfig wlan0 mode monitor
> ifconfig wlan0 up
> --- OOPS --- (see attachment)
> 
> When omitting the debug parameter, ifconfig succeeds but the injection
> tools then hang. SysRq lets me reboot the system, as you can see in the
> syslog excerpt I provided.
> 
> I attached the .config I am using, the system in question is a Dell
> Inspiron 9400, running Gentoo Linux. Before attempting any of this, all
> unused processes were killed, leaving only udev, metalog and vixie-cron.
> And yes, I know it says the kernel is tainted, because of the nvidia
> module. Say so and I'll try again without it, but quite frankly, I
> don't think that makes a difference...
> 
> uname -a:
> Linux doppelhertz 2.6.23-rc3 #2 SMP PREEMPT Wed Aug 29 03:06:47 CEST
> 2007 x86_64 Intel(R) Core(TM)2 CPU T7200 @ 2.00GHz GenuineIntel
> GNU/Linux
> 
> Thanks in advance for your help,
> Robert
> 
-
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