Bug in driver_wext.c code?
dcbw at redhat.com
Thu Oct 4 13:39:29 EDT 2007
On Thu, 2007-10-04 at 16:02 +0530, Sriharsha Vedurmudi wrote:
> Please refer to the function wpa_driver_wext_get_scan_results() and
> scroll down to
> case IWEVGENIE:
> In that scroll down to:
> u8 ie = gpos, ielen = gpos + 2;
> Why is the 'ielen' field initialized to gpos (which is the length
> field in the IE) + 2 ?
> I think it should be initialized to gpos;
> Please let me know what I missed? The case in question is that when I
> am passing received WPA IE, I am only get and pass 'gpos' bytes
> data not gpos+2 !
You're actually supposed to include the full IE, including the IE # and
the IE length, as well as the actual IE data.
> HostAP mailing list
> HostAP at shmoo.com
More information about the HostAP