Package: aircrack-ng
Version: 1:1.0~rc3-2
Severity: normal
Tags: patch

Hello,

I tried  to build  ipw2200 driver on  2.6.31-rc6 with  injection support
thanks to  the patch provided in  aircrack-ng source, however  I get the
following error message:

  CC [M]  drivers/net/wireless/ipw2x00/ipw2200.o
drivers/net/wireless/ipw2x00/ipw2200.c:1930:5: warning: "LINUX_VERSION_CODE" is 
not defined
drivers/net/wireless/ipw2x00/ipw2200.c:1930:26: warning: "KERNEL_VERSION" is 
not defined
drivers/net/wireless/ipw2x00/ipw2200.c:1930:40: error: missing binary operator 
before token "("
drivers/net/wireless/ipw2x00/ipw2200.c:1984: warning: initialization from 
incompatible pointer type
make[6]: *** [drivers/net/wireless/ipw2x00/ipw2200.o] Erreur 1

I have attached  a trivial patch fixing this  issue. Hope that's correct
and it helps.

Regards,
Arnaud Fontaine

-- System Information:
Debian Release: squeeze/sid
  APT prefers experimental
  APT policy: (990, 'experimental'), (500, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.26-maggie-1
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages aircrack-ng depends on:
ii  iw                     0.9.14-1          tool for configuring Linux wireles
ii  libc6                  2.9-23            GNU C Library: Shared libraries
ii  libsqlite3-0           3.6.17-2          SQLite 3 shared library
ii  libssl0.9.8            0.9.8k-4          SSL shared libraries
ii  wireless-tools         30~pre8-1         Tools for manipulating Linux Wirel
ii  zlib1g                 1:1.2.3.3.dfsg-15 compression library - runtime

aircrack-ng recommends no packages.

aircrack-ng suggests no packages.

-- no debconf information

--- patches/ipw2200-1.1.4-inject.patch.orig	2009-03-26 22:01:02.000000000 +0100
+++ patches/ipw2200-1.1.4-inject.patch	2009-08-20 03:25:02.000000000 +0200
@@ -1,6 +1,15 @@
 diff -ur ipw2200-1.1.4/ipw2200.c ipw2200-1.1.4-inject/ipw2200.c
 --- ipw2200-1.1.4/ipw2200.c	2006-08-21 04:38:32.000000000 +0200
 +++ ipw2200-1.1.4-inject/ipw2200.c	2006-08-23 14:20:31.000000000 +0200
+@@ -30,6 +30,8 @@
+ 
+ ******************************************************************************/
+ 
++#include <linux/version.h>
++
+ #include "ipw2200.h"
+ 
+ 
 @@ -1945,6 +1945,66 @@
  static DEVICE_ATTR(net_stats, S_IWUSR | S_IRUGO,
  		   show_net_stats, store_net_stats);

Attachment: pgpMIR4bPF0LE.pgp
Description: PGP signature

Reply via email to