diff -ruN madwifi-cvs/ath/if_ath.c madwifi/ath/if_ath.c --- madwifi-cvs/ath/if_ath.c 2005-08-07 21:27:26.000000000 +0100 +++ madwifi/ath/if_ath.c 2005-09-15 12:57:11.848152752 +0100 @@ -581,7 +581,9 @@ dev->change_mtu = &ath_change_mtu; dev->tx_queue_len = ATH_TXBUF; /* TODO? 1 for mgmt frame */ #ifdef CONFIG_NET_WIRELESS +# if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,10) dev->get_wireless_stats = ath_iw_getstats; +# endif ieee80211_ioctl_iwsetup(&ath_iw_handler_def); dev->wireless_handlers = &ath_iw_handler_def; #endif /* CONFIG_NET_WIRELESS */ @@ -5961,6 +5963,9 @@ static struct iw_handler_def ath_iw_handler_def = { #define N(a) (sizeof (a) / sizeof (a[0])) +# if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,10) + .get_wireless_stats = ath_iw_getstats, +# endif .standard = (iw_handler *) ath_handlers, .num_standard = N(ath_handlers), .private = (iw_handler *) ath_priv_handlers,