aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorJohannes Berg <johannes@sipsolutions.net>2007-04-26 23:45:14 -0400
committerDavid S. Miller <davem@davemloft.net>2007-04-26 23:45:14 -0400
commit4b1e255384570138c2a823904796d46f628e8350 (patch)
tree41d1edda2a8532793151da2ade1c0909a68de17b /net
parent235c107ba08becb3ae6c3d3449c8b1053a5a9d75 (diff)
[WEXT]: Remove options.
This patch kills the two options in wext that are required to be enabled anyway because they influence the userspace API. Signed-off-by: Johannes Berg <johannes@sipsolutions.net> Signed-off-by: John W. Linville <linville@tuxdriver.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r--net/wireless/wext.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/net/wireless/wext.c b/net/wireless/wext.c
index 1db2be7ba2f2..dabc6453518a 100644
--- a/net/wireless/wext.c
+++ b/net/wireless/wext.c
@@ -101,12 +101,6 @@
101 101
102#include <asm/uaccess.h> /* copy_to_user() */ 102#include <asm/uaccess.h> /* copy_to_user() */
103 103
104/**************************** CONSTANTS ****************************/
105
106/* Options */
107#define WE_EVENT_RTNETLINK /* Propagate events using RtNetlink */
108#define WE_SET_EVENT /* Generate an event on some set commands */
109
110/************************* GLOBAL VARIABLES *************************/ 104/************************* GLOBAL VARIABLES *************************/
111/* 105/*
112 * You should not use global variables, because of re-entrancy. 106 * You should not use global variables, because of re-entrancy.
@@ -741,12 +735,10 @@ static int ioctl_standard_call(struct net_device * dev,
741 /* No extra arguments. Trivial to handle */ 735 /* No extra arguments. Trivial to handle */
742 ret = handler(dev, &info, &(iwr->u), NULL); 736 ret = handler(dev, &info, &(iwr->u), NULL);
743 737
744#ifdef WE_SET_EVENT
745 /* Generate an event to notify listeners of the change */ 738 /* Generate an event to notify listeners of the change */
746 if ((descr->flags & IW_DESCR_FLAG_EVENT) && 739 if ((descr->flags & IW_DESCR_FLAG_EVENT) &&
747 ((ret == 0) || (ret == -EIWCOMMIT))) 740 ((ret == 0) || (ret == -EIWCOMMIT)))
748 wireless_send_event(dev, cmd, &(iwr->u), NULL); 741 wireless_send_event(dev, cmd, &(iwr->u), NULL);
749#endif /* WE_SET_EVENT */
750 } else { 742 } else {
751 char * extra; 743 char * extra;
752 int extra_size; 744 int extra_size;
@@ -859,7 +851,6 @@ static int ioctl_standard_call(struct net_device * dev,
859 ret = -EFAULT; 851 ret = -EFAULT;
860 } 852 }
861 853
862#ifdef WE_SET_EVENT
863 /* Generate an event to notify listeners of the change */ 854 /* Generate an event to notify listeners of the change */
864 if ((descr->flags & IW_DESCR_FLAG_EVENT) && 855 if ((descr->flags & IW_DESCR_FLAG_EVENT) &&
865 ((ret == 0) || (ret == -EIWCOMMIT))) { 856 ((ret == 0) || (ret == -EIWCOMMIT))) {
@@ -871,7 +862,6 @@ static int ioctl_standard_call(struct net_device * dev,
871 wireless_send_event(dev, cmd, &(iwr->u), 862 wireless_send_event(dev, cmd, &(iwr->u),
872 extra); 863 extra);
873 } 864 }
874#endif /* WE_SET_EVENT */
875 865
876 /* Cleanup - I told you it wasn't that long ;-) */ 866 /* Cleanup - I told you it wasn't that long ;-) */
877 kfree(extra); 867 kfree(extra);
@@ -1121,7 +1111,6 @@ int wext_handle_ioctl(struct ifreq *ifr, unsigned int cmd,
1121 * Most often, the event will be propagated through rtnetlink 1111 * Most often, the event will be propagated through rtnetlink
1122 */ 1112 */
1123 1113
1124#ifdef WE_EVENT_RTNETLINK
1125/* ---------------------------------------------------------------- */ 1114/* ---------------------------------------------------------------- */
1126/* 1115/*
1127 * Locking... 1116 * Locking...
@@ -1225,8 +1214,6 @@ static inline void rtmsg_iwinfo(struct net_device * dev,
1225 tasklet_schedule(&wireless_nlevent_tasklet); 1214 tasklet_schedule(&wireless_nlevent_tasklet);
1226} 1215}
1227 1216
1228#endif /* WE_EVENT_RTNETLINK */
1229
1230/* ---------------------------------------------------------------- */ 1217/* ---------------------------------------------------------------- */
1231/* 1218/*
1232 * Main event dispatcher. Called from other parts and drivers. 1219 * Main event dispatcher. Called from other parts and drivers.
@@ -1305,10 +1292,8 @@ void wireless_send_event(struct net_device * dev,
1305 if (extra != NULL) 1292 if (extra != NULL)
1306 memcpy(((char *) event) + hdr_len, extra, extra_len); 1293 memcpy(((char *) event) + hdr_len, extra, extra_len);
1307 1294
1308#ifdef WE_EVENT_RTNETLINK
1309 /* Send via the RtNetlink event channel */ 1295 /* Send via the RtNetlink event channel */
1310 rtmsg_iwinfo(dev, (char *) event, event_len); 1296 rtmsg_iwinfo(dev, (char *) event, event_len);
1311#endif /* WE_EVENT_RTNETLINK */
1312 1297
1313 /* Cleanup */ 1298 /* Cleanup */
1314 kfree(event); 1299 kfree(event);