Skip to content

Commit

Permalink
Fix LLC unit test's
Browse files Browse the repository at this point in the history
Change-Id: If9069913435e6609bc80220ad6140e5f6f1c13f5
  • Loading branch information
Juha Heiskanen authored and juhhei01 committed Jun 28, 2018
1 parent 3702f57 commit 03bc696
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -394,6 +394,7 @@ bool test_mpx_msg_rx()
uint8_t utt_type = 0;
uint8_t payload_buf[100];
uint8_t header_buf[100];
uint8_t hash_gtk[32];
header_buf[0] = WS_FT_DATA;
data_ind.SrcAddrMode = 3;
data_ind.msdu_ptr = NULL;
Expand All @@ -420,6 +421,11 @@ bool test_mpx_msg_rx()
ws_ie_lib_stub.utt_bool_value = true;
mac_ie_lib_stub_def.value_uint8 = 4;
mac_ie_lib_stub_def.value_uint16 = 0;

//NO config yet test drop
data_indication_cb(&api, &data_ind, &ie_ext);
ws_llc_set_gtkhash(&interface, hash_gtk);

data_indication_cb(&api, &data_ind, &ie_ext);
mac_ie_lib_stub_def.value_uint16 = 90;

Expand Down Expand Up @@ -449,6 +455,7 @@ bool test_mpx_msg_rx()

data_indication_cb(&api, &data_ind, &ie_ext);
if (!mpx_data_ind_ok) {
ws_llc_delete(&interface);
return false;
}
address_stub.uint8_value = 0;
Expand All @@ -463,6 +470,7 @@ bool test_mpx_msg_rx()
aynch_ind_ok = false;
data_indication_cb(&api, &data_ind, &ie_ext);
if (!aynch_ind_ok) {
ws_llc_delete(&interface);
return false;
}

Expand Down

0 comments on commit 03bc696

Please sign in to comment.