Android.mk 33 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602
  1. #
  2. # Copyright (C) 2008 The Android Open Source Project
  3. #
  4. # This software may be distributed under the terms of the BSD license.
  5. # See README for more details.
  6. #
  7. LOCAL_PATH := $(call my-dir)
  8. PKG_CONFIG ?= pkg-config
  9. ifneq ($(BOARD_WPA_SUPPLICANT_DRIVER),)
  10. CONFIG_DRIVER_$(BOARD_WPA_SUPPLICANT_DRIVER) := y
  11. endif
  12. include $(LOCAL_PATH)/android.config
  13. # To ignore possible wrong network configurations
  14. L_CFLAGS = -DWPA_IGNORE_CONFIG_ERRORS
  15. L_CFLAGS += -DVERSION_STR_POSTFIX=\"-$(PLATFORM_VERSION)\"
  16. # Set Android log name
  17. L_CFLAGS += -DANDROID_LOG_NAME=\"wpa_supplicant\"
  18. # Disable unused parameter warnings
  19. L_CFLAGS += -Wno-unused-parameter
  20. # Set Android extended P2P functionality
  21. L_CFLAGS += -DANDROID_P2P
  22. ifeq ($(BOARD_WPA_SUPPLICANT_PRIVATE_LIB),)
  23. L_CFLAGS += -DANDROID_P2P_STUB
  24. endif
  25. # Disable roaming in wpa_supplicant
  26. ifdef CONFIG_NO_ROAMING
  27. L_CFLAGS += -DCONFIG_NO_ROAMING
  28. endif
  29. # Use Android specific directory for control interface sockets
  30. L_CFLAGS += -DCONFIG_CTRL_IFACE_CLIENT_DIR=\"/data/misc/wifi/sockets\"
  31. L_CFLAGS += -DCONFIG_CTRL_IFACE_DIR=\"/data/system/wpa_supplicant\"
  32. # To force sizeof(enum) = 4
  33. ifeq ($(TARGET_ARCH),arm)
  34. L_CFLAGS += -mabi=aapcs-linux
  35. endif
  36. INCLUDES = $(LOCAL_PATH)
  37. INCLUDES += $(LOCAL_PATH)/src
  38. INCLUDES += $(LOCAL_PATH)/src/common
  39. # INCLUDES += $(LOCAL_PATH)/src/crypto # To force proper includes
  40. INCLUDES += $(LOCAL_PATH)/src/drivers
  41. INCLUDES += $(LOCAL_PATH)/src/eap_common
  42. INCLUDES += $(LOCAL_PATH)/src/eapol_supp
  43. INCLUDES += $(LOCAL_PATH)/src/eap_peer
  44. INCLUDES += $(LOCAL_PATH)/src/eap_server
  45. INCLUDES += $(LOCAL_PATH)/src/hlr_auc_gw
  46. INCLUDES += $(LOCAL_PATH)/src/l2_packet
  47. INCLUDES += $(LOCAL_PATH)/src/radius
  48. INCLUDES += $(LOCAL_PATH)/src/rsn_supp
  49. INCLUDES += $(LOCAL_PATH)/src/tls
  50. INCLUDES += $(LOCAL_PATH)/src/utils
  51. INCLUDES += $(LOCAL_PATH)/src/wps
  52. INCLUDES += external/openssl/include
  53. INCLUDES += system/security/keystore/include
  54. ifdef CONFIG_DRIVER_NL80211
  55. ifneq ($(wildcard external/libnl),)
  56. INCLUDES += external/libnl/include
  57. else
  58. INCLUDES += external/libnl-headers
  59. endif
  60. endif
  61. ifdef CONFIG_FIPS
  62. CONFIG_NO_RANDOM_POOL=
  63. CONFIG_OPENSSL_CMAC=y
  64. endif
  65. OBJS = config.c
  66. OBJS += notify.c
  67. OBJS += bss.c
  68. OBJS += eap_register.c
  69. OBJS += src/utils/common.c
  70. OBJS += src/utils/wpa_debug.c
  71. OBJS += src/utils/wpabuf.c
  72. OBJS_p = wpa_passphrase.c
  73. OBJS_p += src/utils/common.c
  74. OBJS_p += src/utils/wpa_debug.c
  75. OBJS_p += src/utils/wpabuf.c
  76. OBJS_c = wpa_cli.c src/common/wpa_ctrl.c
  77. OBJS_c += src/utils/wpa_debug.c
  78. OBJS_c += src/utils/common.c
  79. OBJS_d =
  80. OBJS_priv =
  81. ifndef CONFIG_OS
  82. ifdef CONFIG_NATIVE_WINDOWS
  83. CONFIG_OS=win32
  84. else
  85. CONFIG_OS=unix
  86. endif
  87. endif
  88. ifeq ($(CONFIG_OS), internal)
  89. L_CFLAGS += -DOS_NO_C_LIB_DEFINES
  90. endif
  91. OBJS += src/utils/os_$(CONFIG_OS).c
  92. OBJS_p += src/utils/os_$(CONFIG_OS).c
  93. OBJS_c += src/utils/os_$(CONFIG_OS).c
  94. ifdef CONFIG_WPA_TRACE
  95. L_CFLAGS += -DWPA_TRACE
  96. OBJS += src/utils/trace.c
  97. OBJS_p += src/utils/trace.c
  98. OBJS_c += src/utils/trace.c
  99. LDFLAGS += -rdynamic
  100. L_CFLAGS += -funwind-tables
  101. ifdef CONFIG_WPA_TRACE_BFD
  102. L_CFLAGS += -DWPA_TRACE_BFD
  103. LIBS += -lbfd
  104. LIBS_p += -lbfd
  105. LIBS_c += -lbfd
  106. endif
  107. endif
  108. ifndef CONFIG_ELOOP
  109. CONFIG_ELOOP=eloop
  110. endif
  111. OBJS += src/utils/$(CONFIG_ELOOP).c
  112. OBJS_c += src/utils/$(CONFIG_ELOOP).c
  113. ifdef CONFIG_ELOOP_POLL
  114. L_CFLAGS += -DCONFIG_ELOOP_POLL
  115. endif
  116. ifdef CONFIG_ELOOP_EPOLL
  117. L_CFLAGS += -DCONFIG_ELOOP_EPOLL
  118. endif
  119. ifdef CONFIG_EAPOL_TEST
  120. L_CFLAGS += -Werror -DEAPOL_TEST
  121. endif
  122. ifdef CONFIG_HT_OVERRIDES
  123. L_CFLAGS += -DCONFIG_HT_OVERRIDES
  124. endif
  125. ifdef CONFIG_VHT_OVERRIDES
  126. L_CFLAGS += -DCONFIG_VHT_OVERRIDES
  127. endif
  128. ifndef CONFIG_BACKEND
  129. CONFIG_BACKEND=file
  130. endif
  131. ifeq ($(CONFIG_BACKEND), file)
  132. OBJS += config_file.c
  133. ifndef CONFIG_NO_CONFIG_BLOBS
  134. NEED_BASE64=y
  135. endif
  136. L_CFLAGS += -DCONFIG_BACKEND_FILE
  137. endif
  138. ifeq ($(CONFIG_BACKEND), winreg)
  139. OBJS += config_winreg.c
  140. endif
  141. ifeq ($(CONFIG_BACKEND), none)
  142. OBJS += config_none.c
  143. endif
  144. ifdef CONFIG_NO_CONFIG_WRITE
  145. L_CFLAGS += -DCONFIG_NO_CONFIG_WRITE
  146. endif
  147. ifdef CONFIG_NO_CONFIG_BLOBS
  148. L_CFLAGS += -DCONFIG_NO_CONFIG_BLOBS
  149. endif
  150. ifdef CONFIG_NO_SCAN_PROCESSING
  151. L_CFLAGS += -DCONFIG_NO_SCAN_PROCESSING
  152. endif
  153. ifdef CONFIG_IEEE80211W
  154. L_CFLAGS += -DCONFIG_IEEE80211W
  155. NEED_SHA256=y
  156. NEED_AES_OMAC1=y
  157. endif
  158. ifdef CONFIG_IEEE80211R
  159. L_CFLAGS += -DCONFIG_IEEE80211R
  160. OBJS += src/rsn_supp/wpa_ft.c
  161. NEED_SHA256=y
  162. NEED_AES_OMAC1=y
  163. endif
  164. ifdef CONFIG_MESH
  165. NEED_80211_COMMON=y
  166. L_CFLAGS += -DCONFIG_MESH
  167. OBJS += mesh.c
  168. endif
  169. ifdef CONFIG_SAE
  170. L_CFLAGS += -DCONFIG_SAE
  171. OBJS += src/common/sae.c
  172. NEED_ECC=y
  173. NEED_DH_GROUPS=y
  174. endif
  175. ifdef CONFIG_WNM
  176. L_CFLAGS += -DCONFIG_WNM
  177. OBJS += wnm_sta.c
  178. endif
  179. ifdef CONFIG_TDLS
  180. L_CFLAGS += -DCONFIG_TDLS
  181. OBJS += src/rsn_supp/tdls.c
  182. NEED_SHA256=y
  183. NEED_AES_OMAC1=y
  184. endif
  185. ifdef CONFIG_TDLS_TESTING
  186. L_CFLAGS += -DCONFIG_TDLS_TESTING
  187. endif
  188. ifdef CONFIG_PEERKEY
  189. L_CFLAGS += -DCONFIG_PEERKEY
  190. endif
  191. ifndef CONFIG_NO_WPA
  192. OBJS += src/rsn_supp/wpa.c
  193. OBJS += src/rsn_supp/preauth.c
  194. OBJS += src/rsn_supp/pmksa_cache.c
  195. OBJS += src/rsn_supp/peerkey.c
  196. OBJS += src/rsn_supp/wpa_ie.c
  197. OBJS += src/common/wpa_common.c
  198. NEED_AES=y
  199. NEED_SHA1=y
  200. NEED_MD5=y
  201. NEED_RC4=y
  202. else
  203. L_CFLAGS += -DCONFIG_NO_WPA
  204. endif
  205. ifdef CONFIG_IBSS_RSN
  206. NEED_RSN_AUTHENTICATOR=y
  207. L_CFLAGS += -DCONFIG_IBSS_RSN
  208. OBJS += ibss_rsn.c
  209. endif
  210. ifdef CONFIG_P2P
  211. OBJS += p2p_supplicant.c
  212. OBJS += src/p2p/p2p.c
  213. OBJS += src/p2p/p2p_utils.c
  214. OBJS += src/p2p/p2p_parse.c
  215. OBJS += src/p2p/p2p_build.c
  216. OBJS += src/p2p/p2p_go_neg.c
  217. OBJS += src/p2p/p2p_sd.c
  218. OBJS += src/p2p/p2p_pd.c
  219. OBJS += src/p2p/p2p_invitation.c
  220. OBJS += src/p2p/p2p_dev_disc.c
  221. OBJS += src/p2p/p2p_group.c
  222. OBJS += src/ap/p2p_hostapd.c
  223. OBJS += src/utils/bitfield.c
  224. L_CFLAGS += -DCONFIG_P2P
  225. NEED_GAS=y
  226. NEED_OFFCHANNEL=y
  227. CONFIG_WPS=y
  228. CONFIG_AP=y
  229. ifdef CONFIG_P2P_STRICT
  230. L_CFLAGS += -DCONFIG_P2P_STRICT
  231. endif
  232. endif
  233. ifdef CONFIG_WIFI_DISPLAY
  234. L_CFLAGS += -DCONFIG_WIFI_DISPLAY
  235. OBJS += wifi_display.c
  236. endif
  237. ifdef CONFIG_HS20
  238. OBJS += hs20_supplicant.c
  239. L_CFLAGS += -DCONFIG_HS20
  240. CONFIG_INTERWORKING=y
  241. NEED_AES_OMAC1=y
  242. endif
  243. ifdef CONFIG_INTERWORKING
  244. OBJS += interworking.c
  245. L_CFLAGS += -DCONFIG_INTERWORKING
  246. NEED_GAS=y
  247. endif
  248. include $(LOCAL_PATH)/src/drivers/drivers.mk
  249. ifdef CONFIG_AP
  250. OBJS_d += $(DRV_BOTH_OBJS)
  251. L_CFLAGS += $(DRV_BOTH_CFLAGS)
  252. LDFLAGS += $(DRV_BOTH_LDFLAGS)
  253. LIBS += $(DRV_BOTH_LIBS)
  254. else
  255. NEED_AP_MLME=
  256. OBJS_d += $(DRV_WPA_OBJS)
  257. L_CFLAGS += $(DRV_WPA_CFLAGS)
  258. LDFLAGS += $(DRV_WPA_LDFLAGS)
  259. LIBS += $(DRV_WPA_LIBS)
  260. endif
  261. ifndef CONFIG_L2_PACKET
  262. CONFIG_L2_PACKET=linux
  263. endif
  264. OBJS_l2 += src/l2_packet/l2_packet_$(CONFIG_L2_PACKET).c
  265. ifeq ($(CONFIG_L2_PACKET), pcap)
  266. ifdef CONFIG_WINPCAP
  267. L_CFLAGS += -DCONFIG_WINPCAP
  268. LIBS += -lwpcap -lpacket
  269. LIBS_w += -lwpcap
  270. else
  271. LIBS += -ldnet -lpcap
  272. endif
  273. endif
  274. ifeq ($(CONFIG_L2_PACKET), winpcap)
  275. LIBS += -lwpcap -lpacket
  276. LIBS_w += -lwpcap
  277. endif
  278. ifeq ($(CONFIG_L2_PACKET), freebsd)
  279. LIBS += -lpcap
  280. endif
  281. ifdef CONFIG_EAP_TLS
  282. # EAP-TLS
  283. ifeq ($(CONFIG_EAP_TLS), dyn)
  284. L_CFLAGS += -DEAP_TLS_DYNAMIC
  285. EAPDYN += src/eap_peer/eap_tls.so
  286. else
  287. L_CFLAGS += -DEAP_TLS
  288. OBJS += src/eap_peer/eap_tls.c
  289. OBJS_h += src/eap_server/eap_server_tls.c
  290. endif
  291. TLS_FUNCS=y
  292. CONFIG_IEEE8021X_EAPOL=y
  293. endif
  294. ifdef CONFIG_EAP_UNAUTH_TLS
  295. # EAP-UNAUTH-TLS
  296. L_CFLAGS += -DEAP_UNAUTH_TLS
  297. ifndef CONFIG_EAP_UNAUTH_TLS
  298. OBJS += src/eap_peer/eap_tls.c
  299. OBJS_h += src/eap_server/eap_server_tls.c
  300. TLS_FUNCS=y
  301. endif
  302. CONFIG_IEEE8021X_EAPOL=y
  303. endif
  304. ifdef CONFIG_EAP_PEAP
  305. # EAP-PEAP
  306. ifeq ($(CONFIG_EAP_PEAP), dyn)
  307. L_CFLAGS += -DEAP_PEAP_DYNAMIC
  308. EAPDYN += src/eap_peer/eap_peap.so
  309. else
  310. L_CFLAGS += -DEAP_PEAP
  311. OBJS += src/eap_peer/eap_peap.c
  312. OBJS += src/eap_common/eap_peap_common.c
  313. OBJS_h += src/eap_server/eap_server_peap.c
  314. endif
  315. TLS_FUNCS=y
  316. CONFIG_IEEE8021X_EAPOL=y
  317. endif
  318. ifdef CONFIG_EAP_TTLS
  319. # EAP-TTLS
  320. ifeq ($(CONFIG_EAP_TTLS), dyn)
  321. L_CFLAGS += -DEAP_TTLS_DYNAMIC
  322. EAPDYN += src/eap_peer/eap_ttls.so
  323. else
  324. L_CFLAGS += -DEAP_TTLS
  325. OBJS += src/eap_peer/eap_ttls.c
  326. OBJS_h += src/eap_server/eap_server_ttls.c
  327. endif
  328. MS_FUNCS=y
  329. TLS_FUNCS=y
  330. CHAP=y
  331. CONFIG_IEEE8021X_EAPOL=y
  332. endif
  333. ifdef CONFIG_EAP_MD5
  334. # EAP-MD5
  335. ifeq ($(CONFIG_EAP_MD5), dyn)
  336. L_CFLAGS += -DEAP_MD5_DYNAMIC
  337. EAPDYN += src/eap_peer/eap_md5.so
  338. else
  339. L_CFLAGS += -DEAP_MD5
  340. OBJS += src/eap_peer/eap_md5.c
  341. OBJS_h += src/eap_server/eap_server_md5.c
  342. endif
  343. CHAP=y
  344. CONFIG_IEEE8021X_EAPOL=y
  345. endif
  346. # backwards compatibility for old spelling
  347. ifdef CONFIG_MSCHAPV2
  348. ifndef CONFIG_EAP_MSCHAPV2
  349. CONFIG_EAP_MSCHAPV2=y
  350. endif
  351. endif
  352. ifdef CONFIG_EAP_MSCHAPV2
  353. # EAP-MSCHAPv2
  354. ifeq ($(CONFIG_EAP_MSCHAPV2), dyn)
  355. L_CFLAGS += -DEAP_MSCHAPv2_DYNAMIC
  356. EAPDYN += src/eap_peer/eap_mschapv2.so
  357. EAPDYN += src/eap_peer/mschapv2.so
  358. else
  359. L_CFLAGS += -DEAP_MSCHAPv2
  360. OBJS += src/eap_peer/eap_mschapv2.c
  361. OBJS += src/eap_peer/mschapv2.c
  362. OBJS_h += src/eap_server/eap_server_mschapv2.c
  363. endif
  364. MS_FUNCS=y
  365. CONFIG_IEEE8021X_EAPOL=y
  366. endif
  367. ifdef CONFIG_EAP_GTC
  368. # EAP-GTC
  369. ifeq ($(CONFIG_EAP_GTC), dyn)
  370. L_CFLAGS += -DEAP_GTC_DYNAMIC
  371. EAPDYN += src/eap_peer/eap_gtc.so
  372. else
  373. L_CFLAGS += -DEAP_GTC
  374. OBJS += src/eap_peer/eap_gtc.c
  375. OBJS_h += src/eap_server/eap_server_gtc.c
  376. endif
  377. CONFIG_IEEE8021X_EAPOL=y
  378. endif
  379. ifdef CONFIG_EAP_OTP
  380. # EAP-OTP
  381. ifeq ($(CONFIG_EAP_OTP), dyn)
  382. L_CFLAGS += -DEAP_OTP_DYNAMIC
  383. EAPDYN += src/eap_peer/eap_otp.so
  384. else
  385. L_CFLAGS += -DEAP_OTP
  386. OBJS += src/eap_peer/eap_otp.c
  387. endif
  388. CONFIG_IEEE8021X_EAPOL=y
  389. endif
  390. ifdef CONFIG_EAP_SIM
  391. # EAP-SIM
  392. ifeq ($(CONFIG_EAP_SIM), dyn)
  393. L_CFLAGS += -DEAP_SIM_DYNAMIC
  394. EAPDYN += src/eap_peer/eap_sim.so
  395. else
  396. L_CFLAGS += -DEAP_SIM
  397. OBJS += src/eap_peer/eap_sim.c
  398. OBJS_h += src/eap_server/eap_server_sim.c
  399. endif
  400. CONFIG_IEEE8021X_EAPOL=y
  401. CONFIG_EAP_SIM_COMMON=y
  402. NEED_AES_CBC=y
  403. endif
  404. ifdef CONFIG_EAP_LEAP
  405. # EAP-LEAP
  406. ifeq ($(CONFIG_EAP_LEAP), dyn)
  407. L_CFLAGS += -DEAP_LEAP_DYNAMIC
  408. EAPDYN += src/eap_peer/eap_leap.so
  409. else
  410. L_CFLAGS += -DEAP_LEAP
  411. OBJS += src/eap_peer/eap_leap.c
  412. endif
  413. MS_FUNCS=y
  414. CONFIG_IEEE8021X_EAPOL=y
  415. endif
  416. ifdef CONFIG_EAP_PSK
  417. # EAP-PSK
  418. ifeq ($(CONFIG_EAP_PSK), dyn)
  419. L_CFLAGS += -DEAP_PSK_DYNAMIC
  420. EAPDYN += src/eap_peer/eap_psk.so
  421. else
  422. L_CFLAGS += -DEAP_PSK
  423. OBJS += src/eap_peer/eap_psk.c src/eap_common/eap_psk_common.c
  424. OBJS_h += src/eap_server/eap_server_psk.c
  425. endif
  426. CONFIG_IEEE8021X_EAPOL=y
  427. NEED_AES=y
  428. NEED_AES_OMAC1=y
  429. NEED_AES_ENCBLOCK=y
  430. NEED_AES_EAX=y
  431. endif
  432. ifdef CONFIG_EAP_AKA
  433. # EAP-AKA
  434. ifeq ($(CONFIG_EAP_AKA), dyn)
  435. L_CFLAGS += -DEAP_AKA_DYNAMIC
  436. EAPDYN += src/eap_peer/eap_aka.so
  437. else
  438. L_CFLAGS += -DEAP_AKA
  439. OBJS += src/eap_peer/eap_aka.c
  440. OBJS_h += src/eap_server/eap_server_aka.c
  441. endif
  442. CONFIG_IEEE8021X_EAPOL=y
  443. CONFIG_EAP_SIM_COMMON=y
  444. NEED_AES_CBC=y
  445. endif
  446. ifdef CONFIG_EAP_PROXY
  447. L_CFLAGS += -DCONFIG_EAP_PROXY
  448. OBJS += src/eap_peer/eap_proxy_$(CONFIG_EAP_PROXY).c
  449. include $(LOCAL_PATH)/eap_proxy_$(CONFIG_EAP_PROXY).mk
  450. CONFIG_IEEE8021X_EAPOL=y
  451. endif
  452. ifdef CONFIG_EAP_AKA_PRIME
  453. # EAP-AKA'
  454. ifeq ($(CONFIG_EAP_AKA_PRIME), dyn)
  455. L_CFLAGS += -DEAP_AKA_PRIME_DYNAMIC
  456. else
  457. L_CFLAGS += -DEAP_AKA_PRIME
  458. endif
  459. NEED_SHA256=y
  460. endif
  461. ifdef CONFIG_EAP_SIM_COMMON
  462. OBJS += src/eap_common/eap_sim_common.c
  463. OBJS_h += src/eap_server/eap_sim_db.c
  464. NEED_AES=y
  465. NEED_FIPS186_2_PRF=y
  466. endif
  467. ifdef CONFIG_EAP_FAST
  468. # EAP-FAST
  469. ifeq ($(CONFIG_EAP_FAST), dyn)
  470. L_CFLAGS += -DEAP_FAST_DYNAMIC
  471. EAPDYN += src/eap_peer/eap_fast.so
  472. EAPDYN += src/eap_common/eap_fast_common.c
  473. else
  474. L_CFLAGS += -DEAP_FAST
  475. OBJS += src/eap_peer/eap_fast.c src/eap_peer/eap_fast_pac.c
  476. OBJS += src/eap_common/eap_fast_common.c
  477. OBJS_h += src/eap_server/eap_server_fast.c
  478. endif
  479. TLS_FUNCS=y
  480. CONFIG_IEEE8021X_EAPOL=y
  481. NEED_T_PRF=y
  482. endif
  483. ifdef CONFIG_EAP_PAX
  484. # EAP-PAX
  485. ifeq ($(CONFIG_EAP_PAX), dyn)
  486. L_CFLAGS += -DEAP_PAX_DYNAMIC
  487. EAPDYN += src/eap_peer/eap_pax.so
  488. else
  489. L_CFLAGS += -DEAP_PAX
  490. OBJS += src/eap_peer/eap_pax.c src/eap_common/eap_pax_common.c
  491. OBJS_h += src/eap_server/eap_server_pax.c
  492. endif
  493. CONFIG_IEEE8021X_EAPOL=y
  494. endif
  495. ifdef CONFIG_EAP_SAKE
  496. # EAP-SAKE
  497. ifeq ($(CONFIG_EAP_SAKE), dyn)
  498. L_CFLAGS += -DEAP_SAKE_DYNAMIC
  499. EAPDYN += src/eap_peer/eap_sake.so
  500. else
  501. L_CFLAGS += -DEAP_SAKE
  502. OBJS += src/eap_peer/eap_sake.c src/eap_common/eap_sake_common.c
  503. OBJS_h += src/eap_server/eap_server_sake.c
  504. endif
  505. CONFIG_IEEE8021X_EAPOL=y
  506. endif
  507. ifdef CONFIG_EAP_GPSK
  508. # EAP-GPSK
  509. ifeq ($(CONFIG_EAP_GPSK), dyn)
  510. L_CFLAGS += -DEAP_GPSK_DYNAMIC
  511. EAPDYN += src/eap_peer/eap_gpsk.so
  512. else
  513. L_CFLAGS += -DEAP_GPSK
  514. OBJS += src/eap_peer/eap_gpsk.c src/eap_common/eap_gpsk_common.c
  515. OBJS_h += src/eap_server/eap_server_gpsk.c
  516. endif
  517. CONFIG_IEEE8021X_EAPOL=y
  518. ifdef CONFIG_EAP_GPSK_SHA256
  519. L_CFLAGS += -DEAP_GPSK_SHA256
  520. endif
  521. NEED_SHA256=y
  522. NEED_AES_OMAC1=y
  523. endif
  524. ifdef CONFIG_EAP_PWD
  525. L_CFLAGS += -DEAP_PWD
  526. OBJS += src/eap_peer/eap_pwd.c src/eap_common/eap_pwd_common.c
  527. OBJS_h += src/eap_server/eap_server_pwd.c
  528. CONFIG_IEEE8021X_EAPOL=y
  529. NEED_SHA256=y
  530. endif
  531. ifdef CONFIG_EAP_EKE
  532. # EAP-EKE
  533. ifeq ($(CONFIG_EAP_EKE), dyn)
  534. L_CFLAGS += -DEAP_EKE_DYNAMIC
  535. EAPDYN += src/eap_peer/eap_eke.so
  536. else
  537. L_CFLAGS += -DEAP_EKE
  538. OBJS += src/eap_peer/eap_eke.c src/eap_common/eap_eke_common.c
  539. OBJS_h += src/eap_server/eap_server_eke.c
  540. endif
  541. CONFIG_IEEE8021X_EAPOL=y
  542. NEED_DH_GROUPS=y
  543. NEED_DH_GROUPS_ALL=y
  544. NEED_SHA256=y
  545. endif
  546. ifdef CONFIG_WPS
  547. # EAP-WSC
  548. L_CFLAGS += -DCONFIG_WPS -DEAP_WSC
  549. OBJS += wps_supplicant.c
  550. OBJS += src/utils/uuid.c
  551. OBJS += src/eap_peer/eap_wsc.c src/eap_common/eap_wsc_common.c
  552. OBJS += src/wps/wps.c
  553. OBJS += src/wps/wps_common.c
  554. OBJS += src/wps/wps_attr_parse.c
  555. OBJS += src/wps/wps_attr_build.c
  556. OBJS += src/wps/wps_attr_process.c
  557. OBJS += src/wps/wps_dev_attr.c
  558. OBJS += src/wps/wps_enrollee.c
  559. OBJS += src/wps/wps_registrar.c
  560. OBJS_h += src/eap_server/eap_server_wsc.c
  561. CONFIG_IEEE8021X_EAPOL=y
  562. NEED_DH_GROUPS=y
  563. NEED_SHA256=y
  564. NEED_BASE64=y
  565. NEED_AES_CBC=y
  566. NEED_MODEXP=y
  567. ifdef CONFIG_WPS_NFC
  568. L_CFLAGS += -DCONFIG_WPS_NFC
  569. OBJS += src/wps/ndef.c
  570. NEED_WPS_OOB=y
  571. endif
  572. ifdef NEED_WPS_OOB
  573. L_CFLAGS += -DCONFIG_WPS_OOB
  574. endif
  575. ifdef CONFIG_WPS_ER
  576. CONFIG_WPS_UPNP=y
  577. L_CFLAGS += -DCONFIG_WPS_ER
  578. OBJS += src/wps/wps_er.c
  579. OBJS += src/wps/wps_er_ssdp.c
  580. endif
  581. ifdef CONFIG_WPS_UPNP
  582. L_CFLAGS += -DCONFIG_WPS_UPNP
  583. OBJS += src/wps/wps_upnp.c
  584. OBJS += src/wps/wps_upnp_ssdp.c
  585. OBJS += src/wps/wps_upnp_web.c
  586. OBJS += src/wps/wps_upnp_event.c
  587. OBJS += src/wps/wps_upnp_ap.c
  588. OBJS += src/wps/upnp_xml.c
  589. OBJS += src/wps/httpread.c
  590. OBJS += src/wps/http_client.c
  591. OBJS += src/wps/http_server.c
  592. endif
  593. ifdef CONFIG_WPS_STRICT
  594. L_CFLAGS += -DCONFIG_WPS_STRICT
  595. OBJS += src/wps/wps_validate.c
  596. endif
  597. ifdef CONFIG_WPS_TESTING
  598. L_CFLAGS += -DCONFIG_WPS_TESTING
  599. endif
  600. ifdef CONFIG_WPS_REG_DISABLE_OPEN
  601. L_CFLAGS += -DCONFIG_WPS_REG_DISABLE_OPEN
  602. endif
  603. endif
  604. ifdef CONFIG_EAP_IKEV2
  605. # EAP-IKEv2
  606. ifeq ($(CONFIG_EAP_IKEV2), dyn)
  607. L_CFLAGS += -DEAP_IKEV2_DYNAMIC
  608. EAPDYN += src/eap_peer/eap_ikev2.so src/eap_peer/ikev2.c
  609. EAPDYN += src/eap_common/eap_ikev2_common.c src/eap_common/ikev2_common.c
  610. else
  611. L_CFLAGS += -DEAP_IKEV2
  612. OBJS += src/eap_peer/eap_ikev2.c src/eap_peer/ikev2.c
  613. OBJS += src/eap_common/eap_ikev2_common.c src/eap_common/ikev2_common.c
  614. OBJS_h += src/eap_server/eap_server_ikev2.c
  615. OBJS_h += src/eap_server/ikev2.c
  616. endif
  617. CONFIG_IEEE8021X_EAPOL=y
  618. NEED_DH_GROUPS=y
  619. NEED_DH_GROUPS_ALL=y
  620. NEED_MODEXP=y
  621. NEED_CIPHER=y
  622. endif
  623. ifdef CONFIG_EAP_VENDOR_TEST
  624. ifeq ($(CONFIG_EAP_VENDOR_TEST), dyn)
  625. L_CFLAGS += -DEAP_VENDOR_TEST_DYNAMIC
  626. EAPDYN += src/eap_peer/eap_vendor_test.so
  627. else
  628. L_CFLAGS += -DEAP_VENDOR_TEST
  629. OBJS += src/eap_peer/eap_vendor_test.c
  630. OBJS_h += src/eap_server/eap_server_vendor_test.c
  631. endif
  632. CONFIG_IEEE8021X_EAPOL=y
  633. endif
  634. ifdef CONFIG_EAP_TNC
  635. # EAP-TNC
  636. L_CFLAGS += -DEAP_TNC
  637. OBJS += src/eap_peer/eap_tnc.c
  638. OBJS += src/eap_peer/tncc.c
  639. OBJS_h += src/eap_server/eap_server_tnc.c
  640. OBJS_h += src/eap_server/tncs.c
  641. NEED_BASE64=y
  642. ifndef CONFIG_NATIVE_WINDOWS
  643. ifndef CONFIG_DRIVER_BSD
  644. LIBS += -ldl
  645. endif
  646. endif
  647. endif
  648. ifdef CONFIG_IEEE8021X_EAPOL
  649. # IEEE 802.1X/EAPOL state machines (e.g., for RADIUS authentication)
  650. L_CFLAGS += -DIEEE8021X_EAPOL
  651. OBJS += src/eapol_supp/eapol_supp_sm.c
  652. OBJS += src/eap_peer/eap.c src/eap_peer/eap_methods.c
  653. NEED_EAP_COMMON=y
  654. ifdef CONFIG_DYNAMIC_EAP_METHODS
  655. L_CFLAGS += -DCONFIG_DYNAMIC_EAP_METHODS
  656. LIBS += -ldl -rdynamic
  657. endif
  658. endif
  659. ifdef CONFIG_AP
  660. NEED_EAP_COMMON=y
  661. NEED_RSN_AUTHENTICATOR=y
  662. L_CFLAGS += -DCONFIG_AP
  663. OBJS += ap.c
  664. L_CFLAGS += -DCONFIG_NO_RADIUS
  665. L_CFLAGS += -DCONFIG_NO_ACCOUNTING
  666. L_CFLAGS += -DCONFIG_NO_VLAN
  667. OBJS += src/ap/hostapd.c
  668. OBJS += src/ap/wpa_auth_glue.c
  669. OBJS += src/ap/utils.c
  670. OBJS += src/ap/authsrv.c
  671. OBJS += src/ap/ap_config.c
  672. OBJS += src/utils/ip_addr.c
  673. OBJS += src/ap/sta_info.c
  674. OBJS += src/ap/tkip_countermeasures.c
  675. OBJS += src/ap/ap_mlme.c
  676. OBJS += src/ap/ieee802_1x.c
  677. OBJS += src/eapol_auth/eapol_auth_sm.c
  678. OBJS += src/ap/ieee802_11_auth.c
  679. OBJS += src/ap/ieee802_11_shared.c
  680. OBJS += src/ap/drv_callbacks.c
  681. OBJS += src/ap/ap_drv_ops.c
  682. OBJS += src/ap/beacon.c
  683. OBJS += src/ap/bss_load.c
  684. OBJS += src/ap/eap_user_db.c
  685. ifdef CONFIG_IEEE80211N
  686. OBJS += src/ap/ieee802_11_ht.c
  687. ifdef CONFIG_IEEE80211AC
  688. OBJS += src/ap/ieee802_11_vht.c
  689. endif
  690. endif
  691. ifdef CONFIG_WNM
  692. OBJS += src/ap/wnm_ap.c
  693. endif
  694. ifdef CONFIG_CTRL_IFACE
  695. OBJS += src/ap/ctrl_iface_ap.c
  696. endif
  697. L_CFLAGS += -DEAP_SERVER -DEAP_SERVER_IDENTITY
  698. OBJS += src/eap_server/eap_server.c
  699. OBJS += src/eap_server/eap_server_identity.c
  700. OBJS += src/eap_server/eap_server_methods.c
  701. ifdef CONFIG_IEEE80211N
  702. L_CFLAGS += -DCONFIG_IEEE80211N
  703. ifdef CONFIG_IEEE80211AC
  704. L_CFLAGS += -DCONFIG_IEEE80211AC
  705. endif
  706. endif
  707. ifdef NEED_AP_MLME
  708. OBJS += src/ap/wmm.c
  709. OBJS += src/ap/ap_list.c
  710. OBJS += src/ap/ieee802_11.c
  711. OBJS += src/ap/hw_features.c
  712. OBJS += src/ap/dfs.c
  713. L_CFLAGS += -DNEED_AP_MLME
  714. endif
  715. ifdef CONFIG_WPS
  716. L_CFLAGS += -DEAP_SERVER_WSC
  717. OBJS += src/ap/wps_hostapd.c
  718. OBJS += src/eap_server/eap_server_wsc.c
  719. endif
  720. ifdef CONFIG_INTERWORKING
  721. OBJS += src/ap/gas_serv.c
  722. endif
  723. ifdef CONFIG_HS20
  724. OBJS += src/ap/hs20.c
  725. endif
  726. endif
  727. ifdef NEED_RSN_AUTHENTICATOR
  728. L_CFLAGS += -DCONFIG_NO_RADIUS
  729. NEED_AES_WRAP=y
  730. OBJS += src/ap/wpa_auth.c
  731. OBJS += src/ap/wpa_auth_ie.c
  732. OBJS += src/ap/pmksa_cache_auth.c
  733. ifdef CONFIG_IEEE80211R
  734. OBJS += src/ap/wpa_auth_ft.c
  735. endif
  736. ifdef CONFIG_PEERKEY
  737. OBJS += src/ap/peerkey_auth.c
  738. endif
  739. endif
  740. ifdef CONFIG_EAP_SERVER
  741. L_CFLAGS += -DEAP_SERVER
  742. OBJS_h += src/eap_server/eap_server.c
  743. OBJS_h += src/eap_server/eap_server_identity.c
  744. OBJS_h += src/eap_server/eap_server_methods.c
  745. endif
  746. ifdef CONFIG_RADIUS_CLIENT
  747. OBJS_h += src/utils/ip_addr.c
  748. OBJS_h += src/radius/radius.c
  749. OBJS_h += src/radius/radius_client.c
  750. endif
  751. ifdef CONFIG_AUTHENTICATOR
  752. OBJS_h += src/eapol_auth/eapol_auth_sm.c
  753. OBJS_h += src/ap/ieee802_1x.c
  754. endif
  755. ifdef CONFIG_WPA_AUTHENTICATOR
  756. OBJS_h += src/ap/wpa_auth.c
  757. OBJS_h += src/ap/wpa_auth_ie.c
  758. OBJS_h += src/ap/pmksa_cache_auth.c
  759. ifdef CONFIG_IEEE80211R
  760. OBJS_h += src/ap/wpa_auth_ft.c
  761. endif
  762. ifdef CONFIG_PEERKEY
  763. OBJS_h += src/ap/peerkey_auth.c
  764. endif
  765. endif
  766. ifdef CONFIG_PCSC
  767. # PC/SC interface for smartcards (USIM, GSM SIM)
  768. L_CFLAGS += -DPCSC_FUNCS -I/usr/include/PCSC
  769. OBJS += src/utils/pcsc_funcs.c
  770. # -lpthread may not be needed depending on how pcsc-lite was configured
  771. ifdef CONFIG_NATIVE_WINDOWS
  772. #Once MinGW gets support for WinScard, -lwinscard could be used instead of the
  773. #dynamic symbol loading that is now used in pcsc_funcs.c
  774. #LIBS += -lwinscard
  775. else
  776. LIBS += -lpcsclite -lpthread
  777. endif
  778. endif
  779. ifdef CONFIG_SIM_SIMULATOR
  780. L_CFLAGS += -DCONFIG_SIM_SIMULATOR
  781. NEED_MILENAGE=y
  782. endif
  783. ifdef CONFIG_USIM_SIMULATOR
  784. L_CFLAGS += -DCONFIG_USIM_SIMULATOR
  785. NEED_MILENAGE=y
  786. endif
  787. ifdef NEED_MILENAGE
  788. OBJS += src/crypto/milenage.c
  789. NEED_AES_ENCBLOCK=y
  790. endif
  791. ifdef CONFIG_PKCS12
  792. L_CFLAGS += -DPKCS12_FUNCS
  793. endif
  794. ifdef CONFIG_SMARTCARD
  795. L_CFLAGS += -DCONFIG_SMARTCARD
  796. endif
  797. ifdef MS_FUNCS
  798. OBJS += src/crypto/ms_funcs.c
  799. NEED_DES=y
  800. NEED_MD4=y
  801. endif
  802. ifdef CHAP
  803. OBJS += src/eap_common/chap.c
  804. endif
  805. ifdef TLS_FUNCS
  806. NEED_DES=y
  807. # Shared TLS functions (needed for EAP_TLS, EAP_PEAP, EAP_TTLS, and EAP_FAST)
  808. OBJS += src/eap_peer/eap_tls_common.c
  809. OBJS_h += src/eap_server/eap_server_tls_common.c
  810. ifndef CONFIG_FIPS
  811. NEED_TLS_PRF=y
  812. NEED_SHA1=y
  813. NEED_MD5=y
  814. endif
  815. endif
  816. ifndef CONFIG_TLS
  817. CONFIG_TLS=openssl
  818. endif
  819. ifdef CONFIG_TLSV11
  820. L_CFLAGS += -DCONFIG_TLSV11
  821. endif
  822. ifdef CONFIG_TLSV12
  823. L_CFLAGS += -DCONFIG_TLSV12
  824. NEED_SHA256=y
  825. endif
  826. ifeq ($(CONFIG_TLS), openssl)
  827. ifdef TLS_FUNCS
  828. L_CFLAGS += -DEAP_TLS_OPENSSL
  829. OBJS += src/crypto/tls_openssl.c
  830. LIBS += -lssl
  831. endif
  832. OBJS += src/crypto/crypto_openssl.c
  833. OBJS_p += src/crypto/crypto_openssl.c
  834. ifdef NEED_FIPS186_2_PRF
  835. OBJS += src/crypto/fips_prf_openssl.c
  836. endif
  837. LIBS += -lcrypto
  838. LIBS_p += -lcrypto
  839. ifdef CONFIG_TLS_ADD_DL
  840. LIBS += -ldl
  841. LIBS_p += -ldl
  842. endif
  843. endif
  844. ifeq ($(CONFIG_TLS), gnutls)
  845. ifdef TLS_FUNCS
  846. OBJS += src/crypto/tls_gnutls.c
  847. LIBS += -lgnutls -lgpg-error
  848. endif
  849. OBJS += src/crypto/crypto_gnutls.c
  850. OBJS_p += src/crypto/crypto_gnutls.c
  851. ifdef NEED_FIPS186_2_PRF
  852. OBJS += src/crypto/fips_prf_internal.c
  853. OBJS += src/crypto/sha1-internal.c
  854. endif
  855. LIBS += -lgcrypt
  856. LIBS_p += -lgcrypt
  857. CONFIG_INTERNAL_SHA256=y
  858. CONFIG_INTERNAL_RC4=y
  859. CONFIG_INTERNAL_DH_GROUP5=y
  860. endif
  861. ifeq ($(CONFIG_TLS), schannel)
  862. ifdef TLS_FUNCS
  863. OBJS += src/crypto/tls_schannel.c
  864. endif
  865. OBJS += src/crypto/crypto_cryptoapi.c
  866. OBJS_p += src/crypto/crypto_cryptoapi.c
  867. ifdef NEED_FIPS186_2_PRF
  868. OBJS += src/crypto/fips_prf_internal.c
  869. OBJS += src/crypto/sha1-internal.c
  870. endif
  871. CONFIG_INTERNAL_SHA256=y
  872. CONFIG_INTERNAL_RC4=y
  873. CONFIG_INTERNAL_DH_GROUP5=y
  874. endif
  875. ifeq ($(CONFIG_TLS), nss)
  876. ifdef TLS_FUNCS
  877. OBJS += src/crypto/tls_nss.c
  878. LIBS += -lssl3
  879. endif
  880. OBJS += src/crypto/crypto_nss.c
  881. OBJS_p += src/crypto/crypto_nss.c
  882. ifdef NEED_FIPS186_2_PRF
  883. OBJS += src/crypto/fips_prf_internal.c
  884. OBJS += src/crypto/sha1-internal.c
  885. endif
  886. LIBS += -lnss3
  887. LIBS_p += -lnss3
  888. CONFIG_INTERNAL_MD4=y
  889. CONFIG_INTERNAL_DH_GROUP5=y
  890. endif
  891. ifeq ($(CONFIG_TLS), internal)
  892. ifndef CONFIG_CRYPTO
  893. CONFIG_CRYPTO=internal
  894. endif
  895. ifdef TLS_FUNCS
  896. OBJS += src/crypto/crypto_internal-rsa.c
  897. OBJS += src/crypto/tls_internal.c
  898. OBJS += src/tls/tlsv1_common.c
  899. OBJS += src/tls/tlsv1_record.c
  900. OBJS += src/tls/tlsv1_cred.c
  901. OBJS += src/tls/tlsv1_client.c
  902. OBJS += src/tls/tlsv1_client_write.c
  903. OBJS += src/tls/tlsv1_client_read.c
  904. OBJS += src/tls/asn1.c
  905. OBJS += src/tls/rsa.c
  906. OBJS += src/tls/x509v3.c
  907. OBJS += src/tls/pkcs1.c
  908. OBJS += src/tls/pkcs5.c
  909. OBJS += src/tls/pkcs8.c
  910. NEED_SHA256=y
  911. NEED_BASE64=y
  912. NEED_TLS_PRF=y
  913. ifdef CONFIG_TLSV12
  914. NEED_TLS_PRF_SHA256=y
  915. endif
  916. NEED_MODEXP=y
  917. NEED_CIPHER=y
  918. L_CFLAGS += -DCONFIG_TLS_INTERNAL_CLIENT
  919. endif
  920. ifdef NEED_CIPHER
  921. NEED_DES=y
  922. OBJS += src/crypto/crypto_internal-cipher.c
  923. endif
  924. ifdef NEED_MODEXP
  925. OBJS += src/crypto/crypto_internal-modexp.c
  926. OBJS += src/tls/bignum.c
  927. endif
  928. ifeq ($(CONFIG_CRYPTO), libtomcrypt)
  929. OBJS += src/crypto/crypto_libtomcrypt.c
  930. OBJS_p += src/crypto/crypto_libtomcrypt.c
  931. LIBS += -ltomcrypt -ltfm
  932. LIBS_p += -ltomcrypt -ltfm
  933. CONFIG_INTERNAL_SHA256=y
  934. CONFIG_INTERNAL_RC4=y
  935. CONFIG_INTERNAL_DH_GROUP5=y
  936. endif
  937. ifeq ($(CONFIG_CRYPTO), internal)
  938. OBJS += src/crypto/crypto_internal.c
  939. OBJS_p += src/crypto/crypto_internal.c
  940. NEED_AES_ENC=y
  941. L_CFLAGS += -DCONFIG_CRYPTO_INTERNAL
  942. ifdef CONFIG_INTERNAL_LIBTOMMATH
  943. L_CFLAGS += -DCONFIG_INTERNAL_LIBTOMMATH
  944. ifdef CONFIG_INTERNAL_LIBTOMMATH_FAST
  945. L_CFLAGS += -DLTM_FAST
  946. endif
  947. else
  948. LIBS += -ltommath
  949. LIBS_p += -ltommath
  950. endif
  951. CONFIG_INTERNAL_AES=y
  952. CONFIG_INTERNAL_DES=y
  953. CONFIG_INTERNAL_SHA1=y
  954. CONFIG_INTERNAL_MD4=y
  955. CONFIG_INTERNAL_MD5=y
  956. CONFIG_INTERNAL_SHA256=y
  957. CONFIG_INTERNAL_RC4=y
  958. CONFIG_INTERNAL_DH_GROUP5=y
  959. endif
  960. ifeq ($(CONFIG_CRYPTO), cryptoapi)
  961. OBJS += src/crypto/crypto_cryptoapi.c
  962. OBJS_p += src/crypto/crypto_cryptoapi.c
  963. L_CFLAGS += -DCONFIG_CRYPTO_CRYPTOAPI
  964. CONFIG_INTERNAL_SHA256=y
  965. CONFIG_INTERNAL_RC4=y
  966. endif
  967. endif
  968. ifeq ($(CONFIG_TLS), none)
  969. ifdef TLS_FUNCS
  970. OBJS += src/crypto/tls_none.c
  971. L_CFLAGS += -DEAP_TLS_NONE
  972. CONFIG_INTERNAL_AES=y
  973. CONFIG_INTERNAL_SHA1=y
  974. CONFIG_INTERNAL_MD5=y
  975. endif
  976. OBJS += src/crypto/crypto_none.c
  977. OBJS_p += src/crypto/crypto_none.c
  978. CONFIG_INTERNAL_SHA256=y
  979. CONFIG_INTERNAL_RC4=y
  980. endif
  981. ifdef TLS_FUNCS
  982. ifdef CONFIG_SMARTCARD
  983. ifndef CONFIG_NATIVE_WINDOWS
  984. ifneq ($(CONFIG_L2_PACKET), freebsd)
  985. LIBS += -ldl
  986. endif
  987. endif
  988. endif
  989. endif
  990. ifndef TLS_FUNCS
  991. OBJS += src/crypto/tls_none.c
  992. ifeq ($(CONFIG_TLS), internal)
  993. CONFIG_INTERNAL_AES=y
  994. CONFIG_INTERNAL_SHA1=y
  995. CONFIG_INTERNAL_MD5=y
  996. CONFIG_INTERNAL_RC4=y
  997. endif
  998. endif
  999. AESOBJS = # none so far (see below)
  1000. ifdef CONFIG_INTERNAL_AES
  1001. AESOBJS += src/crypto/aes-internal.c src/crypto/aes-internal-dec.c
  1002. endif
  1003. AESOBJS += src/crypto/aes-unwrap.c
  1004. ifdef NEED_AES_EAX
  1005. AESOBJS += src/crypto/aes-eax.c
  1006. NEED_AES_CTR=y
  1007. endif
  1008. ifdef NEED_AES_CTR
  1009. AESOBJS += src/crypto/aes-ctr.c
  1010. endif
  1011. ifdef NEED_AES_ENCBLOCK
  1012. AESOBJS += src/crypto/aes-encblock.c
  1013. endif
  1014. ifdef NEED_AES_OMAC1
  1015. NEED_AES_ENC=y
  1016. ifdef CONFIG_OPENSSL_CMAC
  1017. L_CFLAGS += -DCONFIG_OPENSSL_CMAC
  1018. else
  1019. AESOBJS += src/crypto/aes-omac1.c
  1020. endif
  1021. endif
  1022. ifdef NEED_AES_WRAP
  1023. NEED_AES_ENC=y
  1024. AESOBJS += src/crypto/aes-wrap.c
  1025. endif
  1026. ifdef NEED_AES_CBC
  1027. NEED_AES_ENC=y
  1028. AESOBJS += src/crypto/aes-cbc.c
  1029. endif
  1030. ifdef NEED_AES_ENC
  1031. ifdef CONFIG_INTERNAL_AES
  1032. AESOBJS += src/crypto/aes-internal-enc.c
  1033. endif
  1034. endif
  1035. ifdef NEED_AES_SIV
  1036. AESOBJS += src/crypto/aes-siv.c
  1037. endif
  1038. ifdef NEED_AES
  1039. OBJS += $(AESOBJS)
  1040. endif
  1041. SHA1OBJS =
  1042. ifdef NEED_SHA1
  1043. ifneq ($(CONFIG_TLS), openssl)
  1044. SHA1OBJS += src/crypto/sha1.c
  1045. endif
  1046. SHA1OBJS += src/crypto/sha1-prf.c
  1047. ifdef CONFIG_INTERNAL_SHA1
  1048. SHA1OBJS += src/crypto/sha1-internal.c
  1049. ifdef NEED_FIPS186_2_PRF
  1050. SHA1OBJS += src/crypto/fips_prf_internal.c
  1051. endif
  1052. endif
  1053. ifdef CONFIG_NO_WPA_PASSPHRASE
  1054. L_CFLAGS += -DCONFIG_NO_PBKDF2
  1055. else
  1056. ifneq ($(CONFIG_TLS), openssl)
  1057. SHA1OBJS += src/crypto/sha1-pbkdf2.c
  1058. endif
  1059. endif
  1060. ifdef NEED_T_PRF
  1061. SHA1OBJS += src/crypto/sha1-tprf.c
  1062. endif
  1063. ifdef NEED_TLS_PRF
  1064. SHA1OBJS += src/crypto/sha1-tlsprf.c
  1065. endif
  1066. endif
  1067. MD5OBJS =
  1068. ifndef CONFIG_FIPS
  1069. MD5OBJS += src/crypto/md5.c
  1070. endif
  1071. ifdef NEED_MD5
  1072. ifdef CONFIG_INTERNAL_MD5
  1073. MD5OBJS += src/crypto/md5-internal.c
  1074. endif
  1075. OBJS += $(MD5OBJS)
  1076. OBJS_p += $(MD5OBJS)
  1077. endif
  1078. ifdef NEED_MD4
  1079. ifdef CONFIG_INTERNAL_MD4
  1080. OBJS += src/crypto/md4-internal.c
  1081. endif
  1082. endif
  1083. DESOBJS = # none needed when not internal
  1084. ifdef NEED_DES
  1085. ifdef CONFIG_INTERNAL_DES
  1086. DESOBJS += src/crypto/des-internal.c
  1087. endif
  1088. endif
  1089. ifdef NEED_RC4
  1090. ifdef CONFIG_INTERNAL_RC4
  1091. OBJS += src/crypto/rc4.c
  1092. endif
  1093. endif
  1094. SHA256OBJS = # none by default
  1095. ifdef NEED_SHA256
  1096. L_CFLAGS += -DCONFIG_SHA256
  1097. ifneq ($(CONFIG_TLS), openssl)
  1098. SHA256OBJS += src/crypto/sha256.c
  1099. endif
  1100. SHA256OBJS += src/crypto/sha256-prf.c
  1101. ifdef CONFIG_INTERNAL_SHA256
  1102. SHA256OBJS += src/crypto/sha256-internal.c
  1103. endif
  1104. ifdef NEED_TLS_PRF_SHA256
  1105. SHA256OBJS += src/crypto/sha256-tlsprf.c
  1106. endif
  1107. OBJS += $(SHA256OBJS)
  1108. endif
  1109. ifdef NEED_DH_GROUPS
  1110. OBJS += src/crypto/dh_groups.c
  1111. endif
  1112. ifdef NEED_DH_GROUPS_ALL
  1113. L_CFLAGS += -DALL_DH_GROUPS
  1114. endif
  1115. ifdef CONFIG_INTERNAL_DH_GROUP5
  1116. ifdef NEED_DH_GROUPS
  1117. OBJS += src/crypto/dh_group5.c
  1118. endif
  1119. endif
  1120. ifdef NEED_ECC
  1121. L_CFLAGS += -DCONFIG_ECC
  1122. endif
  1123. ifdef CONFIG_NO_RANDOM_POOL
  1124. L_CFLAGS += -DCONFIG_NO_RANDOM_POOL
  1125. else
  1126. OBJS += src/crypto/random.c
  1127. endif
  1128. ifdef CONFIG_CTRL_IFACE
  1129. ifeq ($(CONFIG_CTRL_IFACE), y)
  1130. ifdef CONFIG_NATIVE_WINDOWS
  1131. CONFIG_CTRL_IFACE=named_pipe
  1132. else
  1133. CONFIG_CTRL_IFACE=unix
  1134. endif
  1135. endif
  1136. L_CFLAGS += -DCONFIG_CTRL_IFACE
  1137. ifeq ($(CONFIG_CTRL_IFACE), unix)
  1138. L_CFLAGS += -DCONFIG_CTRL_IFACE_UNIX
  1139. endif
  1140. ifeq ($(CONFIG_CTRL_IFACE), udp)
  1141. L_CFLAGS += -DCONFIG_CTRL_IFACE_UDP
  1142. endif
  1143. ifeq ($(CONFIG_CTRL_IFACE), named_pipe)
  1144. L_CFLAGS += -DCONFIG_CTRL_IFACE_NAMED_PIPE
  1145. endif
  1146. ifeq ($(CONFIG_CTRL_IFACE), udp-remote)
  1147. CONFIG_CTRL_IFACE=udp
  1148. L_CFLAGS += -DCONFIG_CTRL_IFACE_UDP
  1149. L_CFLAGS += -DCONFIG_CTRL_IFACE_UDP_REMOTE
  1150. endif
  1151. OBJS += ctrl_iface.c ctrl_iface_$(CONFIG_CTRL_IFACE).c
  1152. endif
  1153. ifdef CONFIG_CTRL_IFACE_DBUS
  1154. DBUS=y
  1155. DBUS_CFLAGS += -DCONFIG_CTRL_IFACE_DBUS -DDBUS_API_SUBJECT_TO_CHANGE
  1156. DBUS_OBJS += dbus/dbus_old.c dbus/dbus_old_handlers.c
  1157. ifdef CONFIG_WPS
  1158. DBUS_OBJS += dbus/dbus_old_handlers_wps.c
  1159. endif
  1160. DBUS_OBJS += dbus/dbus_dict_helpers.c
  1161. ifndef DBUS_LIBS
  1162. DBUS_LIBS := $(shell $(PKG_CONFIG) --libs dbus-1)
  1163. endif
  1164. ifndef DBUS_INCLUDE
  1165. DBUS_INCLUDE := $(shell $(PKG_CONFIG) --cflags dbus-1)
  1166. endif
  1167. DBUS_CFLAGS += $(DBUS_INCLUDE)
  1168. endif
  1169. ifdef CONFIG_CTRL_IFACE_DBUS_NEW
  1170. DBUS=y
  1171. DBUS_CFLAGS += -DCONFIG_CTRL_IFACE_DBUS_NEW
  1172. DBUS_OBJS ?= dbus/dbus_dict_helpers.c
  1173. DBUS_OBJS += dbus/dbus_new_helpers.c
  1174. DBUS_OBJS += dbus/dbus_new.c dbus/dbus_new_handlers.c
  1175. ifdef CONFIG_WPS
  1176. DBUS_OBJS += dbus/dbus_new_handlers_wps.c
  1177. endif
  1178. ifdef CONFIG_P2P
  1179. DBUS_OBJS += dbus/dbus_new_handlers_p2p.c
  1180. endif
  1181. ifndef DBUS_LIBS
  1182. DBUS_LIBS := $(shell $(PKG_CONFIG) --libs dbus-1)
  1183. endif
  1184. ifndef DBUS_INCLUDE
  1185. DBUS_INCLUDE := $(shell $(PKG_CONFIG) --cflags dbus-1)
  1186. endif
  1187. ifdef CONFIG_CTRL_IFACE_DBUS_INTRO
  1188. DBUS_OBJS += dbus/dbus_new_introspect.c
  1189. DBUS_CFLAGS += -DCONFIG_CTRL_IFACE_DBUS_INTRO
  1190. endif
  1191. DBUS_CFLAGS += $(DBUS_INCLUDE)
  1192. endif
  1193. ifdef DBUS
  1194. DBUS_CFLAGS += -DCONFIG_DBUS
  1195. DBUS_OBJS += dbus/dbus_common.c
  1196. endif
  1197. OBJS += $(DBUS_OBJS)
  1198. L_CFLAGS += $(DBUS_CFLAGS)
  1199. LIBS += $(DBUS_LIBS)
  1200. ifdef CONFIG_READLINE
  1201. OBJS_c += src/utils/edit_readline.c
  1202. LIBS_c += -lncurses -lreadline
  1203. else
  1204. ifdef CONFIG_WPA_CLI_EDIT
  1205. OBJS_c += src/utils/edit.c
  1206. else
  1207. OBJS_c += src/utils/edit_simple.c
  1208. endif
  1209. endif
  1210. ifdef CONFIG_NATIVE_WINDOWS
  1211. L_CFLAGS += -DCONFIG_NATIVE_WINDOWS
  1212. LIBS += -lws2_32 -lgdi32 -lcrypt32
  1213. LIBS_c += -lws2_32
  1214. LIBS_p += -lws2_32 -lgdi32
  1215. ifeq ($(CONFIG_CRYPTO), cryptoapi)
  1216. LIBS_p += -lcrypt32
  1217. endif
  1218. endif
  1219. ifdef CONFIG_NO_STDOUT_DEBUG
  1220. L_CFLAGS += -DCONFIG_NO_STDOUT_DEBUG
  1221. ifndef CONFIG_CTRL_IFACE
  1222. L_CFLAGS += -DCONFIG_NO_WPA_MSG
  1223. endif
  1224. endif
  1225. ifdef CONFIG_ANDROID_LOG
  1226. L_CFLAGS += -DCONFIG_ANDROID_LOG
  1227. endif
  1228. ifdef CONFIG_IPV6
  1229. # for eapol_test only
  1230. L_CFLAGS += -DCONFIG_IPV6
  1231. endif
  1232. ifdef NEED_BASE64
  1233. OBJS += src/utils/base64.c
  1234. endif
  1235. ifdef NEED_SME
  1236. OBJS += sme.c
  1237. L_CFLAGS += -DCONFIG_SME
  1238. endif
  1239. OBJS += src/common/ieee802_11_common.c
  1240. ifdef NEED_EAP_COMMON
  1241. OBJS += src/eap_common/eap_common.c
  1242. endif
  1243. ifndef CONFIG_MAIN
  1244. CONFIG_MAIN=main
  1245. endif
  1246. ifdef CONFIG_DEBUG_SYSLOG
  1247. L_CFLAGS += -DCONFIG_DEBUG_SYSLOG
  1248. ifdef CONFIG_DEBUG_SYSLOG_FACILITY
  1249. L_CFLAGS += -DLOG_HOSTAPD="$(CONFIG_DEBUG_SYSLOG_FACILITY)"
  1250. endif
  1251. endif
  1252. ifdef CONFIG_DEBUG_LINUX_TRACING
  1253. L_CFLAGS += -DCONFIG_DEBUG_LINUX_TRACING
  1254. endif
  1255. ifdef CONFIG_DEBUG_FILE
  1256. L_CFLAGS += -DCONFIG_DEBUG_FILE
  1257. endif
  1258. ifdef CONFIG_DELAYED_MIC_ERROR_REPORT
  1259. L_CFLAGS += -DCONFIG_DELAYED_MIC_ERROR_REPORT
  1260. endif
  1261. ifdef CONFIG_FIPS
  1262. L_CFLAGS += -DCONFIG_FIPS
  1263. endif
  1264. OBJS += $(SHA1OBJS) $(DESOBJS)
  1265. OBJS_p += $(SHA1OBJS)
  1266. OBJS_p += $(SHA256OBJS)
  1267. ifdef CONFIG_BGSCAN_SIMPLE
  1268. L_CFLAGS += -DCONFIG_BGSCAN_SIMPLE
  1269. OBJS += bgscan_simple.c
  1270. NEED_BGSCAN=y
  1271. endif
  1272. ifdef CONFIG_BGSCAN_LEARN
  1273. L_CFLAGS += -DCONFIG_BGSCAN_LEARN
  1274. OBJS += bgscan_learn.c
  1275. NEED_BGSCAN=y
  1276. endif
  1277. ifdef NEED_BGSCAN
  1278. L_CFLAGS += -DCONFIG_BGSCAN
  1279. OBJS += bgscan.c
  1280. endif
  1281. ifdef CONFIG_AUTOSCAN_EXPONENTIAL
  1282. L_CFLAGS += -DCONFIG_AUTOSCAN_EXPONENTIAL
  1283. OBJS += autoscan_exponential.c
  1284. NEED_AUTOSCAN=y
  1285. endif
  1286. ifdef CONFIG_AUTOSCAN_PERIODIC
  1287. L_CFLAGS += -DCONFIG_AUTOSCAN_PERIODIC
  1288. OBJS += autoscan_periodic.c
  1289. NEED_AUTOSCAN=y
  1290. endif
  1291. ifdef NEED_AUTOSCAN
  1292. L_CFLAGS += -DCONFIG_AUTOSCAN
  1293. OBJS += autoscan.c
  1294. endif
  1295. ifdef CONFIG_EXT_PASSWORD_TEST
  1296. OBJS += src/utils/ext_password_test.c
  1297. L_CFLAGS += -DCONFIG_EXT_PASSWORD_TEST
  1298. NEED_EXT_PASSWORD=y
  1299. endif
  1300. ifdef NEED_EXT_PASSWORD
  1301. OBJS += src/utils/ext_password.c
  1302. L_CFLAGS += -DCONFIG_EXT_PASSWORD
  1303. endif
  1304. ifdef NEED_GAS
  1305. OBJS += src/common/gas.c
  1306. OBJS += gas_query.c
  1307. L_CFLAGS += -DCONFIG_GAS
  1308. NEED_OFFCHANNEL=y
  1309. endif
  1310. ifdef NEED_OFFCHANNEL
  1311. OBJS += offchannel.c
  1312. L_CFLAGS += -DCONFIG_OFFCHANNEL
  1313. endif
  1314. OBJS += src/drivers/driver_common.c
  1315. OBJS_wpa_rm := ctrl_iface.c ctrl_iface_unix.c
  1316. OBJS_wpa := $(filter-out $(OBJS_wpa_rm),$(OBJS)) $(OBJS_h) tests/test_wpa.c
  1317. ifdef CONFIG_AUTHENTICATOR
  1318. OBJS_wpa += tests/link_test.c
  1319. endif
  1320. OBJS_wpa += $(OBJS_l2)
  1321. OBJS += wpa_supplicant.c events.c blacklist.c wpas_glue.c scan.c
  1322. OBJS_t := $(OBJS) $(OBJS_l2) eapol_test.c
  1323. OBJS_t += src/radius/radius_client.c
  1324. OBJS_t += src/radius/radius.c
  1325. ifndef CONFIG_AP
  1326. OBJS_t += src/utils/ip_addr.c
  1327. endif
  1328. OBJS_t2 := $(OBJS) $(OBJS_l2) preauth_test.c
  1329. OBJS += $(CONFIG_MAIN).c
  1330. ifdef CONFIG_PRIVSEP
  1331. OBJS_priv += $(OBJS_d) src/drivers/drivers.c
  1332. OBJS_priv += $(OBJS_l2)
  1333. OBJS_priv += src/utils/os_$(CONFIG_OS).c
  1334. OBJS_priv += src/utils/$(CONFIG_ELOOP).c
  1335. OBJS_priv += src/utils/common.c
  1336. OBJS_priv += src/utils/wpa_debug.c
  1337. OBJS_priv += src/utils/wpabuf.c
  1338. OBJS_priv += wpa_priv.c
  1339. ifdef CONFIG_DRIVER_NL80211
  1340. OBJS_priv += src/common/ieee802_11_common.c
  1341. endif
  1342. OBJS += src/l2_packet/l2_packet_privsep.c
  1343. OBJS += src/drivers/driver_privsep.c
  1344. EXTRA_progs += wpa_priv
  1345. else
  1346. OBJS += $(OBJS_d) src/drivers/drivers.c
  1347. OBJS += $(OBJS_l2)
  1348. endif
  1349. ifdef CONFIG_NDIS_EVENTS_INTEGRATED
  1350. L_CFLAGS += -DCONFIG_NDIS_EVENTS_INTEGRATED
  1351. OBJS += src/drivers/ndis_events.c
  1352. EXTRALIBS += -loleaut32 -lole32 -luuid
  1353. ifdef PLATFORMSDKLIB
  1354. EXTRALIBS += $(PLATFORMSDKLIB)/WbemUuid.Lib
  1355. else
  1356. EXTRALIBS += WbemUuid.Lib
  1357. endif
  1358. endif
  1359. ifndef LDO
  1360. LDO=$(CC)
  1361. endif
  1362. ########################
  1363. include $(CLEAR_VARS)
  1364. LOCAL_MODULE := wpa_cli
  1365. LOCAL_MODULE_TAGS := debug
  1366. LOCAL_SHARED_LIBRARIES := libc libcutils liblog
  1367. LOCAL_CFLAGS := $(L_CFLAGS)
  1368. LOCAL_SRC_FILES := $(OBJS_c)
  1369. LOCAL_C_INCLUDES := $(INCLUDES)
  1370. include $(BUILD_EXECUTABLE)
  1371. ########################
  1372. include $(CLEAR_VARS)
  1373. LOCAL_MODULE := wpa_supplicant
  1374. ifdef CONFIG_DRIVER_CUSTOM
  1375. LOCAL_STATIC_LIBRARIES := libCustomWifi
  1376. endif
  1377. ifneq ($(BOARD_WPA_SUPPLICANT_PRIVATE_LIB),)
  1378. LOCAL_STATIC_LIBRARIES += $(BOARD_WPA_SUPPLICANT_PRIVATE_LIB)
  1379. endif
  1380. LOCAL_SHARED_LIBRARIES := libc libcutils liblog
  1381. ifdef CONFIG_EAP_PROXY
  1382. LOCAL_STATIC_LIBRARIES += $(LIB_STATIC_EAP_PROXY)
  1383. LOCAL_SHARED_LIBRARIES += $(LIB_SHARED_EAP_PROXY)
  1384. endif
  1385. ifeq ($(CONFIG_TLS), openssl)
  1386. LOCAL_SHARED_LIBRARIES += libcrypto libssl libkeystore_binder
  1387. endif
  1388. ifdef CONFIG_DRIVER_NL80211
  1389. ifneq ($(wildcard external/libnl),)
  1390. LOCAL_SHARED_LIBRARIES += libnl
  1391. else
  1392. LOCAL_STATIC_LIBRARIES += libnl_2
  1393. endif
  1394. endif
  1395. LOCAL_CFLAGS := $(L_CFLAGS)
  1396. LOCAL_SRC_FILES := $(OBJS)
  1397. LOCAL_C_INCLUDES := $(INCLUDES)
  1398. include $(BUILD_EXECUTABLE)
  1399. ########################
  1400. #
  1401. #include $(CLEAR_VARS)
  1402. #LOCAL_MODULE := eapol_test
  1403. #ifdef CONFIG_DRIVER_CUSTOM
  1404. #LOCAL_STATIC_LIBRARIES := libCustomWifi
  1405. #endif
  1406. #LOCAL_SHARED_LIBRARIES := libc libcrypto libssl
  1407. #LOCAL_CFLAGS := $(L_CFLAGS)
  1408. #LOCAL_SRC_FILES := $(OBJS_t)
  1409. #LOCAL_C_INCLUDES := $(INCLUDES)
  1410. #include $(BUILD_EXECUTABLE)
  1411. #
  1412. ########################
  1413. #
  1414. #local_target_dir := $(TARGET_OUT)/etc/wifi
  1415. #
  1416. #include $(CLEAR_VARS)
  1417. #LOCAL_MODULE := wpa_supplicant.conf
  1418. #LOCAL_MODULE_CLASS := ETC
  1419. #LOCAL_MODULE_PATH := $(local_target_dir)
  1420. #LOCAL_SRC_FILES := $(LOCAL_MODULE)
  1421. #include $(BUILD_PREBUILT)
  1422. #
  1423. ########################
  1424. include $(CLEAR_VARS)
  1425. LOCAL_MODULE = libwpa_client
  1426. LOCAL_CFLAGS = $(L_CFLAGS)
  1427. LOCAL_SRC_FILES = src/common/wpa_ctrl.c src/utils/os_$(CONFIG_OS).c
  1428. LOCAL_C_INCLUDES = $(INCLUDES)
  1429. LOCAL_SHARED_LIBRARIES := libcutils liblog
  1430. LOCAL_COPY_HEADERS_TO := libwpa_client
  1431. LOCAL_COPY_HEADERS := src/common/wpa_ctrl.h
  1432. LOCAL_COPY_HEADERS += src/common/qca-vendor.h
  1433. include $(BUILD_SHARED_LIBRARY)