Messages in this thread |  | | Date | Mon, 15 Oct 2001 09:37:05 -0700 | Subject | Re: Wireless Extension update | From | Jean Tourrilhes <> |
| |
On Sun, Oct 14, 2001 at 05:08:16PM -0700, H. Peter Anvin wrote: > Followup to: <20011008191247.B6816@bougret.hpl.hp.com> > By author: Jean Tourrilhes <jt@bougret.hpl.hp.com> > In newsgroup: linux.dev.kernel > > /* -------------------------- IOCTL LIST -------------------------- */ > > @@ -137,6 +144,8 @@ > > #define SIOCGIWRANGE 0x8B0B /* Get range of parameters */ > > #define SIOCSIWPRIV 0x8B0C /* Unused */ > > #define SIOCGIWPRIV 0x8B0D /* get private ioctl interface info */ > > +#define SIOCSIWSTATS 0x8B0E /* Unused */ > > +#define SIOCGIWSTATS 0x8B0F /* Get /proc/net/wireless stats */ > > > > /* Mobile IP support */ > > #define SIOCSIWSPY 0x8B10 /* set spy addresses */ > > @@ -177,11 +186,33 @@ > > #define SIOCSIWPOWER 0x8B2C /* set Power Management settings */ > > #define SIOCGIWPOWER 0x8B2D /* get Power Management settings */ > > > > Please, pretty please, use _IOC() macros... > > -hpa
Already discussed countless times since 96, same answer as before : not possible. For normal devices, you have the full ioctl range, so you can afford to "waste" this space by coding type/direction in the ioctl number. For networking devices, only a *very* small portion of the ioctl space goes to the driver (because the various networking components grab tons of them), so we are required to be more efficient. In summary : if you convert all the regular ifconfig ioctls (see .../include/linux/sockios.h) to use _IOC() macros and workaround ioctl space limitation for networking devices, then I'll fix the wireless ioctls. Regards,
Jean - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
|  |