diff options
-rw-r--r-- | Documentation/feature-removal-schedule.txt | 10 | ||||
-rw-r--r-- | net/core/net-sysfs.c | 4 | ||||
-rw-r--r-- | net/wireless/Kconfig | 11 |
3 files changed, 23 insertions, 2 deletions
diff --git a/Documentation/feature-removal-schedule.txt b/Documentation/feature-removal-schedule.txt index 8319c462c9f0..db300e09c9ac 100644 --- a/Documentation/feature-removal-schedule.txt +++ b/Documentation/feature-removal-schedule.txt | |||
@@ -333,3 +333,13 @@ Why: This option was introduced just to allow older lm-sensors userspace | |||
333 | to keep working over the upgrade to 2.6.26. At the scheduled time of | 333 | to keep working over the upgrade to 2.6.26. At the scheduled time of |
334 | removal fixed lm-sensors (2.x or 3.x) should be readily available. | 334 | removal fixed lm-sensors (2.x or 3.x) should be readily available. |
335 | Who: Rene Herman <rene.herman@gmail.com> | 335 | Who: Rene Herman <rene.herman@gmail.com> |
336 | |||
337 | --------------------------- | ||
338 | |||
339 | What: Code that is now under CONFIG_WIRELESS_EXT_SYSFS | ||
340 | (in net/core/net-sysfs.c) | ||
341 | When: After the only user (hal) has seen a release with the patches | ||
342 | for enough time, probably some time in 2010. | ||
343 | Why: Over 1K .text/.data size reduction, data is available in other | ||
344 | ways (ioctls) | ||
345 | Who: Johannes Berg <johannes@sipsolutions.net> | ||
diff --git a/net/core/net-sysfs.c b/net/core/net-sysfs.c index 3f7941319217..c1f4e0d428c0 100644 --- a/net/core/net-sysfs.c +++ b/net/core/net-sysfs.c | |||
@@ -318,7 +318,7 @@ static struct attribute_group netstat_group = { | |||
318 | .attrs = netstat_attrs, | 318 | .attrs = netstat_attrs, |
319 | }; | 319 | }; |
320 | 320 | ||
321 | #ifdef CONFIG_WIRELESS_EXT | 321 | #ifdef CONFIG_WIRELESS_EXT_SYSFS |
322 | /* helper function that does all the locking etc for wireless stats */ | 322 | /* helper function that does all the locking etc for wireless stats */ |
323 | static ssize_t wireless_show(struct device *d, char *buf, | 323 | static ssize_t wireless_show(struct device *d, char *buf, |
324 | ssize_t (*format)(const struct iw_statistics *, | 324 | ssize_t (*format)(const struct iw_statistics *, |
@@ -459,7 +459,7 @@ int netdev_register_kobject(struct net_device *net) | |||
459 | #ifdef CONFIG_SYSFS | 459 | #ifdef CONFIG_SYSFS |
460 | *groups++ = &netstat_group; | 460 | *groups++ = &netstat_group; |
461 | 461 | ||
462 | #ifdef CONFIG_WIRELESS_EXT | 462 | #ifdef CONFIG_WIRELESS_EXT_SYSFS |
463 | if (net->wireless_handlers && net->wireless_handlers->get_wireless_stats) | 463 | if (net->wireless_handlers && net->wireless_handlers->get_wireless_stats) |
464 | *groups++ = &wireless_group; | 464 | *groups++ = &wireless_group; |
465 | #endif | 465 | #endif |
diff --git a/net/wireless/Kconfig b/net/wireless/Kconfig index 79270903bda6..ab015c62d561 100644 --- a/net/wireless/Kconfig +++ b/net/wireless/Kconfig | |||
@@ -29,3 +29,14 @@ config WIRELESS_EXT | |||
29 | 29 | ||
30 | Say N (if you can) unless you know you need wireless | 30 | Say N (if you can) unless you know you need wireless |
31 | extensions for external modules. | 31 | extensions for external modules. |
32 | |||
33 | config WIRELESS_EXT_SYSFS | ||
34 | bool "Wireless extensions sysfs files" | ||
35 | default y | ||
36 | depends on WIRELESS_EXT && SYSFS | ||
37 | help | ||
38 | This option enables the deprecated wireless statistics | ||
39 | files in /sys/class/net/*/wireless/. The same information | ||
40 | is available via the ioctls as well. | ||
41 | |||
42 | Say Y if you have programs using it (we don't know of any). | ||