> > This looks wrong. You could restart association when a key is set but > > really the race is by design in WEXT so the only way to fix it is to set > > the key first. > > > > Do you mean fix iwconfig to always do set key before set essid? Well, no, I think it's more of a user error, I always do iwconfig enc ENC; iwconfig essid SSID in that order. > But, doing It cannot solve a race from two seperated iwconfig process, I think. > (eg: iwconfig essid ESSID; iwconfig enc ENC) Yeah, that's pretty ugly to start with. > Moreover, now we just wake auth request task up and return when setting essid. > Don't we need to wait a moment until the task is scheduled to be > polite to iwconifg? :) I think the only way to properly handle it is to reset the association state machine when a key is added. Dan, what's the expected behaviour? johannes
Attachment:
signature.asc
Description: This is a digitally signed message part