Skip to content

Commit c83423a

Browse files
author
Mika Leppänen
committed
PAE controller now removes keys from MAC on stop (ifdown)
Previously, the old keys were still present on MAC on next bootstrap.
1 parent a6f98b7 commit c83423a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

source/6LoWPAN/ws/ws_pae_controller.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -704,6 +704,9 @@ int8_t ws_pae_controller_stop(protocol_interface_info_entry_t *interface_ptr)
704704
// Stores frame counter
705705
ws_pae_controller_frame_counter_store(controller);
706706

707+
// Removes network keys from PAE controller and MAC
708+
ws_pae_controller_nw_keys_remove(interface_ptr);
709+
707710
// If PAE has been initialized, deletes it
708711
if (controller->pae_delete) {
709712
controller->pae_delete(interface_ptr);

0 commit comments

Comments
 (0)