remove wext/nl
Subsystems (3)
Johannes Berg
maintainerPATCH 1/1 remove wext/nl
This removes wireless extensions over netlink as per feature removal schedule.
Signed-off-by Johannes Berg <[email protected]>
---
Apparently the config symbol is already gone due to fixing up the kconfig rework patch. Heh.
--- Documentation/feature-removal-schedule.txt | 12 include/net/iw_handler.h | 10 net/core/rtnetlink.c | 30 - net/wireless/wext-old.c | 608 ----------------------------- 4 files changed, 660 deletions(-)
net/core/rtnetlink.c +0 -30
@@ -51,10 +51,6 @@#include <net/pkt_sched.h> #include <net/fib_rules.h> #include <net/netlink.h> -#ifdef CONFIG_NET_WIRELESS_RTNETLINK -#include <linux/wireless.h> -#include <net/iw_handler.h> -#endif /* CONFIG_NET_WIRELESS_RTNETLINK */ static DEFINE_MUTEX (rtnl_mutex);static struct sock *rtnl;
@@ -536,17 +532,6 @@ static int rtnl_setlink(struct sk_buff * modified =1 ; } -#ifdef CONFIG_NET_WIRELESS_RTNETLINK -if (tb[IFLA_WIRELESS ]) { -/* Call Wireless Extensions. -* Various stuff checked in there... */ - err =wireless_rtnetlink_set (dev,nla_data (tb[IFLA_WIRELESS ]), -nla_len (tb[IFLA_WIRELESS ])); -if (err <0 ) - goto errout_dev; - } -#endif /* CONFIG_NET_WIRELESS_RTNETLINK */ -if (tb[IFLA_BROADCAST ]) {nla_memcpy (dev->broadcast, tb[IFLA_BROADCAST ], dev->addr_len); send_addr_notify =1 ;
@@ -610,21 +595,6 @@ static int rtnl_getlink(struct sk_buff * }else return -EINVAL ; - -#ifdef CONFIG_NET_WIRELESS_RTNETLINK -if (tb[IFLA_WIRELESS ]) { -/* Call Wireless Extensions. We need to know the size before -* we can alloc. Various stuff checked in there... */ - err =wireless_rtnetlink_get (dev,nla_data (tb[IFLA_WIRELESS ]), -nla_len (tb[IFLA_WIRELESS ]), - &iw_buf, &iw_buf_len); -if (err <0 ) - goto errout; - - iw +=IW_EV_POINT_OFF ; - } -#endif /* CONFIG_NET_WIRELESS_RTNETLINK */ - nskb =nlmsg_new (if_nlmsg_size (iw_buf_len),GFP_KERNEL );if (nskb ==NULL ) { err = -ENOBUFS ;
net/wireless/wext-old.c +0 -608
614 lines not on this page · raw message
include/net/iw_handler.h +0 -10
@@ -433,16 +433,6 @@ struct iw_public_data {extern int dev_get_wireless_info (char * buffer,char **start,off_t offset,int length); -/* Handle RtNetlink requests, called in net/core/rtnetlink.c */ -extern int wireless_rtnetlink_set (struct net_device * dev, -char * data, -int len); -extern int wireless_rtnetlink_get (struct net_device * dev, -char * data, -int len, -char ** p_buf, -int * p_len); -/* Second : functions that may be called by driver modules */ /* Send a single event to user space */
Documentation/feature-removal-schedule.txt +0 -12
@@ -304,15 +304,3 @@ Why: The code says it was obsolete when Who: Richard Purdie <[email protected]> --------------------------- - -What: Wireless extensions over netlink (CONFIG_NET_WIRELESS_RTNETLINK) -When: with the merge of wireless-dev, 2.6.22 or later -Why: The option/code is - * not enabled on most kernels - * not required by any userspace tools (except an experimental one, - and even there only for some parts, others use ioctl) - * pointless since wext is no longer evolving and the ioctl - interface needs to be kept -Who: Johannes Berg <[email protected]> - ----------------------------