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 ifdef WIFI_DRIVER_STATE_CTRL_PARAM 29 LOCAL_CFLAGS += -DWIFI_DRIVER_STATE_CTRL_PARAM=\"$(WIFI_DRIVER_STATE_CTRL_PARAM)\" 30 endif 31 ifdef WIFI_DRIVER_STATE_ON 32 LOCAL_CFLAGS += -DWIFI_DRIVER_STATE_ON=\"$(WIFI_DRIVER_STATE_ON)\" 33 endif 34 ifdef WIFI_DRIVER_STATE_OFF 35 LOCAL_CFLAGS += -DWIFI_DRIVER_STATE_OFF=\"$(WIFI_DRIVER_STATE_OFF)\" 36 endif 37 38 LOCAL_SRC_FILES += wifi/wifi.c 39 40 ifdef WPA_SUPPLICANT_VERSION 41 LOCAL_CFLAGS += -DLIBWPA_CLIENT_EXISTS 42 LOCAL_SHARED_LIBRARIES += libwpa_client 43 endif 44 LOCAL_SHARED_LIBRARIES += libnetutils 45