]> git.ipfire.org Git - thirdparty/hostap.git/commit
mka: Send MKPDUs forever if mode is PSK
authorBadrish Adiga H R <badrish.adigahr@gmail.com>
Tue, 7 Feb 2017 08:58:31 +0000 (14:28 +0530)
committerJouni Malinen <j@w1.fi>
Fri, 10 Feb 2017 17:48:12 +0000 (19:48 +0200)
commit37e9f511eb0072dbce190cb21e2d48f022173b03
tree3d18939c803fa95e1527890fd91f7f7641d48596
parent8a303f09a2c6041a54d21da26e7b6edb3e1ee8cf
mka: Send MKPDUs forever if mode is PSK

Issue: When 2 peers are running MACsec in PSK mode with CA
established, if the interface goes down and comes up after
time > 10 seconds, CA does not get re-established.

Root cause: This is because retry_count of both the peers
would have reached MAX_RETRY_CNT and stays idle for other to
respond. This is clear deadlock situation where peer A waits
for MKA packets from peer B to wake up and vice-versa.

Fix: If MACsec is running in PSK mode, we should send MKPDUs
forever for every 2 seconds.

Signed-off-by: Badrish Adiga H R <badrish.adigahr@gmail.com>
src/pae/ieee802_1x_kay.c
src/pae/ieee802_1x_kay_i.h