lr-wpan: Fixes PHY not going to TRX_OFF after CSMA-CA failure (rxOnWhenIdle(false))
(Solves #536 (closed)).
When RxOnWhenIdle(false) is set in lr-wpan MAC, the PHY should go to TRX_OFF whenever the MAC is idle. However, in the current implementation, if the CSMA fails after a transmission attempt the MAC goes idle but the PHY does not go back to TRX_OFF.
This MR fixes that problem. A test is included.
Edited by Alberto Gallegos