patch-2.3.34 linux/net/ipv4/af_inet.c

Next file: linux/net/ipv4/ip_output.c
Previous file: linux/net/ipv4/Config.in
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.33/linux/net/ipv4/af_inet.c linux/net/ipv4/af_inet.c
@@ -109,9 +109,9 @@
 #ifdef CONFIG_KMOD
 #include <linux/kmod.h>
 #endif
-#ifdef CONFIG_NET_RADIO
-#include <linux/wireless.h>
-#endif	/* CONFIG_NET_RADIO */
+#if defined(CONFIG_NET_RADIO) || defined(CONFIG_NET_PCMCIA_RADIO)
+#include <linux/wireless.h>		/* Note : will define WIRELESS_EXT */
+#endif	/* CONFIG_NET_RADIO || CONFIG_NET_PCMCIA_RADIO */
 
 #define min(a,b)	((a)<(b)?(a):(b))
 
@@ -887,10 +887,10 @@
 			    (cmd <= (SIOCDEVPRIVATE + 15)))
 				return(dev_ioctl(cmd,(void *) arg));
 
-#ifdef CONFIG_NET_RADIO
+#ifdef WIRELESS_EXT
 			if((cmd >= SIOCIWFIRST) && (cmd <= SIOCIWLAST))
 				return(dev_ioctl(cmd,(void *) arg));
-#endif
+#endif	/* WIRELESS_EXT */
 
 			if (sk->prot->ioctl==NULL || (err=sk->prot->ioctl(sk, cmd, arg))==-ENOIOCTLCMD)
 				return(dev_ioctl(cmd,(void *) arg));		

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)