Skip to content

Commit ae6554d

Browse files
author
Juha Heiskanen
committed
Revert "Disable wi-sun features temporary".
This reverts commit 60e1545. Change-Id: I66901b64da52a001c23ea37db3c9ad0ee17da190
1 parent 927c329 commit ae6554d

File tree

2 files changed

+0
-11
lines changed

2 files changed

+0
-11
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);

0 commit comments

Comments
 (0)