Commit 761e9549 authored by Alexander Beregalov's avatar Alexander Beregalov Committed by Greg Kroah-Hartman

Staging: vt6655: fix build when !CONFIG_WIRELESS_EXT

Fix this build error when CONFIG_WIRELESS_EXT is not set:
drivers/staging/vt6655/device_main.c:1153: error: 'struct net_device'
	has no member named 'wireless_handlers'

Cc: Forest Bond <forest@alittletooquiet.net>
Signed-off-by: default avatarAlexander Beregalov <a.beregalov@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 5d1fe0c9
...@@ -1146,14 +1146,9 @@ device_found1(struct pci_dev *pcid, const struct pci_device_id *ent) ...@@ -1146,14 +1146,9 @@ device_found1(struct pci_dev *pcid, const struct pci_device_id *ent)
dev->irq = pcid->irq; dev->irq = pcid->irq;
dev->netdev_ops = &device_netdev_ops; dev->netdev_ops = &device_netdev_ops;
#ifdef WIRELESS_EXT #ifdef CONFIG_WIRELESS_EXT
//Einsn Modify for ubuntu-7.04
// dev->wireless_handlers->get_wireless_stats = iwctl_get_wireless_stats;
#if WIRELESS_EXT > 12
dev->wireless_handlers = (struct iw_handler_def *)&iwctl_handler_def; dev->wireless_handlers = (struct iw_handler_def *)&iwctl_handler_def;
// netdev->wireless_handlers = NULL; #endif
#endif /* WIRELESS_EXT > 12 */
#endif /* WIRELESS_EXT */
rc = register_netdev(dev); rc = register_netdev(dev);
if (rc) if (rc)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment