File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
features/lorawan/lorastack/mac Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -319,13 +319,13 @@ bool LoRaMac::message_integrity_check(const uint8_t *const payload,
319
319
sequence_counter_prev = (uint16_t ) * downlink_counter;
320
320
sequence_counter_diff = sequence_counter - sequence_counter_prev;
321
321
*downlink_counter += sequence_counter_diff;
322
-
322
+
323
323
if (sequence_counter_diff >= _lora_phy->get_maximum_frame_counter_gap ()) {
324
324
_mcps_indication.status = LORAMAC_EVENT_INFO_STATUS_DOWNLINK_TOO_MANY_FRAMES_LOST;
325
325
_mcps_indication.dl_frame_counter = *downlink_counter;
326
326
return false ;
327
327
}
328
-
328
+
329
329
// sizeof nws_skey must be the same as _params.keys.nwk_skey,
330
330
_lora_crypto.compute_mic (payload, size - LORAMAC_MFR_LEN,
331
331
nwk_skey,
@@ -335,7 +335,7 @@ bool LoRaMac::message_integrity_check(const uint8_t *const payload,
335
335
if (mic_rx != mic) {
336
336
_mcps_indication.status = LORAMAC_EVENT_INFO_STATUS_MIC_FAIL;
337
337
return false ;
338
- }
338
+ }
339
339
340
340
return true ;
341
341
}
You can’t perform that action at this time.
0 commit comments