Fix bug when canceling send
Add (modified) X-MAC module
XT-MAC: Fix preconfigured parameter calculation