Hi all,

        The "dev->get_wireless_stats" field is deprecated and slowly
be surely going away. Most drivers have been updated months
ago. Actually, there is an annoying message for driver still using it,
but it seems that user of zd1201 were not annoyed enough ;-)
        Patch was compiled on 2.6.16. I don't have hardware, so it's
not tested, but I can't see how I could have messed up.

        Regards,

        Jean

Signed-off-by: Jean Tourrilhes <[EMAIL PROTECTED]>

---------------------------------------------------------

diff -u -p linux/drivers/usb/net/zd1201.19.c linux/drivers/usb/net/zd1201.c
--- linux/drivers/usb/net/zd1201.19.c   2006-03-14 16:05:33.000000000 -0800
+++ linux/drivers/usb/net/zd1201.c      2006-03-14 16:07:21.000000000 -0800
@@ -1737,6 +1737,7 @@ static const struct iw_handler_def zd120
        .standard               = (iw_handler *)zd1201_iw_handler,
        .private                = (iw_handler *)zd1201_private_handler,
        .private_args           = (struct iw_priv_args *) zd1201_private_args,
+       .get_wireless_stats     = zd1201_get_wireless_stats,
 };
 
 static int zd1201_probe(struct usb_interface *interface,
@@ -1799,7 +1800,6 @@ static int zd1201_probe(struct usb_inter
        zd->dev->open = zd1201_net_open;
        zd->dev->stop = zd1201_net_stop;
        zd->dev->get_stats = zd1201_get_stats;
-       zd->dev->get_wireless_stats = zd1201_get_wireless_stats;
        zd->dev->wireless_handlers =
            (struct iw_handler_def *)&zd1201_iw_handlers;
        zd->dev->hard_start_xmit = zd1201_hard_start_xmit;

-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to