Search Linux Wireless

Re: [PATCH] mac80211: fix races between siwessid and siwencode

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> > 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


[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux