From: Johannes Berg Date: Fri, 27 Apr 2007 03:48:23 +0000 (-0700) Subject: [WEXT] net_device: Don't include wext bits if not required. X-Git-Tag: v2.6.22-rc1~1128^2~5 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=b86e0280bb5585a610783ff5392d9d439dee7ddd;p=karo-tx-linux.git [WEXT] net_device: Don't include wext bits if not required. This patch makes the wext bits in struct net_device depend on CONFIG_WIRELESS_EXT. Signed-off-by: Johannes Berg Signed-off-by: John W. Linville Signed-off-by: David S. Miller --- diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index 584c199ec2d5..e027a3750a77 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h @@ -352,12 +352,13 @@ struct net_device struct net_device_stats* (*get_stats)(struct net_device *dev); struct net_device_stats stats; +#ifdef CONFIG_WIRELESS_EXT /* List of functions to handle Wireless Extensions (instead of ioctl). * See for details. Jean II */ const struct iw_handler_def * wireless_handlers; /* Instance data managed by the core of Wireless Extensions. */ struct iw_public_data * wireless_data; - +#endif const struct ethtool_ops *ethtool_ops; /*