Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 33bf60a3 authored by Irfan Sheriff's avatar Irfan Sheriff Committed by Android Git Automerger
Browse files

am 86654eda: am 8a14d8b9: am 1a5b6098: Handle GET_POWER failures

* commit '86654eda':
  Handle GET_POWER failures
parents a17de9b4 86654eda
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -419,7 +419,9 @@ static jint android_net_wifi_getPowerModeCommand(JNIEnv* env, jobject)
    }
    // reply comes back in the form "powermode = XX" where XX is the
    // number we're interested in.
    sscanf(reply, "%*s = %u", &power);
    if (sscanf(reply, "%*s = %u", &power) != 1) {
        return (jint)-1;
    }
    return (jint)power;
}