Skip to content

Commit 7e3c16c

Browse files
author
Juha Heiskanen
committed
Wi-sun LLC Data request IE update
Added BT-IE header data to all 6lowpan messages. Change-Id: I123435256c6b23c82e7f82249a921bf86a25bffa
1 parent a27076f commit 7e3c16c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

source/6LoWPAN/ws/ws_llc_data_service.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -577,7 +577,7 @@ static uint16_t ws_mpx_header_size_get(llc_data_base_t *base, uint16_t user_id)
577577
//TODO add WS_WP_NESTED_IE support
578578
uint16_t header_size = 0;
579579
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
581581
if (base->ie_params.vendor_header_length) {
582582
header_size += base->ie_params.vendor_header_length + 3;
583583
}
@@ -615,6 +615,7 @@ static void ws_llc_mpx_data_request(const mpx_api_t *api, const struct mcps_data
615615
wp_nested_ie_sub_list_t nested_wp_id;
616616
memset(&nested_wp_id, 0, sizeof(wp_nested_ie_sub_list_t));
617617
ie_header_mask.utt_ie = true;
618+
ie_header_mask.bt_ie = true;
618619
if (base->ie_params.vendor_header_length && user_id == MPX_LOWPAN_ENC_USER_ID) {
619620
ie_header_mask.vh_ie = true;
620621
}
@@ -675,6 +676,7 @@ static void ws_llc_mpx_data_request(const mpx_api_t *api, const struct mcps_data
675676
//Write UTT
676677

677678
ptr = ws_wh_utt_write(ptr, message->messsage_type);
679+
ptr = ws_wh_bt_write(ptr);
678680

679681
if (user_id == MPX_LOWPAN_ENC_USER_ID && ie_header_mask.vh_ie) {
680682
ptr = ws_wh_vh_write(ptr, base->ie_params.vendor_header_data, base->ie_params.vendor_header_length);

0 commit comments

Comments
 (0)