[PATCH] Reset the ssid in wps before being replaced with the one in credential.

Spencer Chang jungwalk
Fri Dec 9 18:00:23 PST 2011

Hi Jouni,

Sorry for misleading.
That code of generating random SSID is added by myself for customer's
request, and I misunderstood how the SSID buffer should be used. Therefore,
I created an issue of wrong SSID on dual band product and that issue could
be fixed with that patch of resetting SSID buffer.
And then I thought may be the SSID buffer should be reset even in original
hostapd code (without random SSID generation). But I am wrong.
After you and Johannes described, I know the root cause of that wrong SSID
issue I created and it should be fixed by following the right way of using
SSID buffer, and it is not necessary to reset the SSID buffer.

Thanks for your responses and sorry for misleading again.

2011/12/10 Jouni Malinen <j at w1.fi>

> On Sat, Dec 10, 2011 at 05:50:46AM +0800, ??? wrote:
> > Yes, I am trying to fix a bug related to generating random WPS ssid for
> > each band, and thought this kind of change maybe necessary even without
> > that random WPS ssid modification.
> Could you please describe that in more detail? That sounds more like a
> misunderstanding of how hostapd is supposed to work since hostapd does
> not generate a random SSID. It does generate a random passphrase when
> moving from unconfigured to configured state, but the initial SSID is
> assumed to be generated by something external.
> --
> Jouni Malinen                                            PGP id EFC895FA
> _______________________________________________
> HostAP mailing list
> HostAP at lists.shmoo.com
> http://lists.shmoo.com/mailman/listinfo/hostap
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.shmoo.com/pipermail/hostap/attachments/20111210/6730e778/attachment.htm 

More information about the Hostap mailing list