summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Ramsay <lack@gentoo.org>2008-02-11 15:45:21 +0000
committerJim Ramsay <lack@gentoo.org>2008-02-11 15:45:21 +0000
commitec21fbde374126efe5368a111a5e12218ddfcdf0 (patch)
treef6bb7756651edf8db33398d5ebc8995e5fe38ad3 /net-wireless/ipw3945/files
parentAdding new ipw3945 with 2.6.24 patch to p.mask until I can get a bit of testi... (diff)
downloadgentoo-2-ec21fbde374126efe5368a111a5e12218ddfcdf0.tar.gz
gentoo-2-ec21fbde374126efe5368a111a5e12218ddfcdf0.tar.bz2
gentoo-2-ec21fbde374126efe5368a111a5e12218ddfcdf0.zip
Adding upstream patch for kernel 2.6.24 compatibility
(Portage version: 2.1.4.1)
Diffstat (limited to 'net-wireless/ipw3945/files')
-rw-r--r--net-wireless/ipw3945/files/ipw3945-1.2.2-kernel-2.6.24.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/net-wireless/ipw3945/files/ipw3945-1.2.2-kernel-2.6.24.patch b/net-wireless/ipw3945/files/ipw3945-1.2.2-kernel-2.6.24.patch
new file mode 100644
index 000000000000..27f7304d7f01
--- /dev/null
+++ b/net-wireless/ipw3945/files/ipw3945-1.2.2-kernel-2.6.24.patch
@@ -0,0 +1,21 @@
+--- ipw3945.h.orig 2007-07-31 09:53:39.000000000 +0300
++++ ipw3945.h 2007-12-23 04:09:59.000000000 +0200
+@@ -2414,6 +2414,18 @@ enum {
+ #define IPW_ORD_TABLE_7_MASK 0x0000F700
+
+ /*
++ * For backword Kernel compatibility (after 2.6.24)
++ */
++#if !defined(MAC_ARG)
++#define MAC_ARG(x) ((u8*)(x))[0],((u8*)(x))[1],((u8*)(x))[2],((u8*)(x))[3],((u8*)(x))[4],((u8*)(x))[5]
++#endif
++
++#if !defined(SET_MODULE_OWNER)
++#define SET_MODULE_OWNER(dev) do { } while (0)
++#endif
++
++
++/*
+ * Table 0 Entries (all entries are 32 bits)
+ */
+ enum {