@@ -873,7 +873,6 @@ static int8_t mac_command_sap_rx_handler(mac_pre_parsed_frame_t *buf, protocol_i
873
873
case MAC_DATA_REQ :
874
874
//Here 2 check
875
875
if (mac_indirect_data_req_handle (buf , rf_mac_setup ) == 0 ) {
876
- tr_debug ("Trig Dummy packet" );
877
876
mac_lib_res_no_data_to_req (buf , rf_mac_setup );
878
877
}
879
878
retval = 0 ;
@@ -1120,7 +1119,6 @@ static void mac_pd_data_confirm_handle(protocol_interface_rf_mac_setup_s *rf_mac
1120
1119
mcps_data_confirm_handle (rf_mac_setup , buffer , NULL );
1121
1120
} else {
1122
1121
if (mcps_pd_data_request (rf_mac_setup , buffer ) != 0 ) {
1123
- tr_debug ("Asynch Request fail" );
1124
1122
rf_mac_setup -> active_pd_data_request = NULL ;
1125
1123
mcps_data_confirm_handle (rf_mac_setup , buffer , NULL );
1126
1124
} else {
@@ -1699,7 +1697,6 @@ int8_t mcps_generic_ack_build(protocol_interface_rf_mac_setup_s *rf_ptr, const m
1699
1697
//Add MHR length to total length
1700
1698
frame_length += buffer -> mac_header_length_with_security + buffer -> security_mic_len ;
1701
1699
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 );
1703
1700
buffer -> status = MLME_FRAME_TOO_LONG ;
1704
1701
1705
1702
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
1734
1731
csma_params .cca_enabled = false;
1735
1732
rf_ptr -> dev_driver -> phy_driver -> extension (PHY_EXTENSION_SET_CSMA_PARAMETERS , (uint8_t * ) & csma_params );
1736
1733
if (rf_ptr -> active_pd_data_request ) {
1737
- tr_debug ("Cancel Timer" );
1738
1734
mac_pd_sap_set_phy_tx_time (rf_ptr , 0 , false);
1739
1735
}
1740
1736
@@ -2101,9 +2097,8 @@ void mcps_sap_pd_confirm(void *mac_ptr)
2101
2097
.priority = ARM_LIB_HIGH_PRIORITY_EVENT ,
2102
2098
};
2103
2099
2104
- if (eventOS_event_send (& event ) != 0 ) {
2105
- tr_error ("mcps_sap_pd_confirm(): event send failed" );
2106
- }
2100
+ eventOS_event_send (& event );
2101
+
2107
2102
}
2108
2103
2109
2104
void mcps_sap_pd_ack (void * ack_ptr )
@@ -2120,9 +2115,7 @@ void mcps_sap_pd_ack(void *ack_ptr)
2120
2115
.priority = ARM_LIB_HIGH_PRIORITY_EVENT ,
2121
2116
};
2122
2117
2123
- if (eventOS_event_send (& event ) != 0 ) {
2124
- tr_error ("mcps_sap_pd_confirm(): event send failed" );
2125
- }
2118
+ eventOS_event_send (& event );
2126
2119
}
2127
2120
2128
2121
void mcps_sap_trig_tx (void * mac_ptr )
@@ -2142,9 +2135,7 @@ void mcps_sap_trig_tx(void *mac_ptr)
2142
2135
.priority = ARM_LIB_MED_PRIORITY_EVENT ,
2143
2136
};
2144
2137
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 ) {
2148
2139
mac_set_active_event (mac_ptr , MAC_SAP_TRIG_TX );
2149
2140
}
2150
2141
}
@@ -2167,9 +2158,7 @@ void mac_generic_event_trig(uint8_t event_type, void *mac_ptr, bool low_latency)
2167
2158
.priority = priority ,
2168
2159
};
2169
2160
2170
- if (eventOS_event_send (& event ) != 0 ) {
2171
- tr_error ("mac_generic_event_trig(): event send failed" );
2172
- }
2161
+ eventOS_event_send (& event );
2173
2162
}
2174
2163
2175
2164
void mac_mcps_buffer_queue_free (protocol_interface_rf_mac_setup_s * rf_mac_setup ) {
0 commit comments