Skip to content

Commit 0a1beb2

Browse files
author
Juha Heiskanen
committed
GTK update trigger fix
Earlier if we have over 1 GTK update we only could send 1 on row. Now we remove old one if we try to start same KMP state at PAE authentication. Change-Id: I879a877d11558761711241f09dbf1f4d1a356fda
1 parent a1d172e commit 0a1beb2

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

source/6LoWPAN/ws/ws_pae_auth.c

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -863,9 +863,15 @@ static void ws_pae_auth_next_kmp_trigger(pae_auth_t *pae_auth, supp_entry_t *sup
863863
// All done
864864
return;
865865
} else {
866-
if (ws_pae_lib_kmp_list_type_get(&supp_entry->kmp_list, next_type) != NULL) {
867-
tr_info("KMP already ongoing; ignored, eui-64: %s", trace_array(supp_entry->addr.eui_64, 8));
868-
return;
866+
867+
kmp_api_t *api = ws_pae_lib_kmp_list_type_get(&supp_entry->kmp_list, next_type);
868+
if (api != NULL) {
869+
if (next_type != IEEE_802_11_GKH) {
870+
tr_info("KMP already ongoing; ignored, eui-64: %s", trace_array(supp_entry->addr.eui_64, 8));
871+
return;
872+
}
873+
// Delete KMP
874+
ws_pae_lib_kmp_list_delete(&supp_entry->kmp_list, api);
869875
}
870876
}
871877

0 commit comments

Comments
 (0)