drivers.c 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  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. #include "includes.h"
  9. #ifdef CONFIG_DRIVER_WEXT
  10. extern struct wpa_driver_ops wpa_driver_wext_ops; /* driver_wext.c */
  11. #endif /* CONFIG_DRIVER_WEXT */
  12. #ifdef CONFIG_DRIVER_NL80211
  13. extern struct wpa_driver_ops wpa_driver_nl80211_ops; /* driver_nl80211.c */
  14. #endif /* CONFIG_DRIVER_NL80211 */
  15. #ifdef CONFIG_DRIVER_HOSTAP
  16. extern struct wpa_driver_ops wpa_driver_hostap_ops; /* driver_hostap.c */
  17. #endif /* CONFIG_DRIVER_HOSTAP */
  18. #ifdef CONFIG_DRIVER_MADWIFI
  19. extern struct wpa_driver_ops wpa_driver_madwifi_ops; /* driver_madwifi.c */
  20. #endif /* CONFIG_DRIVER_MADWIFI */
  21. #ifdef CONFIG_DRIVER_BSD
  22. extern struct wpa_driver_ops wpa_driver_bsd_ops; /* driver_bsd.c */
  23. #endif /* CONFIG_DRIVER_BSD */
  24. #ifdef CONFIG_DRIVER_NDIS
  25. extern struct wpa_driver_ops wpa_driver_ndis_ops; /* driver_ndis.c */
  26. #endif /* CONFIG_DRIVER_NDIS */
  27. #ifdef CONFIG_DRIVER_WIRED
  28. extern struct wpa_driver_ops wpa_driver_wired_ops; /* driver_wired.c */
  29. #endif /* CONFIG_DRIVER_WIRED */
  30. #ifdef CONFIG_DRIVER_TEST
  31. extern struct wpa_driver_ops wpa_driver_test_ops; /* driver_test.c */
  32. #endif /* CONFIG_DRIVER_TEST */
  33. #ifdef CONFIG_DRIVER_ROBOSWITCH
  34. /* driver_roboswitch.c */
  35. extern struct wpa_driver_ops wpa_driver_roboswitch_ops;
  36. #endif /* CONFIG_DRIVER_ROBOSWITCH */
  37. #ifdef CONFIG_DRIVER_ATHEROS
  38. extern struct wpa_driver_ops wpa_driver_atheros_ops; /* driver_atheros.c */
  39. #endif /* CONFIG_DRIVER_ATHEROS */
  40. #ifdef CONFIG_DRIVER_NONE
  41. extern struct wpa_driver_ops wpa_driver_none_ops; /* driver_none.c */
  42. #endif /* CONFIG_DRIVER_NONE */
  43. struct wpa_driver_ops *wpa_drivers[] =
  44. {
  45. #ifdef CONFIG_DRIVER_WEXT
  46. &wpa_driver_wext_ops,
  47. #endif /* CONFIG_DRIVER_WEXT */
  48. #ifdef CONFIG_DRIVER_NL80211
  49. &wpa_driver_nl80211_ops,
  50. #endif /* CONFIG_DRIVER_NL80211 */
  51. #ifdef CONFIG_DRIVER_HOSTAP
  52. &wpa_driver_hostap_ops,
  53. #endif /* CONFIG_DRIVER_HOSTAP */
  54. #ifdef CONFIG_DRIVER_MADWIFI
  55. &wpa_driver_madwifi_ops,
  56. #endif /* CONFIG_DRIVER_MADWIFI */
  57. #ifdef CONFIG_DRIVER_BSD
  58. &wpa_driver_bsd_ops,
  59. #endif /* CONFIG_DRIVER_BSD */
  60. #ifdef CONFIG_DRIVER_NDIS
  61. &wpa_driver_ndis_ops,
  62. #endif /* CONFIG_DRIVER_NDIS */
  63. #ifdef CONFIG_DRIVER_WIRED
  64. &wpa_driver_wired_ops,
  65. #endif /* CONFIG_DRIVER_WIRED */
  66. #ifdef CONFIG_DRIVER_TEST
  67. &wpa_driver_test_ops,
  68. #endif /* CONFIG_DRIVER_TEST */
  69. #ifdef CONFIG_DRIVER_ROBOSWITCH
  70. &wpa_driver_roboswitch_ops,
  71. #endif /* CONFIG_DRIVER_ROBOSWITCH */
  72. #ifdef CONFIG_DRIVER_ATHEROS
  73. &wpa_driver_atheros_ops,
  74. #endif /* CONFIG_DRIVER_ATHEROS */
  75. #ifdef CONFIG_DRIVER_NONE
  76. &wpa_driver_none_ops,
  77. #endif /* CONFIG_DRIVER_NONE */
  78. NULL
  79. };