summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2021-09-08 16:42:40 +0200
committerDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2021-09-08 19:44:14 +0200
commit0b7f30e841a8903f469581e7c6221919fa9cc3e2 (patch)
tree286870c02958fbbbb14aa4741d9060eefdf3ea4a
parent6295916af26c0726a5ab969647cc6d11386f8b67 (diff)
downloadframeworks_opt_net_wifi-replicant-11.tar.gz
frameworks_opt_net_wifi-replicant-11.tar.bz2
frameworks_opt_net_wifi-replicant-11.zip
libwifi_hal: Android.mk: Add Replicant WiFi HALreplicant-11-nlnet-eu-grant-825310-replicant-updatereplicant-11
Android doesn't have a stock WiFi HAL implementation, and the broadcom HAL seem to be used as a base for making mostly Linux Kernel compliant WiFi HALs. We can for instance see that in device/linaro/poplar. We also don't want to use the broadcom HAL as-is as its repository has nonfree firmwares and we might want to make the HAL more standard and add in quirks that are generic enough, for instance to make the re-trigger the probe of WiFi kernel drivers in order to retry loading the firmware after the device has booted. Otherwise some WiFi drivers (like brcmfmac) try to load the firmware when the rootfs isn't mounted yet. To enable to select the Replicant wlan HAL, we also need to override the frameworks/opt/net/wifi repository as it contains an Android.mk that needs to be modified to have a HAL shared accross devices. Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
-rw-r--r--libwifi_hal/Android.mk3
1 files changed, 3 insertions, 0 deletions
diff --git a/libwifi_hal/Android.mk b/libwifi_hal/Android.mk
index 7bdbc3259..cb2507cf0 100644
--- a/libwifi_hal/Android.mk
+++ b/libwifi_hal/Android.mk
@@ -90,6 +90,9 @@ VENDOR_LOCAL_SHARED_LIBRARIES :=
ifeq ($(BOARD_WLAN_DEVICE), bcmdhd)
LIB_WIFI_HAL := libwifi-hal-bcm
VENDOR_LOCAL_SHARED_LIBRARIES := libcrypto
+else ifeq ($(BOARD_WLAN_DEVICE), replicant)
+ LIB_WIFI_HAL := libwifi-hal-replicant
+ VENDOR_LOCAL_SHARED_LIBRARIES := libcrypto
else ifeq ($(BOARD_WLAN_DEVICE), qcwcn)
LIB_WIFI_HAL := libwifi-hal-qcom
VENDOR_LOCAL_SHARED_LIBRARIES := libcld80211