File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
test/nanostack/unittest/mac/mac_pd_sap Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -829,17 +829,18 @@ bool test_mac_cca_prepare_cb()
829
829
830
830
memset (& test_packet , 0 , sizeof (mac_pre_build_frame_t ));
831
831
rf_ptr .active_pd_data_request = & test_packet ;
832
+ test_packet .csma_periods_left = 1 ;
832
833
test_packet .fcf_dsn .frametype = FC_BEACON_FRAME ;
833
834
test_packet .asynch_request = false;
834
835
fhss_callback_response = -1 ;
835
836
ret = mac_pd_sap_data_cb (& rf_ptr , & phy_message );
836
- if (ret != -2 ) {
837
+ if (ret != -1 ) {
837
838
return false;
838
839
}
839
840
fhss_callback_response = -3 ;
840
841
rf_ptr .macRfRadioTxActive = true;
841
842
ret = mac_pd_sap_data_cb (& rf_ptr , & phy_message );
842
- if (ret != -3 ) {
843
+ if (ret != -1 ) {
843
844
return false;
844
845
}
845
846
You can’t perform that action at this time.
0 commit comments