ibss_rsn.h 970 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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. struct wpa_state_machine *auth;
  23. };
  24. struct ibss_rsn {
  25. struct wpa_supplicant *wpa_s;
  26. struct wpa_authenticator *auth_group;
  27. struct ibss_rsn_peer *peers;
  28. u8 psk[PMK_LEN];
  29. };
  30. struct ibss_rsn * ibss_rsn_init(struct wpa_supplicant *wpa_s);
  31. void ibss_rsn_deinit(struct ibss_rsn *ibss_rsn);
  32. int ibss_rsn_start(struct ibss_rsn *ibss_rsn, const u8 *addr);
  33. #endif /* IBSS_RSN_H */