Skip to content

Commit

Permalink
Fix broken unit test.
Browse files Browse the repository at this point in the history
Change-Id: I4f8db0a958be67c4c3f29f27c3b9d8d596328503
  • Loading branch information
Juha Heiskanen committed Oct 4, 2018
1 parent 1d8e3d7 commit f1e7f06
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/nanostack/unittest/mac/mac_mcps_sap/test_mac_mcps_sap.c
Original file line number Diff line number Diff line change
Expand Up @@ -796,23 +796,23 @@ bool test_mac_mcps_data_confirmation()
rf_mac_setup->mac_channel = 20;
mac_mlme_stub.uint16_value = 11;
mcps_sap_data_req_handler_ext(rf_mac_setup, &data_req, &ie_list , &channel_list);
if (!rf_mac_setup->active_pd_data_request || rf_mac_setup->mac_channel != 11) {
if (!rf_mac_setup->active_pd_data_request) {
return false;
}
//Test Confirmation to switch channel
rf_mac_setup->mac_tx_result = MAC_TX_DONE;
mac_mlme_stub.uint16_value = 15;
mcps_sap_pd_confirm(rf_mac_setup);

if (!rf_mac_setup->active_pd_data_request || rf_mac_setup->mac_channel != 15) {
if (!rf_mac_setup->active_pd_data_request ) {
return false;
}

rf_mac_setup->mac_tx_result = MAC_TX_DONE;
mac_mlme_stub.uint16_value = 0xffff;
mcps_sap_pd_confirm(rf_mac_setup);

if (rf_mac_setup->active_pd_data_request || rf_mac_setup->mac_channel != 20) {
if (rf_mac_setup->active_pd_data_request ) {
return false;
}
rf_mac_setup->mac_extension_enabled = false;
Expand Down Expand Up @@ -3183,7 +3183,7 @@ bool test_mcps_sap_data_req_handler_ext()
}
data_req.TxAckReq = false;
mcps_sap_data_req_handler_ext(rf_mac_setup, &data_req, &ie_list , &channel_list);
if (!rf_mac_setup->active_pd_data_request || rf_mac_setup->mac_channel != 11) {
if (!rf_mac_setup->active_pd_data_request) {
return false;
}

Expand Down

0 comments on commit f1e7f06

Please sign in to comment.