[PATCH] wpa_supplicant: Work around odd driver-reported ssid lengths
matthieu castet
castet.matthieu
Sun Jan 29 11:28:30 PST 2006
Dan Williams wrote:
> Hi,
>
> At least the atmel and airo drivers do odd, technically incorrect,
> things in their SIOCGIWESSID:
>
> memcpy(extra, status_rid.SSID, status_rid.SSIDlen);
> extra[status_rid.SSIDlen] = '\0';
> /* If none, we may want to get the one that was set */
>
> /* Push it out ! */
> dwrq->length = status_rid.SSIDlen + 1;
>
May be you could also send a patch to wireless driver maintainer in
order the drivers report the right lenght.
More information about the Hostap
mailing list