]> err.no Git - linux-2.6/commitdiff
[PATCH] prism54 : WE-17 support
authorJean Tourrilhes <jt@hpl.hp.com>
Fri, 2 Sep 2005 18:42:56 +0000 (11:42 -0700)
committerJeff Garzik <jgarzik@pobox.com>
Wed, 7 Sep 2005 02:44:23 +0000 (22:44 -0400)
My patch that adds WE-17 support to the Prism54 driver went
already in the kernel, except for a tiny bit that was dropped on the
way. This is the missing bit....
Tested with 2.6.13 (with real HW).

Signed-off-by: Jean Tourrilhes <jt@hpl.hp.com>
Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
drivers/net/wireless/prism54/isl_ioctl.c
drivers/net/wireless/prism54/islpci_dev.c

index 0f29a9c7bc2cd6ded382198d06254f767f4e6e58..9a8790e3580c648d33f948717c38bc0d94a29728 100644 (file)
@@ -2727,6 +2727,9 @@ const struct iw_handler_def prism54_handler_def = {
        .standard = (iw_handler *) prism54_handler,
        .private = (iw_handler *) prism54_private_handler,
        .private_args = (struct iw_priv_args *) prism54_private_args,
+#if WIRELESS_EXT > 16
+       .get_wireless_stats = prism54_get_wireless_stats,
+#endif /* WIRELESS_EXT > 16 */
 #if WIRELESS_EXT == 16
        .spy_offset = offsetof(islpci_private, spy_data),
 #endif /* WIRELESS_EXT == 16 */
index efab07e9e24e0a37cfa624b57aa49060c9432e39..6f13d4a8e2d33805b93952d1663459afb7cd8995 100644 (file)
@@ -815,7 +815,6 @@ islpci_setup(struct pci_dev *pdev)
        ndev->open = &islpci_open;
        ndev->stop = &islpci_close;
        ndev->get_stats = &islpci_statistics;
-       ndev->get_wireless_stats = &prism54_get_wireless_stats;
        ndev->do_ioctl = &prism54_ioctl;
        ndev->wireless_handlers =
            (struct iw_handler_def *) &prism54_handler_def;
@@ -844,6 +843,8 @@ islpci_setup(struct pci_dev *pdev)
        /* Add pointers to enable iwspy support. */
        priv->wireless_data.spy_data = &priv->spy_data;
        ndev->wireless_data = &priv->wireless_data;
+#else  /* WIRELESS_EXT > 16 */
+       ndev->get_wireless_stats = &prism54_get_wireless_stats;
 #endif /* WIRELESS_EXT > 16 */
 
        /* save the start and end address of the PCI memory area */