@@ -577,7 +577,7 @@ static uint16_t ws_mpx_header_size_get(llc_data_base_t *base, uint16_t user_id)
577
577
//TODO add WS_WP_NESTED_IE support
578
578
uint16_t header_size = 0 ;
579
579
if (user_id == MPX_LOWPAN_ENC_USER_ID ) {
580
- header_size += 7 + 5 + 2 ; //UTT+ MPX + Padding
580
+ header_size += 7 + 8 + 5 + 2 ; //UTT+BTT + MPX + Padding
581
581
if (base -> ie_params .vendor_header_length ) {
582
582
header_size += base -> ie_params .vendor_header_length + 3 ;
583
583
}
@@ -615,6 +615,7 @@ static void ws_llc_mpx_data_request(const mpx_api_t *api, const struct mcps_data
615
615
wp_nested_ie_sub_list_t nested_wp_id ;
616
616
memset (& nested_wp_id , 0 , sizeof (wp_nested_ie_sub_list_t ));
617
617
ie_header_mask .utt_ie = true;
618
+ ie_header_mask .bt_ie = true;
618
619
if (base -> ie_params .vendor_header_length && user_id == MPX_LOWPAN_ENC_USER_ID ) {
619
620
ie_header_mask .vh_ie = true;
620
621
}
@@ -675,6 +676,7 @@ static void ws_llc_mpx_data_request(const mpx_api_t *api, const struct mcps_data
675
676
//Write UTT
676
677
677
678
ptr = ws_wh_utt_write (ptr , message -> messsage_type );
679
+ ptr = ws_wh_bt_write (ptr );
678
680
679
681
if (user_id == MPX_LOWPAN_ENC_USER_ID && ie_header_mask .vh_ie ) {
680
682
ptr = ws_wh_vh_write (ptr , base -> ie_params .vendor_header_data , base -> ie_params .vendor_header_length );
0 commit comments