The request to turn maintenance off/on is a separate flag, although the actual status is still contained in the status bitfield.
Minimal changes, only what is needed in order to make it compile.