|
42 | 42 |
|
43 | 43 | #define LLC_MESSAGE_QUEUE_LIST_SIZE_MAX 16 //Do not config over 30 never |
44 | 44 | #define MPX_USER_SIZE 2 |
45 | | -//#define ULAD_BT_IE |
46 | 45 |
|
47 | 46 | typedef struct { |
48 | 47 | 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) |
578 | 577 | //TODO add WS_WP_NESTED_IE support |
579 | 578 | uint16_t header_size = 0; |
580 | 579 | if (user_id == MPX_LOWPAN_ENC_USER_ID) { |
581 | | -#ifdef ULAD_BT_IE |
582 | 580 | header_size += 7 + 8 + 5 + 2; //UTT+BTT+ MPX + Padding |
583 | | -#else |
584 | | - header_size += 7 + 5 + 2; //UTT+ MPX + Padding |
585 | | -#endif |
586 | 581 | if (base->ie_params.vendor_header_length) { |
587 | 582 | header_size += base->ie_params.vendor_header_length + 3; |
588 | 583 | } |
@@ -620,9 +615,7 @@ static void ws_llc_mpx_data_request(const mpx_api_t *api, const struct mcps_data |
620 | 615 | wp_nested_ie_sub_list_t nested_wp_id; |
621 | 616 | memset(&nested_wp_id, 0, sizeof(wp_nested_ie_sub_list_t)); |
622 | 617 | ie_header_mask.utt_ie = true; |
623 | | -#ifdef ULAD_BT_IE |
624 | 618 | ie_header_mask.bt_ie = true; |
625 | | -#endif |
626 | 619 | if (base->ie_params.vendor_header_length && user_id == MPX_LOWPAN_ENC_USER_ID) { |
627 | 620 | ie_header_mask.vh_ie = true; |
628 | 621 | } |
@@ -683,9 +676,7 @@ static void ws_llc_mpx_data_request(const mpx_api_t *api, const struct mcps_data |
683 | 676 | //Write UTT |
684 | 677 |
|
685 | 678 | ptr = ws_wh_utt_write(ptr, message->messsage_type); |
686 | | -#ifdef ULAD_BT_IE |
687 | 679 | ptr = ws_wh_bt_write(ptr); |
688 | | -#endif |
689 | 680 |
|
690 | 681 | if (user_id == MPX_LOWPAN_ENC_USER_ID && ie_header_mask.vh_ie) { |
691 | 682 | ptr = ws_wh_vh_write(ptr, base->ie_params.vendor_header_data, base->ie_params.vendor_header_length); |
|
0 commit comments