2.6.x net driver updates
Subsystems (3)
PATCH 1/1 2.6.x net driver updates
Please do a
bk pull bk://gkernel.bkbits.net/net-drivers-2.6
This will update the following files:
include/net/iw_handler.h | 8 ++++---- net/core/wireless.c | 9 +++++++-- 2 files changed, 11 insertions(+), 6 deletions(-)
through these ChangeSets:
<[email protected]> (04/11/05 1.2465)
[PATCH] Wireless Extension dropped patchlet
This tiny bit of the last WE-17 patch was lost between me and
you. I initially decided to wait to resubmit, but Chris Wedgwood reported that the MadWifi driver needs it. Sorry for not having pushed harder.
I recreated this patch, and tested with 2.6.10-rc1, and Chris
tested it with MadWifi. Would you mind pushing that up to Linus ?
Changelog :
o remove unneeded const
o spelling + comments
Signed-off-by Jean Tourrilhes <[email protected]>
Signed-off-by Jeff Garzik <[email protected]>
include/net/iw_handler.h +4 -4
@@ -314,10 +314,10 @@ {/* Number of handlers defined (more precisely, index of the * last defined handler + 1) */ -const __u16 num_standard; -const __u16 num_private; +__u16 num_standard; +__u16 num_private;/* Number of private arg description */ -const __u16 num_private_args; +__u16 num_private_args;/* Array of handlers for standard ioctls * We will call dev->wireless_handlers->standard[ioctl - SIOCSIWNAME]
@@ -335,7 +335,7 @@const struct iw_priv_args * private_args;/* This field will be *removed* in the next version of WE */ -const long spy_offset;/* DO NOT USE */ +long spy_offset;/* DO NOT USE */ /* New location of get_wireless_stats, to de-bloat struct net_device. * The old pointer in struct net_device will be gradually phased
net/core/wireless.c +7 -2
@@ -52,7 +52,8 @@* v6 - 18.06.04 - Jean II * o Change get_spydata() method for added safety * o Remove spy #ifdef, they are always on -> cleaner code -* o Allow any size GET request is user specifies length > max +* o Allow any size GET request if user specifies length > max +* and if request has IW_DESCR_FLAG_NOMAX flag or is SIOCGIWPRIV * o Start migrating get_wireless_stats to struct iw_handler_def * o Add wmb() in iw_handler_set_spy() for non-coherent archs/cpus * Based on patch from Pavel Roskin <[email protected]> :
@@ -690,6 +691,10 @@* we can support any size GET requests. * There is still a limit : -ENOMEM. */ extra_size = user_length * descr->token_size; +/* Note : user_length is originally a __u16, +* and token_size is controlled by us, +* so extra_size won't get negative and +* won't overflow... */ } }
@@ -1227,7 +1232,7 @@/* We want to operate without locking, because wireless_spy_update() * most likely will happen in the interrupt handler, and therefore -* have it own locking constraints and needs performance. +* have its own locking constraints and needs performance. * The rtnl_lock() make sure we don't race with the other iw_handlers. * This make sure wireless_spy_update() "see" that the spy list * is temporarily disabled. */