diff options
-rw-r--r-- | Documentation/feature-removal-schedule.txt | 9 | ||||
-rw-r--r-- | net/core/net-sysfs.c | 74 | ||||
-rw-r--r-- | net/wireless/Kconfig | 13 |
3 files changed, 0 insertions, 96 deletions
diff --git a/Documentation/feature-removal-schedule.txt b/Documentation/feature-removal-schedule.txt index 56000b33340b..0258e3d06280 100644 --- a/Documentation/feature-removal-schedule.txt +++ b/Documentation/feature-removal-schedule.txt | |||
@@ -249,15 +249,6 @@ Who: Ravikiran Thirumalai <kiran@scalex86.org> | |||
249 | 249 | ||
250 | --------------------------- | 250 | --------------------------- |
251 | 251 | ||
252 | What: Code that is now under CONFIG_WIRELESS_EXT_SYSFS | ||
253 | (in net/core/net-sysfs.c) | ||
254 | When: 3.5 | ||
255 | Why: Over 1K .text/.data size reduction, data is available in other | ||
256 | ways (ioctls) | ||
257 | Who: Johannes Berg <johannes@sipsolutions.net> | ||
258 | |||
259 | --------------------------- | ||
260 | |||
261 | What: sysfs ui for changing p4-clockmod parameters | 252 | What: sysfs ui for changing p4-clockmod parameters |
262 | When: September 2009 | 253 | When: September 2009 |
263 | Why: See commits 129f8ae9b1b5be94517da76009ea956e89104ce8 and | 254 | Why: See commits 129f8ae9b1b5be94517da76009ea956e89104ce8 and |
diff --git a/net/core/net-sysfs.c b/net/core/net-sysfs.c index fdf9e61d0651..72607174ea5a 100644 --- a/net/core/net-sysfs.c +++ b/net/core/net-sysfs.c | |||
@@ -417,72 +417,6 @@ static struct attribute_group netstat_group = { | |||
417 | .name = "statistics", | 417 | .name = "statistics", |
418 | .attrs = netstat_attrs, | 418 | .attrs = netstat_attrs, |
419 | }; | 419 | }; |
420 | |||
421 | #ifdef CONFIG_WIRELESS_EXT_SYSFS | ||
422 | /* helper function that does all the locking etc for wireless stats */ | ||
423 | static ssize_t wireless_show(struct device *d, char *buf, | ||
424 | ssize_t (*format)(const struct iw_statistics *, | ||
425 | char *)) | ||
426 | { | ||
427 | struct net_device *dev = to_net_dev(d); | ||
428 | const struct iw_statistics *iw; | ||
429 | ssize_t ret = -EINVAL; | ||
430 | |||
431 | if (!rtnl_trylock()) | ||
432 | return restart_syscall(); | ||
433 | if (dev_isalive(dev)) { | ||
434 | iw = get_wireless_stats(dev); | ||
435 | if (iw) | ||
436 | ret = (*format)(iw, buf); | ||
437 | } | ||
438 | rtnl_unlock(); | ||
439 | |||
440 | return ret; | ||
441 | } | ||
442 | |||
443 | /* show function template for wireless fields */ | ||
444 | #define WIRELESS_SHOW(name, field, format_string) \ | ||
445 | static ssize_t format_iw_##name(const struct iw_statistics *iw, char *buf) \ | ||
446 | { \ | ||
447 | return sprintf(buf, format_string, iw->field); \ | ||
448 | } \ | ||
449 | static ssize_t show_iw_##name(struct device *d, \ | ||
450 | struct device_attribute *attr, char *buf) \ | ||
451 | { \ | ||
452 | return wireless_show(d, buf, format_iw_##name); \ | ||
453 | } \ | ||
454 | static DEVICE_ATTR(name, S_IRUGO, show_iw_##name, NULL) | ||
455 | |||
456 | WIRELESS_SHOW(status, status, fmt_hex); | ||
457 | WIRELESS_SHOW(link, qual.qual, fmt_dec); | ||
458 | WIRELESS_SHOW(level, qual.level, fmt_dec); | ||
459 | WIRELESS_SHOW(noise, qual.noise, fmt_dec); | ||
460 | WIRELESS_SHOW(nwid, discard.nwid, fmt_dec); | ||
461 | WIRELESS_SHOW(crypt, discard.code, fmt_dec); | ||
462 | WIRELESS_SHOW(fragment, discard.fragment, fmt_dec); | ||
463 | WIRELESS_SHOW(misc, discard.misc, fmt_dec); | ||
464 | WIRELESS_SHOW(retries, discard.retries, fmt_dec); | ||
465 | WIRELESS_SHOW(beacon, miss.beacon, fmt_dec); | ||
466 | |||
467 | static struct attribute *wireless_attrs[] = { | ||
468 | &dev_attr_status.attr, | ||
469 | &dev_attr_link.attr, | ||
470 | &dev_attr_level.attr, | ||
471 | &dev_attr_noise.attr, | ||
472 | &dev_attr_nwid.attr, | ||
473 | &dev_attr_crypt.attr, | ||
474 | &dev_attr_fragment.attr, | ||
475 | &dev_attr_retries.attr, | ||
476 | &dev_attr_misc.attr, | ||
477 | &dev_attr_beacon.attr, | ||
478 | NULL | ||
479 | }; | ||
480 | |||
481 | static struct attribute_group wireless_group = { | ||
482 | .name = "wireless", | ||
483 | .attrs = wireless_attrs, | ||
484 | }; | ||
485 | #endif | ||
486 | #endif /* CONFIG_SYSFS */ | 420 | #endif /* CONFIG_SYSFS */ |
487 | 421 | ||
488 | #ifdef CONFIG_RPS | 422 | #ifdef CONFIG_RPS |
@@ -1463,14 +1397,6 @@ int netdev_register_kobject(struct net_device *net) | |||
1463 | groups++; | 1397 | groups++; |
1464 | 1398 | ||
1465 | *groups++ = &netstat_group; | 1399 | *groups++ = &netstat_group; |
1466 | #ifdef CONFIG_WIRELESS_EXT_SYSFS | ||
1467 | if (net->ieee80211_ptr) | ||
1468 | *groups++ = &wireless_group; | ||
1469 | #ifdef CONFIG_WIRELESS_EXT | ||
1470 | else if (net->wireless_handlers) | ||
1471 | *groups++ = &wireless_group; | ||
1472 | #endif | ||
1473 | #endif | ||
1474 | #endif /* CONFIG_SYSFS */ | 1400 | #endif /* CONFIG_SYSFS */ |
1475 | 1401 | ||
1476 | error = device_add(dev); | 1402 | error = device_add(dev); |
diff --git a/net/wireless/Kconfig b/net/wireless/Kconfig index 2e4444fedbe0..8dba3c60794a 100644 --- a/net/wireless/Kconfig +++ b/net/wireless/Kconfig | |||
@@ -119,19 +119,6 @@ config CFG80211_WEXT | |||
119 | Enable this option if you need old userspace for wireless | 119 | Enable this option if you need old userspace for wireless |
120 | extensions with cfg80211-based drivers. | 120 | extensions with cfg80211-based drivers. |
121 | 121 | ||
122 | config WIRELESS_EXT_SYSFS | ||
123 | bool "Wireless extensions sysfs files" | ||
124 | depends on WEXT_CORE && SYSFS | ||
125 | help | ||
126 | This option enables the deprecated wireless statistics | ||
127 | files in /sys/class/net/*/wireless/. The same information | ||
128 | is available via the ioctls as well. | ||
129 | |||
130 | Say N. If you know you have ancient tools requiring it, | ||
131 | like very old versions of hal (prior to 0.5.12 release), | ||
132 | say Y and update the tools as soon as possible as this | ||
133 | option will be removed soon. | ||
134 | |||
135 | config LIB80211 | 122 | config LIB80211 |
136 | tristate "Common routines for IEEE802.11 drivers" | 123 | tristate "Common routines for IEEE802.11 drivers" |
137 | default n | 124 | default n |