@@ -430,8 +430,7 @@ static void test_tx_test(void)
430
430
ztest_expect_value (set_channel_mock , channel , chan );
431
431
ztest_expect_value (set_txpower_mock , dbm , power );
432
432
ztest_expect_value (start_mock , dev , & radio );
433
- zassert_equal (otPlatRadioReceive (ot , chan ), OT_ERROR_NONE ,
434
- "Failed to receive." );
433
+ zassert_equal (otPlatRadioReceive (ot , chan ), OT_ERROR_NONE , "Failed to receive." );
435
434
436
435
/* ACKed frame */
437
436
frm -> mChannel = chan2 ;
@@ -442,8 +441,7 @@ static void test_tx_test(void)
442
441
ztest_expect_value (cca_mock , dev , & radio );
443
442
ztest_expect_value (tx_mock , frag -> data , frm -> mPsdu );
444
443
ztest_expect_value (set_txpower_mock , dbm , power );
445
- zassert_equal (otPlatRadioTransmit (ot , frm ), OT_ERROR_NONE ,
446
- "Transmit failed." );
444
+ zassert_equal (otPlatRadioTransmit (ot , frm ), OT_ERROR_NONE , "Transmit failed." );
447
445
448
446
create_ack_frame ();
449
447
make_sure_sem_set (Z_TIMEOUT_MS (100 ));
@@ -460,27 +458,10 @@ static void test_tx_test(void)
460
458
ztest_expect_value (set_channel_mock , channel , chan2 );
461
459
ztest_expect_value (tx_mock , frag -> data , frm -> mPsdu );
462
460
ztest_expect_value (set_txpower_mock , dbm , power );
463
- zassert_equal (otPlatRadioTransmit (ot , frm ), OT_ERROR_NONE ,
464
- "Transmit failed." );
461
+ zassert_equal (otPlatRadioTransmit (ot , frm ), OT_ERROR_NONE , "Transmit failed." );
465
462
make_sure_sem_set (Z_TIMEOUT_MS (100 ));
466
463
ztest_expect_value (otPlatRadioTxDone , aError , OT_ERROR_NONE );
467
464
platformRadioProcess (ot );
468
-
469
- /* ACKed frame, no ACK */
470
- frm -> mChannel = -- chan2 ;
471
- frm -> mInfo .mTxInfo .mCsmaCaEnabled = false;
472
- frm -> mPsdu [0 ] = IEEE802154_AR_FLAG_SET ;
473
-
474
- ztest_returns_value (set_channel_mock , 0 );
475
- ztest_expect_value (set_channel_mock , channel , chan2 );
476
- ztest_expect_value (tx_mock , frag -> data , frm -> mPsdu );
477
- ztest_expect_value (set_txpower_mock , dbm , power );
478
- zassert_equal (otPlatRadioTransmit (ot , frm ), OT_ERROR_NONE ,
479
- "Transmit failed." );
480
- make_sure_sem_set (Z_TIMEOUT_MS (100 ));
481
-
482
- ztest_expect_value (otPlatRadioTxDone , aError , OT_ERROR_NO_ACK );
483
- platformRadioProcess (ot );
484
465
}
485
466
486
467
/**
0 commit comments