P1188 and P1189 mean FUEL CONTROL MALFUNCTION, BANK 1 & BANK 2, respectively. Fuyel control can be rich or lean, or it can have a malfunction -- which logic says is both rich and lean at different times.
My car had these codes, and the MAF (not mas, by the way) was the problem. I had a couple of P0100 or P0101 (I forget which and don't really care very much), which mean the MAF is not reporting correctly.
The job of the MAF
As air enters the intake, the MAF reads the air quality -- density and temperature -- to determine how much fuel needs to be delivered to obtain an air/fuel ratio of 14.7 parts of air to each part of fuel. As you open and close the throttle plate, there is a change in the demand for fuel based upon how much air is going in. The O2 Sensors monitor the exhaust stream to fine tune the fuel delivery to maintain the air fuel ratio of 14.7:1. This is what the MAF does when it works.
Air quality does not change very much in any given drive cycle. Consider the air quality to be static -- it does not change. Surely, the air quality does change, but any change is slow and progressive -- day turns to night and air goes from warm and thin to cold and thick -- but from one minute to the next the air quality should generally not change. When the MAF breaks, it can report warm and thin air one minute and cold and dense air the next. Then back again. The computer sees these changes in air quality and this alters the fuel delivery algorithm, keep in mind that the air quality is actually a static condition so the fuel demand should be constant also. The O2s are copntinuously reading the exhaust and telling the computer, more gas next time, less gas next time, more, less, okay that's good, more, less.... And so on. The amount of gas in the exhaust should be steady, but since the MAF is not working correctly, then the amount of gas that is delivered to the combustion chambers is all over the place.
If the fuel control was reliably lean or reliably rich, then the O2s would report as appropriate. Your car is sometimes rich and sometimes lean, the O2s report, no matter what we say to do, the fuel control is never right -- or, FUEL CONTROL MALFUNCTION, BANK 1 & BANK 2 (P1188 & P1189).
My car had a shorted transistor inside the epoxy bed in the MAF. I forget which transistor was the problem, but I clearly remember that the diagnostic package said that the transistor gate was shorted to ground. Somebody here has said that their connector to the MAF had a problem with the pins being stretched, or something, and the resulting poor connection gave unreliable information to the computer.