link_test.c 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. /*
  2. * Dummy functions to allow link_test to be linked. The need for these
  3. * functions should be removed to allow IEEE 802.1X/EAPOL authenticator to
  4. * be built outside hostapd.
  5. */
  6. #include "includes.h"
  7. #include "common.h"
  8. struct hostapd_data;
  9. struct sta_info;
  10. struct rsn_pmksa_cache_entry;
  11. struct eapol_state_machine;
  12. struct hostapd_eap_user;
  13. struct hostapd_bss_config;
  14. struct hostapd_vlan;
  15. struct sta_info * ap_get_sta(struct hostapd_data *hapd, const u8 *sta)
  16. {
  17. return NULL;
  18. }
  19. int ap_for_each_sta(struct hostapd_data *hapd,
  20. int (*cb)(struct hostapd_data *hapd, struct sta_info *sta,
  21. void *ctx),
  22. void *ctx)
  23. {
  24. return 0;
  25. }
  26. void ap_sta_session_timeout(struct hostapd_data *hapd, struct sta_info *sta,
  27. u32 session_timeout)
  28. {
  29. }
  30. int ap_sta_bind_vlan(struct hostapd_data *hapd, struct sta_info *sta,
  31. int old_vlanid)
  32. {
  33. return 0;
  34. }
  35. void rsn_preauth_finished(struct hostapd_data *hapd, struct sta_info *sta,
  36. int success)
  37. {
  38. }
  39. void rsn_preauth_send(struct hostapd_data *hapd, struct sta_info *sta,
  40. u8 *buf, size_t len)
  41. {
  42. }
  43. void accounting_sta_start(struct hostapd_data *hapd, struct sta_info *sta)
  44. {
  45. }
  46. void pmksa_cache_to_eapol_data(struct rsn_pmksa_cache_entry *entry,
  47. struct eapol_state_machine *eapol)
  48. {
  49. }
  50. const struct hostapd_eap_user *
  51. hostapd_get_eap_user(const struct hostapd_bss_config *conf, const u8 *identity,
  52. size_t identity_len, int phase2)
  53. {
  54. return NULL;
  55. }
  56. const char * hostapd_get_vlan_id_ifname(struct hostapd_vlan *vlan, int vlan_id)
  57. {
  58. return NULL;
  59. }