From 7061076c2d4be9e8cc356ef598dc30629c4a195f Mon Sep 17 00:00:00 2001
From: Rashed Abdel-Tawab <rashed@linux.com>
Date: Tue, 6 Feb 2018 12:58:44 +0530
Subject: [PATCH] mido: Build QTI HIDL power 1.0 HAL

This fixes 01-21 07:34:55.559   536   536 E QCOM PowerHAL: extract_stats: failed to open: /d/wlan0/power_stats Error = No such file or directory

Change-Id: I929a2d3aedf3bfdca962dc34720019d83c7134e1
---
 BoardConfig.mk | 2 +-
 device.mk      | 3 +--
 2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/BoardConfig.mk b/BoardConfig.mk
index f7526f8..ec3c03f 100644
--- a/BoardConfig.mk
+++ b/BoardConfig.mk
@@ -188,7 +188,7 @@ BOARD_FLASH_BLOCK_SIZE := 131072 # (BOARD_KERNEL_PAGESIZE * 64)
 TARGET_PER_MGR_ENABLED := true
 
 # Power
-TARGET_POWERHAL_VARIANT := qcom
+TARGET_HAS_NO_WIFI_STATS := true
 
 # Properties
 TARGET_SYSTEM_PROP := $(DEVICE_PATH)/system.prop
diff --git a/device.mk b/device.mk
index fdfff67..7ade7ac 100644
--- a/device.mk
+++ b/device.mk
@@ -272,8 +272,7 @@ PRODUCT_PACKAGES += \
 
 # Power
 PRODUCT_PACKAGES += \
-    android.hardware.power@1.0-impl \
-    power.msm8953
+    android.hardware.power@1.0-service-qti
 
 # QMI
 PRODUCT_PACKAGES += \
-- 
GitLab