]> err.no Git - linux-2.6/commitdiff
[PATCH] wl3501_cs : WE-17 support
authorJean Tourrilhes <jt@hpl.hp.com>
Fri, 2 Sep 2005 18:37:38 +0000 (11:37 -0700)
committerJeff Garzik <jgarzik@pobox.com>
Wed, 7 Sep 2005 02:44:23 +0000 (22:44 -0400)
wl3501_cs won't compile with WE-19. This patches fixes it.

Signed-off-by: Jean Tourrilhes <jt@hpl.hp.com>
Acked-by: Arnaldo Carvalho de Melo <acme@conectiva.com.br>
Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
drivers/net/wireless/wl3501.h
drivers/net/wireless/wl3501_cs.c

index b5719437e981a680ec655863e89bed5ce88379ec..7fcbe589c3f2bf4808284e1dfc595c8127fb6589 100644 (file)
@@ -609,6 +609,7 @@ struct wl3501_card {
        struct net_device_stats         stats;
        struct iw_statistics            wstats;
        struct iw_spy_data              spy_data;
+       struct iw_public_data           wireless_data;
        struct dev_node_t               node;
 };
 #endif
index 7cc5edbf6edee7f4c41bfd8503319801c19a208c..3f8c27f0871be01905cf61458845304e8e4e210d 100644 (file)
@@ -1944,7 +1944,7 @@ static const iw_handler   wl3501_handler[] = {
 static const struct iw_handler_def wl3501_handler_def = {
        .num_standard   = sizeof(wl3501_handler) / sizeof(iw_handler),
        .standard       = (iw_handler *)wl3501_handler,
-       .spy_offset     = offsetof(struct wl3501_card, spy_data),
+       .get_wireless_stats = wl3501_get_wireless_stats,
 };
 
 /**
@@ -1961,6 +1961,7 @@ static dev_link_t *wl3501_attach(void)
        client_reg_t client_reg;
        dev_link_t *link;
        struct net_device *dev;
+       struct wl3501_card *this;
        int ret;
 
        /* Initialize the dev_link_t structure */
@@ -1995,7 +1996,9 @@ static dev_link_t *wl3501_attach(void)
        dev->tx_timeout         = wl3501_tx_timeout;
        dev->watchdog_timeo     = 5 * HZ;
        dev->get_stats          = wl3501_get_stats;
-       dev->get_wireless_stats = wl3501_get_wireless_stats;
+       this = dev->priv;
+       this->wireless_data.spy_data = &this->spy_data;
+       dev->wireless_data      = &this->wireless_data;
        dev->wireless_handlers  = (struct iw_handler_def *)&wl3501_handler_def;
        SET_ETHTOOL_OPS(dev, &ops);
        netif_stop_queue(dev);