wpa_ie.h 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. /*
  2. * wpa_supplicant - WPA/RSN IE and KDE definitions
  3. * Copyright (c) 2004-2007, 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. #ifndef WPA_IE_H
  9. #define WPA_IE_H
  10. struct wpa_sm;
  11. struct wpa_eapol_ie_parse {
  12. const u8 *wpa_ie;
  13. size_t wpa_ie_len;
  14. const u8 *rsn_ie;
  15. size_t rsn_ie_len;
  16. const u8 *pmkid;
  17. const u8 *gtk;
  18. size_t gtk_len;
  19. const u8 *mac_addr;
  20. size_t mac_addr_len;
  21. #ifdef CONFIG_PEERKEY
  22. const u8 *smk;
  23. size_t smk_len;
  24. const u8 *nonce;
  25. size_t nonce_len;
  26. const u8 *lifetime;
  27. size_t lifetime_len;
  28. const u8 *error;
  29. size_t error_len;
  30. #endif /* CONFIG_PEERKEY */
  31. #ifdef CONFIG_IEEE80211W
  32. const u8 *igtk;
  33. size_t igtk_len;
  34. #endif /* CONFIG_IEEE80211W */
  35. const u8 *mdie;
  36. size_t mdie_len;
  37. const u8 *ftie;
  38. size_t ftie_len;
  39. const u8 *reassoc_deadline;
  40. const u8 *key_lifetime;
  41. const u8 *lnkid;
  42. size_t lnkid_len;
  43. const u8 *ext_capab;
  44. size_t ext_capab_len;
  45. const u8 *supp_rates;
  46. size_t supp_rates_len;
  47. const u8 *ext_supp_rates;
  48. size_t ext_supp_rates_len;
  49. const u8 *ht_capabilities;
  50. size_t ht_capabilities_len;
  51. const u8 *vht_capabilities;
  52. size_t vht_capabilities_len;
  53. const u8 *supp_channels;
  54. size_t supp_channels_len;
  55. const u8 *supp_oper_classes;
  56. size_t supp_oper_classes_len;
  57. u8 qosinfo;
  58. u16 aid;
  59. const u8 *wmm;
  60. size_t wmm_len;
  61. #ifdef CONFIG_P2P
  62. const u8 *ip_addr_req;
  63. const u8 *ip_addr_alloc;
  64. #endif /* CONFIG_P2P */
  65. };
  66. int wpa_supplicant_parse_ies(const u8 *buf, size_t len,
  67. struct wpa_eapol_ie_parse *ie);
  68. int wpa_gen_wpa_ie(struct wpa_sm *sm, u8 *wpa_ie, size_t wpa_ie_len);
  69. #endif /* WPA_IE_H */