1 # Copyright 2006 The Android Open Source Project 2 3 ifdef WIFI_DRIVER_MODULE_PATH 4 LOCAL_CFLAGS += -DWIFI_DRIVER_MODULE_PATH=\"$(WIFI_DRIVER_MODULE_PATH)\" 5 endif 6 ifdef WIFI_DRIVER_MODULE_ARG 7 LOCAL_CFLAGS += -DWIFI_DRIVER_MODULE_ARG=\"$(WIFI_DRIVER_MODULE_ARG)\" 8 endif 9 ifdef WIFI_DRIVER_MODULE_NAME 10 LOCAL_CFLAGS += -DWIFI_DRIVER_MODULE_NAME=\"$(WIFI_DRIVER_MODULE_NAME)\" 11 endif 12 ifdef WIFI_FIRMWARE_LOADER 13 LOCAL_CFLAGS += -DWIFI_FIRMWARE_LOADER=\"$(WIFI_FIRMWARE_LOADER)\" 14 endif 15 ifdef WIFI_DRIVER_FW_PATH_STA 16 LOCAL_CFLAGS += -DWIFI_DRIVER_FW_PATH_STA=\"$(WIFI_DRIVER_FW_PATH_STA)\" 17 endif 18 ifdef WIFI_DRIVER_FW_PATH_AP 19 LOCAL_CFLAGS += -DWIFI_DRIVER_FW_PATH_AP=\"$(WIFI_DRIVER_FW_PATH_AP)\" 20 endif 21 ifdef WIFI_DRIVER_FW_PATH_P2P 22 LOCAL_CFLAGS += -DWIFI_DRIVER_FW_PATH_P2P=\"$(WIFI_DRIVER_FW_PATH_P2P)\" 23 endif 24 ifdef WIFI_DRIVER_FW_PATH_PARAM 25 LOCAL_CFLAGS += -DWIFI_DRIVER_FW_PATH_PARAM=\"$(WIFI_DRIVER_FW_PATH_PARAM)\" 26 endif 27 28 LOCAL_SRC_FILES += wifi/wifi.c 29 30 ifdef WPA_SUPPLICANT_VERSION 31 LOCAL_CFLAGS += -DLIBWPA_CLIENT_EXISTS 32 LOCAL_SHARED_LIBRARIES += libwpa_client 33 endif 34 LOCAL_SHARED_LIBRARIES += libnetutils 35