From 5b6ec5682ec6ed5580db3f4a890f7c13f7a6edad Mon Sep 17 00:00:00 2001 From: "Christopher N. Hesse" Date: Mon, 22 Jan 2018 00:20:06 +0100 Subject: [PATCH] wifiloader: Notify WiFi HAL on module load success Change-Id: I0c7de00aec571a29f79137bb5b50178b0be91408 --- wifiloader/Android.mk | 2 +- wifiloader/wifiloader.c | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/wifiloader/Android.mk b/wifiloader/Android.mk index 72c1c494..32b80b18 100644 --- a/wifiloader/Android.mk +++ b/wifiloader/Android.mk @@ -7,7 +7,7 @@ LOCAL_SRC_FILES := \ wifiloader.c LOCAL_SHARED_LIBRARIES := \ - liblog libutils + libcutils liblog libutils ifneq ($(WIFI_DRIVER_MODULE_NAME),) LOCAL_CFLAGS += -DWIFI_DRIVER_MODULE_NAME=\"$(WIFI_DRIVER_MODULE_NAME)\" diff --git a/wifiloader/wifiloader.c b/wifiloader/wifiloader.c index 6c296601..c827aea8 100644 --- a/wifiloader/wifiloader.c +++ b/wifiloader/wifiloader.c @@ -24,6 +24,7 @@ #include #include #include +#include #include #include @@ -83,6 +84,10 @@ static int load_module(char const *path) return -errno; } + // let wifi HAL know we succeeded + ALOGV("Successfully loaded WLAN module: %s", WIFI_DRIVER_MODULE_NAME); + property_set("wlan.driver.status", "ok"); + close(fd); return 0; }