[uClinux-dev] FW: patch
Greg Ungerer
gerg at snapgear.com
Mon Mar 12 19:39:34 EST 2007
Hi Assaf,
Assaf Harel wrote:
> The patch below allows using Wireless Extensions version > 16 (version
> 18 required for 11i support) in the latest 2.4 kernel.
Hmmm, it may well allow it - but it is buggy.
That standard_ioctl_num value is used to check array bounds,
on the command table entries.
Regards
Greg
> # svn diff -r 1328:1330 linux-2.4.x/net/core/wireless.c
> Index: linux-2.4.x/net/core/wireless.c
> ===================================================================
> --- linux-2.4.x/net/core/wireless.c (revision 1328)
> +++ linux-2.4.x/net/core/wireless.c (revision 1330)
> @@ -180,8 +180,7 @@
> /* SIOCGIWPOWER */
> { IW_HEADER_TYPE_PARAM, 0, 0, 0, 0, 0},
> };
> -static const int standard_ioctl_num = (sizeof(standard_ioctl) /
> - sizeof(struct iw_ioctl_description));
> +static const int standard_ioctl_num = SIOCIWLAST - SIOCIWFIRST;
>
>
> /*
> * Meta-data about all the additional standard Wireless Extension
> events
>
>
>
>
> -- Disclaimer: --
> This e-mail is intended solely for the person to whom it is addressed
> and may contain confidential or legally privileged information. Access
> to this e-mail by anyone else is unauthorized. If an addressing or
> transmission error has misdirected this e-mail, please notify the author
> by replying to this e-mail and destroy this e-mail and any attachments.
> E-mail may be susceptible to data corruption, interception, unauthorized
> amendment, viruses and delays or the consequences thereof. If you are
> not the intended recipient, be advised that you have received this email
> in error and that any use, dissemination, forwarding, printing or
> copying of this email is strictly prohibited.
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> uClinux-dev mailing list
> uClinux-dev at uclinux.org
> http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
> This message was resent by uclinux-dev at uclinux.org
> To unsubscribe see:
> http://mailman.uclinux.org/mailman/options/uclinux-dev
--
------------------------------------------------------------------------
Greg Ungerer -- Chief Software Dude EMAIL: gerg at snapgear.com
Secure Computing Corporation PHONE: +61 7 3435 2888
825 Stanley St, FAX: +61 7 3891 3630
Woolloongabba, QLD, 4102, Australia WEB: http://www.SnapGear.com
More information about the uClinux-dev
mailing list