Fix PMKSA cache timeout from Session-Timeout in WPA/WPA2 cases
authorJouni Malinen <j@w1.fi>
Sat, 4 Oct 2014 16:36:48 +0000 (19:36 +0300)
committerJouni Malinen <j@w1.fi>
Sat, 4 Oct 2014 20:01:08 +0000 (23:01 +0300)
commit47ea24c13d803c3a103704ec3c3bbb8db263626a
treeb243c4c588e338539b45f41a79331f64452240f8
parent8e1fc78e1f68b80e82c160e219a6d8946112a5bc
Fix PMKSA cache timeout from Session-Timeout in WPA/WPA2 cases

Previously, WPA/WPA2 case ended up using the hardcoded
dot11RSNAConfigPMKLifetime (43200 seconds) for PMKSA cache entries
instead of using the Session-Timeout value from the RADIUS server (if
included in Access-Accept). Store a copy of the Session-Timeout value
and use it instead of the default value so that WPA/WPA2 cases get the
proper timeout similarly to non-WPA/WPA2 cases.

Signed-off-by: Jouni Malinen <j@w1.fi>
src/ap/ieee802_1x.c
src/ap/sta_info.h