Skip to content

Commit 9e22831

Browse files
author
Juha Heiskanen
authored
Merge pull request ARMmbed#1834 from ARMmbed/enable_bt_ie_ulad
Revert "Disable wi-sun features temporary"
2 parents 02af1a8 + dd082a0 commit 9e22831

File tree

3 files changed

+3
-14
lines changed

3 files changed

+3
-14
lines changed

source/6LoWPAN/ws/ws_bootstrap.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -537,7 +537,6 @@ uint16_t ws_etx_read(protocol_interface_info_entry_t *interface, addrtype_t addr
537537
return 0xffff;
538538
}
539539

540-
#if 0
541540
//If we are not following gbobal Broadcast synch
542541
if (!interface->ws_info->pan_information.use_parent_bs) {
543542
//We must know both information's here
@@ -551,7 +550,6 @@ uint16_t ws_etx_read(protocol_interface_info_entry_t *interface, addrtype_t addr
551550
return 0xffff;
552551
}
553552
}
554-
#endif
555553
}
556554

557555
etx = etx_local_etx_read(interface->id,attribute_index);

source/6LoWPAN/ws/ws_llc_data_service.c

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@
4242

4343
#define LLC_MESSAGE_QUEUE_LIST_SIZE_MAX 16 //Do not config over 30 never
4444
#define MPX_USER_SIZE 2
45-
//#define ULAD_BT_IE
4645

4746
typedef struct {
4847
uint16_t user_id; /**< User ID for identify MPX User */
@@ -578,11 +577,7 @@ static uint16_t ws_mpx_header_size_get(llc_data_base_t *base, uint16_t user_id)
578577
//TODO add WS_WP_NESTED_IE support
579578
uint16_t header_size = 0;
580579
if (user_id == MPX_LOWPAN_ENC_USER_ID) {
581-
#ifdef ULAD_BT_IE
582580
header_size += 7 + 8 + 5 + 2; //UTT+BTT+ MPX + Padding
583-
#else
584-
header_size += 7 + 5 + 2; //UTT+ MPX + Padding
585-
#endif
586581
if (base->ie_params.vendor_header_length) {
587582
header_size += base->ie_params.vendor_header_length + 3;
588583
}
@@ -620,9 +615,7 @@ static void ws_llc_mpx_data_request(const mpx_api_t *api, const struct mcps_data
620615
wp_nested_ie_sub_list_t nested_wp_id;
621616
memset(&nested_wp_id, 0, sizeof(wp_nested_ie_sub_list_t));
622617
ie_header_mask.utt_ie = true;
623-
#ifdef ULAD_BT_IE
624618
ie_header_mask.bt_ie = true;
625-
#endif
626619
if (base->ie_params.vendor_header_length && user_id == MPX_LOWPAN_ENC_USER_ID) {
627620
ie_header_mask.vh_ie = true;
628621
}
@@ -683,9 +676,7 @@ static void ws_llc_mpx_data_request(const mpx_api_t *api, const struct mcps_data
683676
//Write UTT
684677

685678
ptr = ws_wh_utt_write(ptr, message->messsage_type);
686-
#ifdef ULAD_BT_IE
687679
ptr = ws_wh_bt_write(ptr);
688-
#endif
689680

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

test/nanostack/unittest/6LoWPAN/ws_llc_data_service/test_ws_llc_data_service.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -357,18 +357,18 @@ bool test_mpx_msg_send()
357357
uint8_t vendor_test[10];
358358
//Test OverHead check
359359
uint16_t test_length = mpx_api->mpx_headroom_size_get(mpx_api, 0xA0ED);
360-
if (test_length != 26) {
360+
if (test_length != 34) {
361361
return false;
362362
}
363363
ws_llc_set_vendor_header_data(&interface, vendor_test, 10);
364364
test_length = mpx_api->mpx_headroom_size_get(mpx_api, 0xA0ED);
365-
if (test_length != 26 + 13) {
365+
if (test_length != 34 + 13) {
366366
return false;
367367
}
368368

369369
ws_llc_set_vendor_payload_data(&interface, vendor_test, 10);
370370
test_length = mpx_api->mpx_headroom_size_get(mpx_api, 0xA0ED);
371-
if (test_length != 26 + 13 + 12) {
371+
if (test_length != 34 + 13 + 12) {
372372
return false;
373373
}
374374

0 commit comments

Comments
 (0)