@@ -32,7 +32,7 @@ static uint8_t *mcps_mac_security_aux_header_start_pointer_get(const mac_pre_par
32
32
static uint8_t * mac_header_information_elements_write (const mac_pre_build_frame_t * buffer , uint8_t * ptr );
33
33
34
34
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 )
36
36
{
37
37
uint8_t length ;
38
38
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
298
298
uint16_t mac_header_off_set_to_aux_header (const mac_fcf_sequence_t * fcf )
299
299
{
300
300
//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
302
302
offset += mac_dst_address_length_with_panid (fcf );
303
303
offset += mac_address_length (fcf -> SrcAddrMode );
304
304
if (fcf -> SrcPanPresents ) {
@@ -351,7 +351,7 @@ static bool mac_header_pan_full_compressed(const mac_fcf_sequence_t *header)
351
351
352
352
static uint16_t mac_header_read_src_pan (const mac_fcf_sequence_t * header , const uint8_t * ptr )
353
353
{
354
- ptr += mac_fcf_lenght (header );//Skip FCF + DSN
354
+ ptr += mac_fcf_length (header );//Skip FCF + DSN
355
355
356
356
ptr += mac_dst_address_length_with_panid (header ); //Skip Dst panID & Address
357
357
@@ -360,7 +360,7 @@ static uint16_t mac_header_read_src_pan(const mac_fcf_sequence_t *header, const
360
360
361
361
static uint16_t mac_header_read_dst_pan (const mac_fcf_sequence_t * header , const uint8_t * ptr )
362
362
{
363
- ptr += mac_fcf_lenght (header );//Skip FCF + DSN
363
+ ptr += mac_fcf_length (header );//Skip FCF + DSN
364
364
365
365
return common_read_16_bit_inverse (ptr );
366
366
}
@@ -403,7 +403,7 @@ void mac_header_get_src_address(const mac_fcf_sequence_t *header, const uint8_t
403
403
return ;
404
404
}
405
405
406
- ptr += mac_fcf_lenght (header );//Skip FCF + DSN
406
+ ptr += mac_fcf_length (header );//Skip FCF + DSN
407
407
408
408
ptr += mac_dst_address_length_with_panid (header );
409
409
@@ -430,7 +430,7 @@ void mac_header_get_dst_address(const mac_fcf_sequence_t *header, const uint8_t
430
430
}
431
431
uint8_t address_len , address_index , i ;
432
432
433
- ptr += mac_fcf_lenght (header );//Skip FCF + DSN
433
+ ptr += mac_fcf_length (header );//Skip FCF + DSN
434
434
435
435
address_len = mac_address_length (header -> DstAddrMode );
436
436
0 commit comments