File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -154,6 +154,8 @@ In this function the nwkskey is passed to upper layer of LMIC.
154
154
155
155
LMIC_SecureElement_Error_t
156
156
LMIC_SecureElement_Default_getNwkSKey (LMIC_SecureElement_Aes128Key_t * pNwkSKey , LMIC_SecureElement_KeySelector_t iKey ) {
157
+ if (iKey != LMIC_SecureElement_KeySelector_Unicast )
158
+ return LMIC_SecureElement_Error_InvalidParameter ;
157
159
os_copyMem (pNwkSKey -> bytes , s_nwkSKey .bytes , sizeof (pNwkSKey -> bytes ));
158
160
}
159
161
@@ -169,6 +171,8 @@ In this function the appskey is passed to upper layer of LMIC.
169
171
170
172
LMIC_SecureElement_Error_t
171
173
LMIC_SecureElement_Default_getAppSKey (LMIC_SecureElement_Aes128Key_t * pAppSKey , LMIC_SecureElement_KeySelector_t iKey ) {
174
+ if (iKey != LMIC_SecureElement_KeySelector_Unicast )
175
+ return LMIC_SecureElement_Error_InvalidParameter ;
172
176
os_copyMem (pAppSKey -> bytes , s_appSKey .bytes , sizeof (pAppSKey -> bytes ));
173
177
}
174
178
You can’t perform that action at this time.
0 commit comments