Skip to content

Commit e2db6ff

Browse files
DavidLin1577Arto Kinnunen
authored andcommitted
Fixed error of function 'mac_fcf_lenght'
Note that the function 'mac_fcf_lenght' is wrong, so that 'mac_fcf_lenght' should been replaced with 'mac_fcf_length'.
1 parent 28fc2a9 commit e2db6ff

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

source/MAC/IEEE802_15_4/mac_header_helper_functions.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ static uint8_t *mcps_mac_security_aux_header_start_pointer_get(const mac_pre_par
3232
static uint8_t *mac_header_information_elements_write(const mac_pre_build_frame_t *buffer, uint8_t *ptr);
3333

3434

35-
static uint8_t mac_fcf_lenght(const mac_fcf_sequence_t *header)
35+
static uint8_t mac_fcf_length(const mac_fcf_sequence_t *header)
3636
{
3737
uint8_t length;
3838
if (header->frameVersion == MAC_FRAME_VERSION_2015) {
@@ -298,7 +298,7 @@ static uint8_t *mac_header_write_fcf_dsn(const mac_fcf_sequence_t *header, uint8
298298
uint16_t mac_header_off_set_to_aux_header(const mac_fcf_sequence_t *fcf)
299299
{
300300
//Skip first FCF & address field
301-
uint16_t offset = mac_fcf_lenght(fcf);//Skip FCF + DSN
301+
uint16_t offset = mac_fcf_length(fcf);//Skip FCF + DSN
302302
offset += mac_dst_address_length_with_panid(fcf);
303303
offset += mac_address_length(fcf->SrcAddrMode);
304304
if (fcf->SrcPanPresents) {
@@ -351,7 +351,7 @@ static bool mac_header_pan_full_compressed(const mac_fcf_sequence_t *header)
351351

352352
static uint16_t mac_header_read_src_pan(const mac_fcf_sequence_t *header, const uint8_t *ptr)
353353
{
354-
ptr += mac_fcf_lenght(header);//Skip FCF + DSN
354+
ptr += mac_fcf_length(header);//Skip FCF + DSN
355355

356356
ptr += mac_dst_address_length_with_panid(header); //Skip Dst panID & Address
357357

@@ -360,7 +360,7 @@ static uint16_t mac_header_read_src_pan(const mac_fcf_sequence_t *header, const
360360

361361
static uint16_t mac_header_read_dst_pan(const mac_fcf_sequence_t *header, const uint8_t *ptr)
362362
{
363-
ptr += mac_fcf_lenght(header);//Skip FCF + DSN
363+
ptr += mac_fcf_length(header);//Skip FCF + DSN
364364

365365
return common_read_16_bit_inverse(ptr);
366366
}
@@ -403,7 +403,7 @@ void mac_header_get_src_address(const mac_fcf_sequence_t *header, const uint8_t
403403
return;
404404
}
405405

406-
ptr += mac_fcf_lenght(header);//Skip FCF + DSN
406+
ptr += mac_fcf_length(header);//Skip FCF + DSN
407407

408408
ptr += mac_dst_address_length_with_panid(header);
409409

@@ -430,7 +430,7 @@ void mac_header_get_dst_address(const mac_fcf_sequence_t *header, const uint8_t
430430
}
431431
uint8_t address_len, address_index, i;
432432

433-
ptr += mac_fcf_lenght(header);//Skip FCF + DSN
433+
ptr += mac_fcf_length(header);//Skip FCF + DSN
434434

435435
address_len = mac_address_length(header->DstAddrMode);
436436

0 commit comments

Comments
 (0)