@@ -873,7 +873,6 @@ static int8_t mac_command_sap_rx_handler(mac_pre_parsed_frame_t *buf, protocol_i
873873 case MAC_DATA_REQ :
874874 //Here 2 check
875875 if (mac_indirect_data_req_handle (buf , rf_mac_setup ) == 0 ) {
876- tr_debug ("Trig Dummy packet" );
877876 mac_lib_res_no_data_to_req (buf , rf_mac_setup );
878877 }
879878 retval = 0 ;
@@ -1120,7 +1119,6 @@ static void mac_pd_data_confirm_handle(protocol_interface_rf_mac_setup_s *rf_mac
11201119 mcps_data_confirm_handle (rf_mac_setup , buffer , NULL );
11211120 } else {
11221121 if (mcps_pd_data_request (rf_mac_setup , buffer ) != 0 ) {
1123- tr_debug ("Asynch Request fail" );
11241122 rf_mac_setup -> active_pd_data_request = NULL ;
11251123 mcps_data_confirm_handle (rf_mac_setup , buffer , NULL );
11261124 } else {
@@ -1699,7 +1697,6 @@ int8_t mcps_generic_ack_build(protocol_interface_rf_mac_setup_s *rf_ptr, const m
16991697 //Add MHR length to total length
17001698 frame_length += buffer -> mac_header_length_with_security + buffer -> security_mic_len ;
17011699 if ((frame_length ) > dev_driver -> phy_MTU - 2 ) {
1702- tr_debug ("Too Long %u, %u pa %u header %u mic %u" ,frame_length , mac_payload_length , buffer -> mac_header_length_with_security , buffer -> security_mic_len , dev_driver -> phy_MTU );
17031700 buffer -> status = MLME_FRAME_TOO_LONG ;
17041701
17051702 if (buffer -> fcf_dsn .securityEnabled ) {
@@ -1734,7 +1731,6 @@ int8_t mcps_generic_ack_build(protocol_interface_rf_mac_setup_s *rf_ptr, const m
17341731 csma_params .cca_enabled = false;
17351732 rf_ptr -> dev_driver -> phy_driver -> extension (PHY_EXTENSION_SET_CSMA_PARAMETERS , (uint8_t * ) & csma_params );
17361733 if (rf_ptr -> active_pd_data_request ) {
1737- tr_debug ("Cancel Timer" );
17381734 mac_pd_sap_set_phy_tx_time (rf_ptr , 0 , false);
17391735 }
17401736
@@ -2101,9 +2097,8 @@ void mcps_sap_pd_confirm(void *mac_ptr)
21012097 .priority = ARM_LIB_HIGH_PRIORITY_EVENT ,
21022098 };
21032099
2104- if (eventOS_event_send (& event ) != 0 ) {
2105- tr_error ("mcps_sap_pd_confirm(): event send failed" );
2106- }
2100+ eventOS_event_send (& event );
2101+
21072102}
21082103
21092104void mcps_sap_pd_ack (void * ack_ptr )
@@ -2120,9 +2115,7 @@ void mcps_sap_pd_ack(void *ack_ptr)
21202115 .priority = ARM_LIB_HIGH_PRIORITY_EVENT ,
21212116 };
21222117
2123- if (eventOS_event_send (& event ) != 0 ) {
2124- tr_error ("mcps_sap_pd_confirm(): event send failed" );
2125- }
2118+ eventOS_event_send (& event );
21262119}
21272120
21282121void mcps_sap_trig_tx (void * mac_ptr )
@@ -2142,9 +2135,7 @@ void mcps_sap_trig_tx(void *mac_ptr)
21422135 .priority = ARM_LIB_MED_PRIORITY_EVENT ,
21432136 };
21442137
2145- if (eventOS_event_send (& event ) != 0 ) {
2146- tr_error ("mcps_sap_trig_tx(): event send failed" );
2147- } else {
2138+ if (eventOS_event_send (& event ) == 0 ) {
21482139 mac_set_active_event (mac_ptr , MAC_SAP_TRIG_TX );
21492140 }
21502141}
@@ -2167,9 +2158,7 @@ void mac_generic_event_trig(uint8_t event_type, void *mac_ptr, bool low_latency)
21672158 .priority = priority ,
21682159 };
21692160
2170- if (eventOS_event_send (& event ) != 0 ) {
2171- tr_error ("mac_generic_event_trig(): event send failed" );
2172- }
2161+ eventOS_event_send (& event );
21732162}
21742163
21752164void mac_mcps_buffer_queue_free (protocol_interface_rf_mac_setup_s * rf_mac_setup ) {
0 commit comments