Changeset 4133 for madwifi/branches/madwifi-0.9.4/include/compat.h
- Timestamp:
- 06/20/10 14:13:10 (2 years ago)
- Files:
-
- madwifi/branches/madwifi-0.9.4/include/compat.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
madwifi/branches/madwifi-0.9.4/include/compat.h
r4103 r4133 66 66 #endif 67 67 68 #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,34) 69 #define netdev_for_each_mc_addr(mclist, dev) \ 70 for (mclist = dev->mc_list; mclist; mclist = mclist->next) 71 #endif 72 73 #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,35) 74 #define ath_netdev_hw_addr dev_mc_list 75 #define ath_ha_addr(ha) ha->dmi_addr 76 #else 77 #define ath_netdev_hw_addr netdev_hw_addr 78 #define ath_ha_addr(ha) ha->addr 79 #endif 80 68 81 /* 69 82 * BSD/Linux compatibility shims. These are used mainly to … … 154 167 #endif 155 168 156 #if LINUX_VERSION_CODE < KERNEL_VERSION(2,4,27) 169 #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,4,27)) || \ 170 ((LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)) && \ 171 ((LINUX_VERSION_CODE < KERNEL_VERSION(2,6,3)))) 157 172 #define netdev_priv(_netdev) ((_netdev)->priv) 158 173 #endif
