[Problem] Atheros Lan Drivers Installation in CentOS 5.4 x_64

During the installation of a new server, I faced the problem about installing the linux driver of Atheros Lan Driver.

It showed
kcompat.h:1561:error redefinition of 'struct napi_struct'
and stopped installation.

############# Solution ##############
I solved it by deleting some code in kcompat.h
the following were deleted
#if ( LINUX_VERSION_CODE < KERNEL_VERSION(2,6,24) ) /* NAPI API changes in 2.6.24 break everything */ struct napi_struct { /* used to look up the real NAPI polling routine */ int (*poll)(struct napi_struct *, int); int weight; };

and


#endif /* _KCOMPAT_H_ */

This Post Has One Comment

  1. Sandeep Gurung

    WoW….thank you. It solved the problem ……… 🙂

Leave a Reply

 

This site uses Akismet to reduce spam. Learn how your comment data is processed.