[ltp] errors with thinkpad-acpi 0.21 and compat-wireless
kionez
linux-thinkpad@linux-thinkpad.org
Tue, 08 Jul 2008 17:01:08 +0200
#include <kionez.h> // created 08/07/2008 16:15
> No problem, I try to downgrade compat-wireless until it compiles fine..
> (I want to have the iwlwifi led support, is a silly feature, but is
> useful in certain cases ;) )
Ok, the last working compat-wireless version is 2008-06-29 [1]
I try to trace differences between "current" and 2008-06-29 versions,
and i found few lines that redefines old RFKILL_STATE_ON\OFF to new one.
If I comment out these lines, iwlwifi (and iwl4965) compiles without
errors, and seems working fine.
Here's the little patch to compile thinkpad-acpi 0.21 and
compat-wireless > 2008-06-30 without errors. It simple comment out few
lines of code, in compat.h
I hope it's the right way to get it working ;)
k.
[1]:
http://www.orbit-lab.org/kernel/compat-wireless-2.6/2008/06/compat-wireless-2008-06-29.tar.bz2
---
diff -Naur compat-wireless-2008-07-08.orig/include/net/compat.h
compat-wireless-2008-07-08/include/net/compat.h
--- compat-wireless-2008-07-08.orig/include/net/compat.h
2008-07-08 06:11:18.000000000 +0200
+++ compat-wireless-2008-07-08/include/net/compat.h 2008-07-08
16:50:57.683069933 +0200
@@ -723,14 +723,14 @@
#endif /* (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,26)) */
-#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,27))
+//#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,27))
/* This is from include/linux/rfkill.h */
-#define RFKILL_STATE_SOFT_BLOCKED RFKILL_STATE_OFF
-#define RFKILL_STATE_UNBLOCKED RFKILL_STATE_ON
+//#define RFKILL_STATE_SOFT_BLOCKED RFKILL_STATE_OFF
+//#define RFKILL_STATE_UNBLOCKED RFKILL_STATE_ON
/* This one is new */
-#define RFKILL_STATE_HARD_BLOCKED 2
+//#define RFKILL_STATE_HARD_BLOCKED 2
-#endif /* (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,27)) */
+//#endif /* (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,27)) */
#endif /* LINUX_26_COMPAT_H */