Skip to content

Commit

Permalink
Fixed Unicast and Broadcast MAC packet request types.
Browse files Browse the repository at this point in the history
Change-Id: Ie5f2c7678f5395243ce368d1ef59c70e84ca1ee3
  • Loading branch information
Juha Heiskanen committed Aug 15, 2018
1 parent 0ddff57 commit 9b37c24
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions source/6LoWPAN/ws/ws_llc_data_service.c
Original file line number Diff line number Diff line change
Expand Up @@ -657,6 +657,13 @@ static void ws_llc_mpx_data_request(const mpx_api_t *api, const struct mcps_data
data_req.msduLength = 0;
data_req.msduHandle = message->msg_handle;

if (!data->TxAckReq) {
data_req.PanIdSuppressed = false;
data_req.DstAddrMode = MAC_ADDR_MODE_NONE;
} else {
data_req.PanIdSuppressed = true;
}

uint8_t *ptr = ws_message_buffer_ptr_get(message);
if (user_id == MPX_LOWPAN_ENC_USER_ID) {
message->messsage_type = WS_FT_DATA;
Expand Down

0 comments on commit 9b37c24

Please sign in to comment.