On 06/29/2011 12:43 PM, Sivaraman V wrote:
Dear Mr Md Shafi,
I tried every thing you said.
As advised by you I removed the widows device drive and ndiswrapper.
i down loaded latest compat driver 2011-06-28.
when I ran command "make" there were errors.
Just in case, there is no point in removing ndiswrapper until you
successfully compile and install the native driver.
I attach various outputs of dmesg and also the error message I got when I
ran the command "make".
The compile error was the only thing you needed to send, along with the
versions on compat-wireless and the kernel.
I have submitted a patch for that compile error. It only happens
because Debian backports netdev_name() to the kernel in which it's
normally not present.
I hope my patch will appear in compat-wireless soon. In the meantime,
you can apply it manually with the patch command. The patch is attached.
compat-wireless-2011-06-28 has another compile error, which was fixed in
compat-wireless-2011-06-29, so please test
compat-wireless-2011-06-29 with the attached patch.
when i run "make" the .o files get generted from
the kernel 2.6.33 and onwards like compat_2.6.33.o; 2.6.34.o and
corresponding .ko files etc.
Please don't top-post and don't quote irrelevant text!
--
Regards,
Pavel Roskin
compat: use macro for netdev_name() to support Debian kernel 2.6.32-5
From: Pavel Roskin <pro...@gnu.org>
Signed-off-by: Pavel Roskin <pro...@gnu.org>
Debian backports netdev_name as a function. As we cannot test if a
function is present, use an equivalent macro.
Reported by Sivaraman V <kru...@gmail.com> and Alex <alex9...@gmail.com>
---
include/linux/compat-2.6.34.h | 11 +++++------
1 files changed, 5 insertions(+), 6 deletions(-)
diff --git a/include/linux/compat-2.6.34.h b/include/linux/compat-2.6.34.h
index 9743d6c..bada700 100644
--- a/include/linux/compat-2.6.34.h
+++ b/include/linux/compat-2.6.34.h
@@ -20,12 +20,11 @@
/* netdev_printk helpers, similar to dev_printk */
-static inline const char *netdev_name(const struct net_device *dev)
-{
- if (dev->reg_state != NETREG_REGISTERED)
- return "(unregistered net_device)";
- return dev->name;
-}
+#ifndef netdev_name
+#define netdev_name(__dev) \
+ ((__dev->reg_state != NETREG_REGISTERED) ? \
+ "(unregistered net_device)" : __dev->name)
+#endif
#define netdev_printk(level, netdev, format, args...) \
dev_printk(level, (netdev)->dev.parent, \
_______________________________________________
ath9k-devel mailing list
ath9k-devel@lists.ath9k.org
https://lists.ath9k.org/mailman/listinfo/ath9k-devel