mirror of https://github.com/proski/madwifi
Fix support for Linux 2.6.0 - 2.6.2, which lack netdev_priv()
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4131 0192ed92-7a03-0410-a25b-9323aeb14dbd
This commit is contained in:
parent
eec6650615
commit
a09a469936
|
@ -188,7 +188,9 @@ typedef unsigned long resource_size_t;
|
|||
#define IRQF_SHARED SA_SHIRQ
|
||||
#endif
|
||||
|
||||
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,4,27)
|
||||
#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,4,27)) || \
|
||||
((LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)) && \
|
||||
((LINUX_VERSION_CODE < KERNEL_VERSION(2,6,3))))
|
||||
#define netdev_priv(_netdev) ((_netdev)->priv)
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in New Issue