File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -137,21 +137,21 @@ int8_t mac_plme_cca_req(protocol_interface_rf_mac_setup_s *rf_mac_setup) {
137
137
dev_driver_tx_buffer_s * tx_buf = & rf_mac_setup -> dev_driver_tx_buffer ;
138
138
phy_device_driver_s * dev_driver = rf_mac_setup -> dev_driver -> phy_driver ;
139
139
140
-
140
+ rf_mac_setup -> macRfRadioTxActive = true;
141
141
if (dev_driver -> arm_net_virtual_tx_cb ) {
142
142
if (dev_driver -> tx (tx_buf -> buf , tx_buf -> len , 1 , PHY_LAYER_PAYLOAD ) == 0 ) {
143
- rf_mac_setup -> macRfRadioTxActive = true;
144
143
timer_mac_start (rf_mac_setup , MAC_TX_TIMEOUT , NWKTX_TIMEOUT_PERIOD ); /*Start Timeout timer for virtual packet loss*/
145
144
} else {
145
+ rf_mac_setup -> macRfRadioTxActive = false;
146
146
mac_data_interface_tx_to_cb (rf_mac_setup );
147
147
}
148
148
return 0 ;
149
149
}
150
150
151
151
if (dev_driver -> tx (tx_buf -> buf , tx_buf -> len , 1 , PHY_LAYER_PAYLOAD ) == 0 ) {
152
- rf_mac_setup -> macRfRadioTxActive = true;
153
152
return 0 ;
154
153
}
154
+ rf_mac_setup -> macRfRadioTxActive = false;
155
155
return -1 ;
156
156
}
157
157
You can’t perform that action at this time.
0 commit comments