--- ipw3945.h.orig 2008-01-30 10:17:02.000000000 -0800 +++ ipw3945.h 2008-01-30 10:17:09.000000000 -0800 @@ -2414,6 +2414,18 @@ #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 { @@ -2565,6 +2577,8 @@ #define IPW_RATE_SCALE_MIN_SUCCESS_TH 8 #define IPW_RATE_SCALE_DECREASE_TH 1920 + + #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,14) static inline void *kzalloc(size_t size, unsigned __nocast flags) {