Camera3: Fix exposure compensation setting

Trivial bug fix

Change-Id: I5b44350899360982b3974e1f96a8270986517d88
diff --git a/camera/QCamera2/HAL3/QCamera3HWI.cpp b/camera/QCamera2/HAL3/QCamera3HWI.cpp
index b97d506..5f22829 100644
--- a/camera/QCamera2/HAL3/QCamera3HWI.cpp
+++ b/camera/QCamera2/HAL3/QCamera3HWI.cpp
@@ -2578,10 +2578,10 @@
     if (frame_settings.exists(ANDROID_CONTROL_AE_EXPOSURE_COMPENSATION)) {
         int32_t expCompensation = frame_settings.find(
             ANDROID_CONTROL_AE_EXPOSURE_COMPENSATION).data.i32[0];
-        if (expCompensation < gCamCapability[mCameraId]->exposure_time_range[0])
-            expCompensation = gCamCapability[mCameraId]->exposure_time_range[0];
-        if (expCompensation > gCamCapability[mCameraId]->exposure_time_range[1])
-            expCompensation = gCamCapability[mCameraId]->exposure_time_range[1];
+        if (expCompensation < gCamCapability[mCameraId]->exposure_compensation_min)
+            expCompensation = gCamCapability[mCameraId]->exposure_compensation_min;
+        if (expCompensation > gCamCapability[mCameraId]->exposure_compensation_max)
+            expCompensation = gCamCapability[mCameraId]->exposure_compensation_max;
         rc = AddSetParmEntryToBatch(mParameters, CAM_INTF_PARM_EXPOSURE_COMPENSATION,
           sizeof(expCompensation), &expCompensation);
     }