how about using this as a guide: http://lwn.net/Articles/96491/ (which specifically show u where to make the change) And from here: http://lwn.net/Articles/150826/ The net_device structure has long contained a get_wireless_stats() method, used by wireless network drivers. A previous update of the wireless extensions API moved that method over to the iw_handler_def structure, but still continued to use the older form when present. Wireless extensions 19 maintains that compatibility a little longer, but now issues a warning when a driver uses the older API. And for WE-19: http://lwn.net/Articles/150384/ On Thu, Jan 1, 2009 at 2:22 AM, rajat swarup <rajats@xxxxxxxxx> wrote: > Hi, > I'm trying to port a Wireless Symbol LA3021 driver to Linux kernel > 2.6.21. I tried compiling the code but I get an error: > > ~/Desktop/la3021_0.1/spectrum24_cs.c:1642: error: 'struct net_device' > has no member named 'get_wireless_stats' > ~/Desktop/la3021_0.1/spectrum24_cs.c: In function 's24_config': > ~/Desktop/la3021_0.1/spectrum24_cs.c:1723: error: implicit declaration > of function 'SET_MODULE_OWNER' > make[2]: *** [~/Desktop/la3021_0.1/spectrum24_cs.o] Error 1 > > Upon reading the documentation for net_device, I realized that the > get_wireless_stats function has been replaced by the struct > iw_handler_def with the function pointer get_wireless_stats. > In the old code, I saw that the net_device pointer is initialized by: > > dev = alloc_etherdev(sizeof(s24_dev_t)); > > I was hoping someone could point me to some guidelines about how to port this. > > Thanks and regards, > Rajat. > > -- > To unsubscribe from this list: send an email with > "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx > Please read the FAQ at http://kernelnewbies.org/FAQ > > -- Regards, Peter Teoh Ernest Hemingway - "Never mistake motion for action." -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx Please read the FAQ at http://kernelnewbies.org/FAQ