|
@@ -318,7 +318,7 @@ static struct attribute_group netstat_group = {
|
|
.attrs = netstat_attrs,
|
|
.attrs = netstat_attrs,
|
|
};
|
|
};
|
|
|
|
|
|
-#ifdef CONFIG_WIRELESS_EXT
|
|
|
|
|
|
+#ifdef CONFIG_WIRELESS_EXT_SYSFS
|
|
/* helper function that does all the locking etc for wireless stats */
|
|
/* helper function that does all the locking etc for wireless stats */
|
|
static ssize_t wireless_show(struct device *d, char *buf,
|
|
static ssize_t wireless_show(struct device *d, char *buf,
|
|
ssize_t (*format)(const struct iw_statistics *,
|
|
ssize_t (*format)(const struct iw_statistics *,
|
|
@@ -459,7 +459,7 @@ int netdev_register_kobject(struct net_device *net)
|
|
#ifdef CONFIG_SYSFS
|
|
#ifdef CONFIG_SYSFS
|
|
*groups++ = &netstat_group;
|
|
*groups++ = &netstat_group;
|
|
|
|
|
|
-#ifdef CONFIG_WIRELESS_EXT
|
|
|
|
|
|
+#ifdef CONFIG_WIRELESS_EXT_SYSFS
|
|
if (net->wireless_handlers && net->wireless_handlers->get_wireless_stats)
|
|
if (net->wireless_handlers && net->wireless_handlers->get_wireless_stats)
|
|
*groups++ = &wireless_group;
|
|
*groups++ = &wireless_group;
|
|
#endif
|
|
#endif
|