diff options
author | codeworkx <daniel.hillenbrand@codeworkx.de> | 2018-02-03 22:13:53 +0100 |
---|---|---|
committer | codeworkx <daniel.hillenbrand@codeworkx.de> | 2018-02-18 06:29:00 +0100 |
commit | 222f69c7d1098c5b52a9df9448516c2c61cfec61 (patch) | |
tree | 26760ede9828a48536af56ee7124e52fe68c83a5 /libwifi_hal/Android.mk | |
parent | 2293f56db188ccd951f78197eae4ade7af34113f (diff) | |
download | android_frameworks_opt_net_wifi-222f69c7d1098c5b52a9df9448516c2c61cfec61.tar.gz android_frameworks_opt_net_wifi-222f69c7d1098c5b52a9df9448516c2c61cfec61.tar.bz2 android_frameworks_opt_net_wifi-222f69c7d1098c5b52a9df9448516c2c61cfec61.zip |
libwifi-hal: add flag to wait for kernel driver to get ready
If the wifi hal comes up before the kernel driver gets ready then wifi
will be disabled after the device has fully booted up regardless of the previous state.
This confuses users and is not an expected behaviour.
Example:
WIFI_DRIVER_OPERSTATE_PATH := "/sys/class/net/wlan0/operstate"
Bug: Wifi down after boot
Test: Enable wifi, reboot and check if it's still up
Change-Id: If23d5d6ef0fe75e64053ea779feb6acb37d98850
Diffstat (limited to 'libwifi_hal/Android.mk')
-rw-r--r-- | libwifi_hal/Android.mk | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libwifi_hal/Android.mk b/libwifi_hal/Android.mk index 1179a091d..9ed2fbd70 100644 --- a/libwifi_hal/Android.mk +++ b/libwifi_hal/Android.mk @@ -60,6 +60,12 @@ ifdef WIFI_DRIVER_STATE_OFF wifi_hal_cflags += -DWIFI_DRIVER_STATE_OFF=\"$(WIFI_DRIVER_STATE_OFF)\" endif +# Wait for Wifi driver to get ready +# Example: WIFI_DRIVER_OPERSTATE_PATH := "/sys/class/net/wlan0/operstate" +ifdef WIFI_DRIVER_OPERSTATE_PATH +wifi_hal_cflags += -DWIFI_DRIVER_OPERSTATE_PATH=\"$(WIFI_DRIVER_OPERSTATE_PATH)\" +endif + # Common code shared between the HALs. # ============================================================ include $(CLEAR_VARS) |