Use state machine in decoding.
WL-3033 Merge state machine branch