Do not clear PMKSA entry or EAP session cache if config does not change
authorBala Krishna Bhamidipati <c_bbhami@qti.qualcomm.com>
Wed, 30 Mar 2016 15:09:39 +0000 (20:39 +0530)
committerJouni Malinen <j@w1.fi>
Thu, 31 Mar 2016 14:18:51 +0000 (17:18 +0300)
commit5cd317d381489e2b929c46e9aa779d154af66e75
tree7698621106071ce0bbad86cc1ef207fd659ff9a2
parentf93321614180a813b66061590f8028127fbf1501
Do not clear PMKSA entry or EAP session cache if config does not change

This avoids unnecessary flushing of the PMKSA cache entry and EAP
session data when processing SET_NETWORK commands that set a network
profile parameter to the same value that the parameter already has.

Introduce a new wpa_config_set() and wpa_config_set_quoted() return
value (==1) signifying that the new value being set for the
corresponding field equals to the already configured one so that the
caller can determine that nothing changed in the profile.

For now, this does not cover all the network profile parameters, but
number of the most commonly used parameters are included to cover the
Android use cases where the framework may have issued SET_NETWORK
commands that would have unnecessarily prevented use of PMKSA caching or
EAP fast reauthentication.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
wpa_supplicant/config.c
wpa_supplicant/ctrl_iface.c