Hi, we are running linux 4.9.17 and have to rekey every hour. In some cases the connection is lost right at the hour mark due to reason 16 disconnect (Group Key Handshake Timeout). I suspect the EAPOL message is on the way when we timeout, it just has not made it through due to a heavily used network and/or RF spectrum. The issue does not occur in quiet/less busy environments. How do we increase the timeout so that we can allow more time for first rekeying packet to arrive?
I did increase the log level in wpa_supplicant and found that in the case of timeout, we have not even begun handshake, so we need to give that first packet more time to arrive.
When it works, we get logs like this:
07-23 10:20:44.196 I/wpa_supplicant( 468): wlan0: IEEE 802.1X RX: version=2 type=3 length=127
07-23 10:20:44.196 I/wpa_supplicant( 468): wlan0: WPA: RX message 1 of Group Key Handshake from ...
07-23 10:20:44.196 I/wpa_supplicant( 468): wlan0: RSN: msg 1/2 key data
07-23 10:20:44.197 I/wpa_supplicant( 468): wlan0: RSN: received GTK in group key handshake
07-23 10:20:44.201 I/wpa_supplicant( 468): wlan0: WPA: Installing GTK to the driver (keyidx=2 tx=0 len=16)
07-23 10:20:44.225 I/wpa_supplicant( 468): wlan0: WPA: Sending EAPOL-Key 2/2
07-23 10:20:44.226 I/wpa_supplicant( 468): wlan0: WPA: Group rekeying completed with ...
When it does not:
07:30:53.673 I/kernel ( 202): wlan0: deauthenticated from 24:b6:57:f8:b3:8a (Reason: 16=GROUP_KEY_HANDSHAKE_TIMEOUT)
Thanks, Wilson