From: Heiner Kallweit <hkallweit1@gmail.com>
To: Jakub Kicinski <kuba@kernel.org>,
David Miller <davem@davemloft.net>,
Simon Horman <horms@kernel.org>,
Andrew Lunn <andrew+netdev@lunn.ch>,
Eric Dumazet <edumazet@google.com>,
Paolo Abeni <pabeni@redhat.com>
Cc: "netdev@vger.kernel.org" <netdev@vger.kernel.org>
Subject: [PATCH net-next] net sysfs: remove deprecated empty wireless directory
Date: Sun, 8 Nov 2026 21:39:23 +0100 [thread overview]
Message-ID: <2af5fc30-4520-4768-bcdb-7b1058b39212@gmail.com> (raw)
Last known user of this deprecated feature was Fedora, until 2012.
See also 38c1a01cf10c ("wireless: add back sysfs directory").
This was 14yrs ago, let's remove the feature.
Link: https://github.com/fedora-sysv/initscripts/commit/4e96fcecee7ab70295a5f2c52748cd57cbab60bb
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
---
include/linux/netdevice.h | 2 +-
net/core/net-sysfs.c | 25 -------------------------
2 files changed, 1 insertion(+), 26 deletions(-)
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h
index 435be7880d7..ac943798abc 100644
--- a/include/linux/netdevice.h
+++ b/include/linux/netdevice.h
@@ -2484,7 +2484,7 @@ struct net_device {
struct dm_hw_stat_delta __rcu *dm_private;
#endif
struct device dev;
- const struct attribute_group *sysfs_groups[5];
+ const struct attribute_group *sysfs_groups[4];
const struct attribute_group *sysfs_rx_queue_group;
const struct rtnl_link_ops *rtnl_link_ops;
diff --git a/net/core/net-sysfs.c b/net/core/net-sysfs.c
index 5c0402389c6..cb8c82d1a4d 100644
--- a/net/core/net-sysfs.c
+++ b/net/core/net-sysfs.c
@@ -910,28 +910,6 @@ static const struct attribute_group netstat_group = {
.attrs = netstat_attrs,
};
-static struct attribute *wireless_attrs[] = {
- NULL
-};
-
-static const struct attribute_group wireless_group = {
- .name = "wireless",
- .attrs = wireless_attrs,
-};
-
-static bool wireless_group_needed(struct net_device *ndev)
-{
-#if IS_ENABLED(CONFIG_CFG80211)
- if (ndev->ieee80211_ptr)
- return true;
-#endif
-#if IS_ENABLED(CONFIG_WIRELESS_EXT)
- if (ndev->wireless_handlers)
- return true;
-#endif
- return false;
-}
-
#else /* CONFIG_SYSFS */
#define net_class_groups NULL
#endif /* CONFIG_SYSFS */
@@ -2370,9 +2348,6 @@ int netdev_register_kobject(struct net_device *ndev)
*groups++ = &netstat_group;
*groups++ = &netdev_phys_group;
-
- if (wireless_group_needed(ndev))
- *groups++ = &wireless_group;
#endif /* CONFIG_SYSFS */
/* Hold back the KOBJ_ADD uevent until the device is listed. */
--
2.56.0
next reply other threads:[~2026-11-08 20:39 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-08 20:39 Heiner Kallweit [this message]
2026-11-09 20:40 ` [PATCH net-next] net sysfs: remove deprecated empty wireless directory netdev-bot+sashiko
2026-11-09 21:07 ` Heiner Kallweit
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2af5fc30-4520-4768-bcdb-7b1058b39212@gmail.com \
--to=hkallweit1@gmail.com \
--cc=andrew+netdev@lunn.ch \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=horms@kernel.org \
--cc=kuba@kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox