diff options
Diffstat (limited to 'net/core/net-sysfs.c')
-rw-r--r-- | net/core/net-sysfs.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/net/core/net-sysfs.c b/net/core/net-sysfs.c index effb78410eb..9b07535c288 100644 --- a/net/core/net-sysfs.c +++ b/net/core/net-sysfs.c | |||
@@ -543,8 +543,12 @@ int netdev_register_kobject(struct net_device *net) | |||
543 | *groups++ = &netstat_group; | 543 | *groups++ = &netstat_group; |
544 | 544 | ||
545 | #ifdef CONFIG_WIRELESS_EXT_SYSFS | 545 | #ifdef CONFIG_WIRELESS_EXT_SYSFS |
546 | if (net->wireless_handlers || net->ieee80211_ptr) | 546 | if (net->ieee80211_ptr) |
547 | *groups++ = &wireless_group; | 547 | *groups++ = &wireless_group; |
548 | #ifdef CONFIG_WIRELESS_EXT | ||
549 | else if (net->wireless_handlers) | ||
550 | *groups++ = &wireless_group; | ||
551 | #endif | ||
548 | #endif | 552 | #endif |
549 | #endif /* CONFIG_SYSFS */ | 553 | #endif /* CONFIG_SYSFS */ |
550 | 554 | ||