tsch: report MAC_TX_ERR if prepare() fails
Before this fix, uninitialized mac_tx_status was reported in this case.
@@ -643,6 +643,8 @@ PT_THREAD(tsch_tx_slot(struct pt *pt, struct rtimer *t))
mac_tx_status = MAC_TX_ERR;
}
}
+ }else {
+ mac_tx_status = MAC_TX_ERR;
}
}
