Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

sme.h 2.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. /*
  2. * wpa_supplicant - SME
  3. * Copyright (c) 2009-2010, Jouni Malinen <j@w1.fi>
  4. *
  5. * This program is free software; you can redistribute it and/or modify
  6. * it under the terms of the GNU General Public License version 2 as
  7. * published by the Free Software Foundation.
  8. *
  9. * Alternatively, this software may be distributed under the terms of BSD
  10. * license.
  11. *
  12. * See README and COPYING for more details.
  13. */
  14. #ifndef SME_H
  15. #define SME_H
  16. #ifdef CONFIG_SME
  17. void sme_authenticate(struct wpa_supplicant *wpa_s,
  18. struct wpa_bss *bss, struct wpa_ssid *ssid);
  19. void sme_associate(struct wpa_supplicant *wpa_s, enum wpas_mode mode,
  20. const u8 *bssid, u16 auth_type);
  21. void sme_event_auth(struct wpa_supplicant *wpa_s, union wpa_event_data *data);
  22. int sme_update_ft_ies(struct wpa_supplicant *wpa_s, const u8 *md,
  23. const u8 *ies, size_t ies_len);
  24. void sme_event_assoc_reject(struct wpa_supplicant *wpa_s,
  25. union wpa_event_data *data);
  26. void sme_event_auth_timed_out(struct wpa_supplicant *wpa_s,
  27. union wpa_event_data *data);
  28. void sme_event_assoc_timed_out(struct wpa_supplicant *wpa_s,
  29. union wpa_event_data *data);
  30. void sme_event_disassoc(struct wpa_supplicant *wpa_s,
  31. union wpa_event_data *data);
  32. void sme_event_unprot_disconnect(struct wpa_supplicant *wpa_s, const u8 *sa,
  33. const u8 *da, u16 reason_code);
  34. void sme_sa_query_rx(struct wpa_supplicant *wpa_s, const u8 *sa,
  35. const u8 *data, size_t len);
  36. void sme_state_changed(struct wpa_supplicant *wpa_s);
  37. void sme_disassoc_while_authenticating(struct wpa_supplicant *wpa_s,
  38. const u8 *prev_pending_bssid);
  39. void sme_deinit(struct wpa_supplicant *wpa_s);
  40. #else /* CONFIG_SME */
  41. static inline void sme_authenticate(struct wpa_supplicant *wpa_s,
  42. struct wpa_bss *bss,
  43. struct wpa_ssid *ssid)
  44. {
  45. }
  46. static inline void sme_event_auth(struct wpa_supplicant *wpa_s,
  47. union wpa_event_data *data)
  48. {
  49. }
  50. static inline int sme_update_ft_ies(struct wpa_supplicant *wpa_s, const u8 *md,
  51. const u8 *ies, size_t ies_len)
  52. {
  53. return -1;
  54. }
  55. static inline void sme_event_assoc_reject(struct wpa_supplicant *wpa_s,
  56. union wpa_event_data *data)
  57. {
  58. }
  59. static inline void sme_event_auth_timed_out(struct wpa_supplicant *wpa_s,
  60. union wpa_event_data *data)
  61. {
  62. }
  63. static inline void sme_event_assoc_timed_out(struct wpa_supplicant *wpa_s,
  64. union wpa_event_data *data)
  65. {
  66. }
  67. static inline void sme_event_disassoc(struct wpa_supplicant *wpa_s,
  68. union wpa_event_data *data)
  69. {
  70. }
  71. static inline void sme_event_unprot_disconnect(struct wpa_supplicant *wpa_s,
  72. const u8 *sa, const u8 *da,
  73. u16 reason_code)
  74. {
  75. }
  76. static inline void sme_state_changed(struct wpa_supplicant *wpa_s)
  77. {
  78. }
  79. static inline void
  80. sme_disassoc_while_authenticating(struct wpa_supplicant *wpa_s,
  81. const u8 *prev_pending_bssid)
  82. {
  83. }
  84. static inline void sme_deinit(struct wpa_supplicant *wpa_s)
  85. {
  86. }
  87. #endif /* CONFIG_SME */
  88. #endif /* SME_H */