Fix to properly manage modem DCD and RNG state.