p0171 is for fuel injection system function

if you are getting this code, you need to check your wire connections. a good place to start is your Mass Airflow Meter