Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

ibss_rsn.h 1.2KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. /*
  2. * wpa_supplicant - IBSS RSN
  3. * Copyright (c) 2009, 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 IBSS_RSN_H
  15. #define IBSS_RSN_H
  16. struct ibss_rsn;
  17. struct ibss_rsn_peer {
  18. struct ibss_rsn_peer *next;
  19. struct ibss_rsn *ibss_rsn;
  20. u8 addr[ETH_ALEN];
  21. struct wpa_sm *supp;
  22. enum wpa_states supp_state;
  23. u8 supp_ie[80];
  24. size_t supp_ie_len;
  25. struct wpa_state_machine *auth;
  26. };
  27. struct ibss_rsn {
  28. struct wpa_supplicant *wpa_s;
  29. struct wpa_authenticator *auth_group;
  30. struct ibss_rsn_peer *peers;
  31. u8 psk[PMK_LEN];
  32. };
  33. struct ibss_rsn * ibss_rsn_init(struct wpa_supplicant *wpa_s);
  34. void ibss_rsn_deinit(struct ibss_rsn *ibss_rsn);
  35. int ibss_rsn_start(struct ibss_rsn *ibss_rsn, const u8 *addr);
  36. void ibss_rsn_stop(struct ibss_rsn *ibss_rsn, const u8 *peermac);
  37. int ibss_rsn_rx_eapol(struct ibss_rsn *ibss_rsn, const u8 *src_addr,
  38. const u8 *buf, size_t len);
  39. void ibss_rsn_set_psk(struct ibss_rsn *ibss_rsn, const u8 *psk);
  40. #endif /* IBSS_RSN_H */