aboutsummaryrefslogtreecommitdiffstats
path: root/net/core/net-sysfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/core/net-sysfs.c')
-rw-r--r--net/core/net-sysfs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/core/net-sysfs.c b/net/core/net-sysfs.c
index f47f319bb7d..44e69a21c32 100644
--- a/net/core/net-sysfs.c
+++ b/net/core/net-sysfs.c
@@ -329,7 +329,7 @@ static struct attribute_group netstat_group = {
329 .attrs = netstat_attrs, 329 .attrs = netstat_attrs,
330}; 330};
331 331
332#ifdef WIRELESS_EXT 332#ifdef CONFIG_WIRELESS_EXT
333/* helper function that does all the locking etc for wireless stats */ 333/* helper function that does all the locking etc for wireless stats */
334static ssize_t wireless_show(struct class_device *cd, char *buf, 334static ssize_t wireless_show(struct class_device *cd, char *buf,
335 ssize_t (*format)(const struct iw_statistics *, 335 ssize_t (*format)(const struct iw_statistics *,
@@ -462,7 +462,7 @@ int netdev_register_sysfs(struct net_device *net)
462 if (net->get_stats) 462 if (net->get_stats)
463 *groups++ = &netstat_group; 463 *groups++ = &netstat_group;
464 464
465#ifdef WIRELESS_EXT 465#ifdef CONFIG_WIRELESS_EXT
466 if (net->wireless_handlers && net->wireless_handlers->get_wireless_stats) 466 if (net->wireless_handlers && net->wireless_handlers->get_wireless_stats)
467 *groups++ = &wireless_group; 467 *groups++ = &wireless_group;
468#endif 468#endif