]> git.ipfire.org Git - thirdparty/hostap.git/commit
PMKSA: Make deauthentication due to cache entry removal more granular
authorDan Williams <dcbw@redhat.com>
Sun, 25 Nov 2012 19:27:18 +0000 (21:27 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 25 Nov 2012 19:39:19 +0000 (21:39 +0200)
commit6aaac006af7fd39d618c6546939bed9f0f0cea37
treebc7ad393192a3d2e307b9be68ae4973e86792aa3
parentb7593d35c1db04756bb74b5b9a2491eb1bca9b65
PMKSA: Make deauthentication due to cache entry removal more granular

Expiry can always trigger a deauthentication, but otherwise,
deauthentication should only happen when the *current* cache entry is
removed and not being replaced. It should not happen when the current
PMK just happens to match the PMK of the entry being removed, since
multiple entries can have the same PMK when OKC is used and these
entries are often removed at different times.

This fixes an issue where eviction of the oldest inactive entry due to
adding a newer entry to a full cache caused a deauthentication when the
entry being removed had the same PMK as the current entry.

Signed-hostap: Dan Williams <dcbw@redhat.com>
src/rsn_supp/pmksa_cache.c
src/rsn_supp/pmksa_cache.h
src/rsn_supp/wpa.c