Make proactive key caching working again
authorMichael Bernhard <michael.bernhard@bfh.ch>
Sun, 6 Jul 2008 07:50:53 +0000 (10:50 +0300)
committerJouni Malinen <j@w1.fi>
Sun, 6 Jul 2008 07:50:53 +0000 (10:50 +0300)
commit886a807fb5ced182b582d24549895c5985ec4a8e
treea7ed488b014c786f14f2f35a47ac971036cba9b7
parent9d6762cfca831c30c1ce321e4d8ec549897229c3
Make proactive key caching working again

Function 'wpa_sm_set_config' used the argument 'config' as the network
context which is a pointer to a local variable of the function
'wpa_supplicant_rsn_supp_set_config'.

This is one reason why no proactive key was generated. This network
context never matched with the network context saved in the pmksa cache
entries.

The structure 'rsn_supp_config' has already a member 'network_ctx' which
is now filled in by this patch with 'ssid'.

Signed-off-by: Michael Bernhard <michael.bernhard@bfh.ch>
src/rsn_supp/wpa.c
wpa_supplicant/wpas_glue.c