File tree Expand file tree Collapse file tree 3 files changed +10
-1
lines changed Expand file tree Collapse file tree 3 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,8 @@ typedef enum mac_event_t {
37
37
MAC_TIMER_ACK ,
38
38
MAC_TIMER_CCA ,
39
39
MAC_TX_FAIL ,
40
- MAC_TX_TIMEOUT
40
+ MAC_TX_TIMEOUT ,
41
+ MAC_UNKNOWN_DESTINATION ,
41
42
} mac_event_t ;
42
43
43
44
typedef enum mac_tx_status_type_t {
Original file line number Diff line number Diff line change @@ -1359,6 +1359,8 @@ static void mac_common_data_confirmation_handle (protocol_interface_rf_mac_setup
1359
1359
//Enable Radio
1360
1360
mac_mlme_mac_radio_enable (rf_mac_setup );
1361
1361
buf -> status = MLME_TRANSACTION_EXPIRED ;
1362
+ } else if (m_event == MAC_UNKNOWN_DESTINATION ) {
1363
+ buf -> status = MLME_UNAVAILABLE_KEY ;
1362
1364
}
1363
1365
}
1364
1366
}
Original file line number Diff line number Diff line change @@ -254,6 +254,9 @@ void mac_pd_sap_state_machine(protocol_interface_rf_mac_setup_s *rf_mac_setup)
254
254
if (tx_handle_retval == -3 ) {
255
255
mac_tx_done_state_set (rf_mac_setup , MAC_CCA_FAIL );
256
256
return ;
257
+ } else if (tx_handle_retval == -2 ) {
258
+ mac_tx_done_state_set (rf_mac_setup , MAC_UNKNOWN_DESTINATION );
259
+ return ;
257
260
}
258
261
}
259
262
if (mac_plme_cca_req (rf_mac_setup ) != 0 ) {
@@ -361,6 +364,9 @@ static int8_t mac_data_interface_tx_done_cb(protocol_interface_rf_mac_setup_s *r
361
364
if (tx_handle_retval == -3 ) {
362
365
mac_tx_done_state_set (rf_ptr , MAC_CCA_FAIL );
363
366
return -3 ;
367
+ } else if (tx_handle_retval == -2 ) {
368
+ mac_tx_done_state_set (rf_ptr , MAC_UNKNOWN_DESTINATION );
369
+ return -2 ;
364
370
}
365
371
}
366
372
}
You can’t perform that action at this time.
0 commit comments