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) {
137137 dev_driver_tx_buffer_s * tx_buf = & rf_mac_setup -> dev_driver_tx_buffer ;
138138 phy_device_driver_s * dev_driver = rf_mac_setup -> dev_driver -> phy_driver ;
139139
140-
140+ rf_mac_setup -> macRfRadioTxActive = true;
141141 if (dev_driver -> arm_net_virtual_tx_cb ) {
142142 if (dev_driver -> tx (tx_buf -> buf , tx_buf -> len , 1 , PHY_LAYER_PAYLOAD ) == 0 ) {
143- rf_mac_setup -> macRfRadioTxActive = true;
144143 timer_mac_start (rf_mac_setup , MAC_TX_TIMEOUT , NWKTX_TIMEOUT_PERIOD ); /*Start Timeout timer for virtual packet loss*/
145144 } else {
145+ rf_mac_setup -> macRfRadioTxActive = false;
146146 mac_data_interface_tx_to_cb (rf_mac_setup );
147147 }
148148 return 0 ;
149149 }
150150
151151 if (dev_driver -> tx (tx_buf -> buf , tx_buf -> len , 1 , PHY_LAYER_PAYLOAD ) == 0 ) {
152- rf_mac_setup -> macRfRadioTxActive = true;
153152 return 0 ;
154153 }
154+ rf_mac_setup -> macRfRadioTxActive = false;
155155 return -1 ;
156156}
157157
You can’t perform that action at this time.
0 commit comments