← Back to team overview

kernel-packages team mailing list archive

[Bug 1024568] Re: wireless injection doesnt work due to channel bug


Waleed Hamra, checking for the patch noted in the Bug Description, it's
not available in <=Trusty, linux development, or linux-next.

Hence, could you please test the latest upstream kernel available (not the daily folder) following https://wiki.ubuntu.com/KernelMainlineBuilds ? It will allow additional upstream developers to examine the issue. Once you've tested the upstream kernel, please comment on which kernel version specifically you tested. If this bug is fixed in the mainline kernel, please add the following tags:

where VERSION-NUMBER is the version number of the kernel you tested. For example:

This can be done by clicking on the yellow circle with a black pencil icon next to the word Tags located at the bottom of the bug description. As well, please remove the tag:

If the mainline kernel does not fix this bug, please add the following tags:

As well, please remove the tag:

Once testing of the upstream kernel is complete, please mark this bug's
Status as Confirmed. Please let us know your results. Thank you for your

** Changed in: linux (Ubuntu)
   Importance: Medium => Low

** Changed in: linux (Ubuntu)
       Status: Confirmed => Triaged

** Changed in: linux (Ubuntu)
       Status: Triaged => Incomplete

You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.

  wireless injection doesnt work due to channel bug

Status in “linux” package in Ubuntu:

Bug description:
  amazingly enough, the linux kernel shipped with ubuntu has all that is
  needed for packet injection on wireless interfaces, if not for one bug
  making it useless. the bug is related to channel selection, which
  refuses to get set, showing up as -1 for other programs, like

  steps to reproduce:
  1- have a wireless card with drivers that can inject (i tested ralink drivers, rtl8192ce and iwlwifi)
  2- install aircrack (from source, or deb package - sadly, not available in precise, but debs from oneiric work)
  3- sudo airmon-ng start wlan0 1
  4- iwconfig (note the lack of channel frequency on created interface)
  5- run aireplay-ng in any mode except test mode, you'll get a complaint about negative channel.

  please note, verifying this bug with bleeding edge compat-wireless
  makes no sense at all, since major modifications to drivers have
  happened, and the current state of compat-wireless injection is
  riddled with regressions.

  fortunately, there is a simple solution, a patch available at:

  i took the time to download, on precise, the ubuntu linux source
  package, unpacked it, applied the supplied diff, applied the patch
  linked above, and ran the compilation as per instruction in the ubuntu
  wiki for compiling kernels. the end result was the  linux image,
  headers, and tools .deb packages, which i installed. then unloaded the
  wireless driver (i was on a laptop using iwlwifi, a centrino 6xxx
  card), and loaded it again (just to make sure the new one is loaded),
  and tested injection, worked flawlessly.

  so basically, it's just one patch, and you could make all people
  relying on injection, happy as they can work with stock distro kernels


  ProblemType: Bug
  DistroRelease: Ubuntu 12.04
  Package: linux-image-3.2.0-27-generic-pae 3.2.0-27.43
  ProcVersionSignature: Ubuntu 3.2.0-27.43-generic-pae 3.2.21
  Uname: Linux 3.2.0-27-generic-pae i686
  AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.24.
  ApportVersion: 2.0.1-0ubuntu11
  Architecture: i386
   **** List of CAPTURE Hardware Devices ****
   card 0: Intel [HDA Intel], device 0: ALC269VB Analog [ALC269VB Analog]
     Subdevices: 1/1
     Subdevice #0: subdevice #0
   /dev/snd/controlC0:  waleed     1646 F.... pulseaudio
   Card hw:0 'Intel'/'HDA Intel at 0xd5700000 irq 45'
     Mixer name	: 'Intel IbexPeak HDMI'
     Components	: 'HDA:10ec0269,1179fd38,00100100 HDA:80862804,1179ff00,00100000'
     Controls      : 36
     Simple ctrls  : 13
  Date: Sat Jul 14 01:12:46 2012
  InstallationMedia: Kubuntu 12.04 LTS "Precise Pangolin" - Release i386 (20120423)
  MachineType: TOSHIBA Satellite A665
  ProcFB: 0 inteldrmfb
  ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.2.0-27-generic-pae root=UUID=524A7D054A7CE6DF loop=/hostname/disks/root.disk ro crashkernel=384M-2G:64M,2G-:128M quiet splash vt.handoff=7
   linux-restricted-modules-3.2.0-27-generic-pae N/A
   linux-backports-modules-3.2.0-27-generic-pae  N/A
   linux-firmware                                1.79
  SourcePackage: linux
  StagingDrivers: mei
  UpgradeStatus: No upgrade log present (probably fresh install)
  dmi.bios.date: 12/23/10
  dmi.bios.vendor: TOSHIBA
  dmi.bios.version: 1.90
  dmi.board.asset.tag: Base Board Asset Tag
  dmi.board.name: NWQAA
  dmi.board.vendor: TOSHIBA
  dmi.board.version: 1.00
  dmi.chassis.asset.tag: *
  dmi.chassis.type: 9
  dmi.chassis.vendor: TOSHIBA
  dmi.chassis.version: N/A
  dmi.modalias: dmi:bvnTOSHIBA:bvr1.90:bd12/23/10:svnTOSHIBA:pnSatelliteA665:pvrPSAW0U-0FU033B:rvnTOSHIBA:rnNWQAA:rvr1.00:cvnTOSHIBA:ct9:cvrN/A:
  dmi.product.name: Satellite A665
  dmi.product.version: PSAW0U-0FU033B
  dmi.sys.vendor: TOSHIBA

To manage notifications about this bug go to: