Skip to content

Commit c326e4a

Browse files
Juha Heiskanenjuhhei01
authored andcommitted
Fixed MPX header size calculation to MPX data request.
1 parent fa2d7d0 commit c326e4a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/6LoWPAN/ws/ws_llc_data_service.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -507,12 +507,12 @@ static void ws_llc_mpx_data_request(const mpx_api_t *api, const struct mcps_data
507507
uint16_t ie_header_length = ws_wh_headers_length(ie_header_mask, &base->ie_params);
508508
uint16_t nested_ie_length = ws_wp_nested_message_length(nested_wp_id, &base->ie_params);
509509

510-
511-
512510
uint16_t over_head_size = ie_header_length;
513511
if (nested_ie_length) {
514512
over_head_size += nested_ie_length + 2;
515513
}
514+
//Mpx header size
515+
over_head_size += 5; //MPX FuLL frame 3 bytes + IE header 2 bytes
516516

517517
//Allocate Message
518518
llc_message_t *message = llc_message_allocate(over_head_size , base, true);

0 commit comments

Comments
 (0)