--- 2008_0723_RT61_Linux_STA_v1.1.2.2/Module/rtmp_main.c 2008-05-06 00:26:50.000000000 +1000 +++ rtmp_main.c 2008-10-17 16:29:06.000000000 +1100 @@ -340,11 +340,19 @@ #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,5,0) //--> Benson add 20080505, for Linux_kernel > 2,6,24 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,24) - struct net *net; + struct net *net; +// BUG_ON(!net_dev->nd_net); +// net = net_dev->nd_net; + +// device = dev_get_by_name(net, slot_name); +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,26) + device = dev_get_by_name(dev_net(net), slot_name); +#else BUG_ON(!net_dev->nd_net); - net = net_dev->nd_net; + net = net_dev->nd_net; + device = dev_get_by_name(net, slot_name); +#endif - device = dev_get_by_name(net, slot_name); #else device = dev_get_by_name(slot_name); #endif