diff options
author | David S. Miller <davem@davemloft.net> | 2012-11-25 12:49:17 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-11-25 12:49:17 -0500 |
commit | 24bc518a6888e4c97add5a5ebbff11c1ccac219f (patch) | |
tree | d125270f4e8432cebcbc8af9079dece51dd798a0 /net/core | |
parent | b3e3bd71b429c04490d6a57671f2bbe2121d4f5a (diff) | |
parent | 194d9831f0419b5125dc94ec0ece4434d8ef74f0 (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
Conflicts:
drivers/net/wireless/iwlwifi/pcie/tx.c
Minor iwlwifi conflict in TX queue disabling between 'net', which
removed a bogus warning, and 'net-next' which added some status
register poking code.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core')
-rw-r--r-- | net/core/net-sysfs.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/net/core/net-sysfs.c b/net/core/net-sysfs.c index 1f8a13ce42e2..334efd5d67a9 100644 --- a/net/core/net-sysfs.c +++ b/net/core/net-sysfs.c | |||
@@ -432,6 +432,17 @@ static struct attribute_group netstat_group = { | |||
432 | .name = "statistics", | 432 | .name = "statistics", |
433 | .attrs = netstat_attrs, | 433 | .attrs = netstat_attrs, |
434 | }; | 434 | }; |
435 | |||
436 | #if IS_ENABLED(CONFIG_WIRELESS_EXT) || IS_ENABLED(CONFIG_CFG80211) | ||
437 | static struct attribute *wireless_attrs[] = { | ||
438 | NULL | ||
439 | }; | ||
440 | |||
441 | static struct attribute_group wireless_group = { | ||
442 | .name = "wireless", | ||
443 | .attrs = wireless_attrs, | ||
444 | }; | ||
445 | #endif | ||
435 | #endif /* CONFIG_SYSFS */ | 446 | #endif /* CONFIG_SYSFS */ |
436 | 447 | ||
437 | #ifdef CONFIG_RPS | 448 | #ifdef CONFIG_RPS |
@@ -1412,6 +1423,15 @@ int netdev_register_kobject(struct net_device *net) | |||
1412 | groups++; | 1423 | groups++; |
1413 | 1424 | ||
1414 | *groups++ = &netstat_group; | 1425 | *groups++ = &netstat_group; |
1426 | |||
1427 | #if IS_ENABLED(CONFIG_WIRELESS_EXT) || IS_ENABLED(CONFIG_CFG80211) | ||
1428 | if (net->ieee80211_ptr) | ||
1429 | *groups++ = &wireless_group; | ||
1430 | #if IS_ENABLED(CONFIG_WIRELESS_EXT) | ||
1431 | else if (net->wireless_handlers) | ||
1432 | *groups++ = &wireless_group; | ||
1433 | #endif | ||
1434 | #endif | ||
1415 | #endif /* CONFIG_SYSFS */ | 1435 | #endif /* CONFIG_SYSFS */ |
1416 | 1436 | ||
1417 | error = device_add(dev); | 1437 | error = device_add(dev); |