summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichaƫl Burtin <bukington@gmail.com>2012-01-15 22:43:31 +0100
committerSteve Kondik <steve@cyngn.com>2015-10-26 15:49:35 -0700
commit448f64b45a0a9f1b7ecf0acedda1d238c6a13d4d (patch)
tree82d162121b1b6604a8275a10f001da55c9c6d47c
parent8fc46e5b59bec51c8bc7145a8677abbee3fdd51a (diff)
downloadhardware_libhardware_legacy-448f64b45a0a9f1b7ecf0acedda1d238c6a13d4d.zip
hardware_libhardware_legacy-448f64b45a0a9f1b7ecf0acedda1d238c6a13d4d.tar.gz
hardware_libhardware_legacy-448f64b45a0a9f1b7ecf0acedda1d238c6a13d4d.tar.bz2
wifi: add a new "loading" state
Set wlan.driver.status to "loading" in wifi_load_driver to allow external action being triggered by property change. Change-Id: Ia4363de4c4e0e1a1c4759f5699fd5ea6e1bc3182
-rw-r--r--wifi/wifi.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/wifi/wifi.c b/wifi/wifi.c
index 14adf38..6e70bd7 100644
--- a/wifi/wifi.c
+++ b/wifi/wifi.c
@@ -333,6 +333,8 @@ int wifi_load_driver()
if (insmod(DRIVER_MODULE_PATH, module_arg2) < 0) {
#else
+ property_set(DRIVER_PROP_NAME, "loading");
+
#ifdef WIFI_EXT_MODULE_PATH
if (insmod(EXT_MODULE_PATH, EXT_MODULE_ARG) < 0)
return -1;