correct group cipher setting

Andriy Tkachuk andriy.tkachuk
Thu Jan 15 07:44:38 PST 2009


On 2009-01-12 20:58, Jouni Malinen wrote:
> On Mon, Jan 12, 2009 at 08:40:33PM +0200, Chuck Tuffli wrote:
>   
>> #3 fails with a parse error because my patch sets group_cipher to WPA_CIPHER_NONE which write_group() prints out as NONE. The trick here I guess is to set group_cipher to DEFAULT_GROUP in the case of an open network so that write_group() will skip printing out the group entry entirely.
>>     
>
> The recommended practice for that is _not_ to set group_cipher yourself
> and just rely on wpa_config_set_network_defaults() doing the correct
> thing. I don't think you were calling that function in your code, but it
> might be best to start with that and then update just the fields you
> need to change. Not that this makes much difference for 0.5.x branch,
> but in general, that would be the safest way to avoid hitting similar
> issues with whatever new parameters are added in the future.
>   

Jouni, it seems that latest wpa_supplicant from trunk has the same 
issue. Here is the patch according to your comments.

    Andriy
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: supp06-group-open.patch
Url: http://lists.shmoo.com/pipermail/hostap/attachments/20090115/8a4bd647/attachment.txt 



More information about the Hostap mailing list