RE: 99 XJR "Restricted Performance"
The good news is that you probably did not mess up the MAF. The bad news is that tracing this may take some work. The P0172 is for Rich combustion in A bank only, caused by a bad injector or bad sensor input (the MAFS could do this, but it would also affect B bank), it could also be caused by a bad fuel regulator, clogged air filter, or a blocked fuel return line but this also is tempered by the fact that all these problems would cause B bank to be rich too. Look at them anyway. P1797 is probably the key, it is a CAN bus fault which is a harness problem. This fault is occuring between the ECU and the TCM causing a missing token message. If you are determined, you can start checking connectors in the CAN bus for bad connections ,open circuitsand wire faults, primarily between the ECU and the TCM. The worst possibility is that either the TCMor the ECU is bad.P1111 is only a readiness code, forget it. If this is all gibberish, go to a specialist and let them take a stab at it.