xref: /freebsd/contrib/wpa/src/drivers/drivers.c (revision 8d20be1e22095c27faf8fe8b2f0d089739cc742e)
1 /*
2  * Driver interface list
3  * Copyright (c) 2004-2005, Jouni Malinen <j@w1.fi>
4  *
5  * This software may be distributed under the terms of the BSD license.
6  * See README for more details.
7  */
8 
9 #include "includes.h"
10 
11 
12 #ifdef CONFIG_DRIVER_WEXT
13 extern struct wpa_driver_ops wpa_driver_wext_ops; /* driver_wext.c */
14 #endif /* CONFIG_DRIVER_WEXT */
15 #ifdef CONFIG_DRIVER_NL80211
16 extern struct wpa_driver_ops wpa_driver_nl80211_ops; /* driver_nl80211.c */
17 #endif /* CONFIG_DRIVER_NL80211 */
18 #ifdef CONFIG_DRIVER_HOSTAP
19 extern struct wpa_driver_ops wpa_driver_hostap_ops; /* driver_hostap.c */
20 #endif /* CONFIG_DRIVER_HOSTAP */
21 #ifdef CONFIG_DRIVER_MADWIFI
22 extern struct wpa_driver_ops wpa_driver_madwifi_ops; /* driver_madwifi.c */
23 #endif /* CONFIG_DRIVER_MADWIFI */
24 #ifdef CONFIG_DRIVER_BSD
25 extern struct wpa_driver_ops wpa_driver_bsd_ops; /* driver_bsd.c */
26 #endif /* CONFIG_DRIVER_BSD */
27 #ifdef CONFIG_DRIVER_NDIS
28 extern struct wpa_driver_ops wpa_driver_ndis_ops; /* driver_ndis.c */
29 #endif /* CONFIG_DRIVER_NDIS */
30 #ifdef CONFIG_DRIVER_WIRED
31 extern struct wpa_driver_ops wpa_driver_wired_ops; /* driver_wired.c */
32 #endif /* CONFIG_DRIVER_WIRED */
33 #ifdef CONFIG_DRIVER_TEST
34 extern struct wpa_driver_ops wpa_driver_test_ops; /* driver_test.c */
35 #endif /* CONFIG_DRIVER_TEST */
36 #ifdef CONFIG_DRIVER_ROBOSWITCH
37 /* driver_roboswitch.c */
38 extern struct wpa_driver_ops wpa_driver_roboswitch_ops;
39 #endif /* CONFIG_DRIVER_ROBOSWITCH */
40 #ifdef CONFIG_DRIVER_ATHEROS
41 extern struct wpa_driver_ops wpa_driver_atheros_ops; /* driver_atheros.c */
42 #endif /* CONFIG_DRIVER_ATHEROS */
43 #ifdef CONFIG_DRIVER_NONE
44 extern struct wpa_driver_ops wpa_driver_none_ops; /* driver_none.c */
45 #endif /* CONFIG_DRIVER_NONE */
46 
47 
48 struct wpa_driver_ops *wpa_drivers[] =
49 {
50 #ifdef CONFIG_DRIVER_WEXT
51 	&wpa_driver_wext_ops,
52 #endif /* CONFIG_DRIVER_WEXT */
53 #ifdef CONFIG_DRIVER_NL80211
54 	&wpa_driver_nl80211_ops,
55 #endif /* CONFIG_DRIVER_NL80211 */
56 #ifdef CONFIG_DRIVER_HOSTAP
57 	&wpa_driver_hostap_ops,
58 #endif /* CONFIG_DRIVER_HOSTAP */
59 #ifdef CONFIG_DRIVER_MADWIFI
60 	&wpa_driver_madwifi_ops,
61 #endif /* CONFIG_DRIVER_MADWIFI */
62 #ifdef CONFIG_DRIVER_BSD
63 	&wpa_driver_bsd_ops,
64 #endif /* CONFIG_DRIVER_BSD */
65 #ifdef CONFIG_DRIVER_NDIS
66 	&wpa_driver_ndis_ops,
67 #endif /* CONFIG_DRIVER_NDIS */
68 #ifdef CONFIG_DRIVER_WIRED
69 	&wpa_driver_wired_ops,
70 #endif /* CONFIG_DRIVER_WIRED */
71 #ifdef CONFIG_DRIVER_TEST
72 	&wpa_driver_test_ops,
73 #endif /* CONFIG_DRIVER_TEST */
74 #ifdef CONFIG_DRIVER_ROBOSWITCH
75 	&wpa_driver_roboswitch_ops,
76 #endif /* CONFIG_DRIVER_ROBOSWITCH */
77 #ifdef CONFIG_DRIVER_ATHEROS
78 	&wpa_driver_atheros_ops,
79 #endif /* CONFIG_DRIVER_ATHEROS */
80 #ifdef CONFIG_DRIVER_NONE
81 	&wpa_driver_none_ops,
82 #endif /* CONFIG_DRIVER_NONE */
83 	NULL
84 };
85