Skip to contentSkip to conversation

Wireless Extension v17 for Linus

PATCH New Jean Tourrilhes 1 participant 1 message Aug 4, 2004

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Wireless Extension v17 for Linus

Hi Jeff,

This is the patch to migrate Wireless Extension from WE-16 to
WE-17 for kernel 2.6.X. I would like you to queue that patch and submit it to Linus as soon as 2.6.8 is released (so it can be fully tested during 2.6.9). If you want, I can resend that as soon as 2.6.8 is released.

The patch is basically unchanged compared to the version
posted to the netdev list and my web page one month ago, I just re-diff to the latest kernel (2.6.8-rc2-bk12). The patch already included feedback from various driver maintainers, and nobody else complained, so I guess it's ready.
The patch for some drivers inside the kernel will follow
(airo.c, wavelan.c, wavelan_cs). Patch for various other drivers (orinoco, hostap, prism54) have been sent already to their maintainers (one month ago) and basically waiting for this patch.

Changelog :
* - Add flags to frequency -> auto/fixed
* - Document (struct iw_quality *)->updated, add new flags (INVALID)
* - Wireless Event capability in struct iw_range
* - Add support for relative TxPower (yick !)
* - Change the way we get to spy_data method for added safety and hostap
* - Remove spy #ifdef, they are always on -> cleaner code
* - Allow any size GET request if user specifies length > max
* - Start migrating get_wireless_stats to struct iw_handler_def
* Based on patch from Pavel Roskin <[email protected]> :
* - Fix kernel data leak to user space in private handler handling

I also added on my page a version of Wireless Tools that use
RtNetlink instead of ioctls. This is not as clean as I would like, but is fully functional (if you have WE-19). I know that you were interested, so feel free to send feedback on that...

	Have fun...

	Jean

--------------------------------------------------------------------

include/linux/netdevice.h renamed from include/linux/netdevice.we16.h +3 -1
diff -u -p linux/include/linux/netdevice.we16.h linux/include/linux/netdevice.h
@@ -304,7 +304,9 @@ struct net_device
 
 	/* List of functions to handle Wireless Extensions (instead of ioctl).
 	 * See <net/iw_handler.h> for details. Jean II */
-	struct iw_handler_def *	wireless_handlers;
+	const struct iw_handler_def *	wireless_handlers;
+	/* Instance data managed by the core of Wireless Extensions. */
+	struct iw_public_data *	wireless_data;
 
 	struct ethtool_ops *ethtool_ops;
 
include/linux/wireless.h renamed from include/linux/wireless.we16.h +52 -12

138 lines not on this page · raw message

include/net/iw_handler.h renamed from include/net/iw_handler.we16.h +42 -18

131 lines not on this page · raw message

net/core/dev.c renamed from net/core/dev.we16.c +1 -1
diff -u -p linux/net/core/dev.we16.c linux/net/core/dev.c
@@ -2787,7 +2787,7 @@ int dev_ioctl(unsigned int cmd, void __u
 				/* Follow me in net/core/wireless.c */
 				ret = wireless_process_ioctl(&ifr, cmd);
 				rtnl_unlock();
-				if (!ret && IW_IS_GET(cmd) &&
+				if (IW_IS_GET(cmd) &&
 				    copy_to_user(arg, &ifr,
 					    	 sizeof(struct ifreq)))
 					ret = -EFAULT;
net/core/wireless.c renamed from net/core/wireless.we16.c +146 -66

447 lines not on this page · raw message