Skip to content
This repository was archived by the owner on May 23, 2023. It is now read-only.

Commit cb83216

Browse files
Juha Heiskanenjuhhei01
authored andcommitted
Enabled proper wi-sun security level 6.
Change-Id: Idfac6878af1c4f46c2b8e82a5339b3c94ba7d733
1 parent 7990fa9 commit cb83216

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

source/6LoWPAN/ws/ws_bootstrap.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
#include "common_functions.h"
2828
#include "mac_common_defines.h"
2929
#include "sw_mac.h"
30+
#include "ccmLIB.h"
3031
#include "NWK_INTERFACE/Include/protocol.h"
3132
#include "6LoWPAN/Bootstraps/protocol_6lowpan.h"
3233
#include "6LoWPAN/Bootstraps/protocol_6lowpan_interface.h"
@@ -1315,7 +1316,7 @@ static void ws_bootstrap_set_test_key(protocol_interface_info_entry_t *cur)
13151316
key_material[i] = 0xcf - i;
13161317
}
13171318
mac_helper_security_key_clean(cur);
1318-
mac_helper_default_security_level_set(cur, 5);
1319+
mac_helper_default_security_level_set(cur, AES_SECURITY_LEVEL_ENC_MIC64);
13191320
mac_helper_default_security_key_id_mode_set(cur, MAC_KEY_ID_MODE_IDX);
13201321
//Set Keys
13211322
mac_helper_security_default_key_set(cur, key_material, 1, MAC_KEY_ID_MODE_IDX);

0 commit comments

Comments
 (0)