[PATCH] wpa_supplicant: Work around odd driver-reported ssid lengths

matthieu castet castet.matthieu at free.fr
Sun Jan 29 14:28:30 EST 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