diff -p -up 2008_0708_RT2860_Linux_STA_v1.7.0.0/os/linux/rt_main_dev.c.orig 2008_0708_RT2860_Linux_STA_v1.7.0.0/os/linux/rt_main_dev.c --- 2008_0708_RT2860_Linux_STA_v1.7.0.0/os/linux/rt_main_dev.c.orig 2008-07-29 11:07:09.000000000 -0300 +++ 2008_0708_RT2860_Linux_STA_v1.7.0.0/os/linux/rt_main_dev.c 2008-07-29 11:19:08.000000000 -0300 @@ -801,7 +801,11 @@ static NDIS_STATUS rt_ieee80211_if_setup #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,5,0) #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,24) +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,26) + device = dev_get_by_name(dev_net(dev), slot_name); +#else device = dev_get_by_name(dev->nd_net, slot_name); +#endif #else device = dev_get_by_name(slot_name); #endif