Package: zd1211
Severity: normal

Hello,

Using my other patch, allow me to use it with current development
kernel and then I started to receive a boring message.

(WE) : Driver using old /proc/net/wireless support, please fix driver !

So I did:

diff -Nur ../zd1211fix/src/zd1205.c src/zd1205.c
--- ../zd1211fix/src/zd1205.c   2005-09-21 19:44:39.173178568 -0300
+++ src/zd1205.c        2005-09-21 19:29:22.585521072 -0300
@@ -215,6 +215,7 @@
 static int zd1205wext_giwtxpow(struct net_device *dev, struct iw_request_info 
*info, struct iw_param *rrq, char *extra);
 static int zd1205wext_siwtxpow(struct net_device *dev, struct iw_request_info 
*info, struct iw_param *rrq, char *extra);
 static int zd1205wext_giwrange(struct net_device *dev, struct iw_request_info 
*info, struct iw_point *data, char *extra);
+struct iw_statistics *zd1205wext_iw_get_stats(struct net_device *dev);
 
 
 
@@ -404,6 +405,10 @@
 
 struct iw_handler_def p80211wext_handler_def =
         {
+# if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,10)
+               .get_wireless_stats = &zd1205wext_iw_get_stats,
+# endif
+
         num_standard:
                 sizeof(zd1205wext_handler) / sizeof(iw_handler),
         num_private:
diff -Nur ../zd1211fix/src/zd1211.c src/zd1211.c
--- ../zd1211fix/src/zd1211.c   2005-09-21 19:44:48.217803576 -0300
+++ src/zd1211.c        2005-09-21 19:43:29.850717184 -0300
@@ -1882,8 +1882,10 @@
 
         dev->wireless_handlers = (struct iw_handler_def 
*)&p80211wext_handler_def;
 
+# if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,10)
         /* ath_desc: added iw_get_stats */
         dev->get_wireless_stats = &zd1205wext_iw_get_stats;
+# endif
 #endif
 
         dev->hard_start_xmit = zd1205_xmit_frame;


-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (400, 'experimental')
Architecture: powerpc (ppc)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.14-rc2-gc90eef84
Locale: LANG=pt_BR, LC_CTYPE=pt_BR (charmap=ISO-8859-1)


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to