privsep_commands.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. /*
  2. * WPA Supplicant - privilege separation commands
  3. * Copyright (c) 2007-2009, 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 PRIVSEP_COMMANDS_H
  9. #define PRIVSEP_COMMANDS_H
  10. enum privsep_cmd {
  11. PRIVSEP_CMD_REGISTER,
  12. PRIVSEP_CMD_UNREGISTER,
  13. PRIVSEP_CMD_SCAN,
  14. PRIVSEP_CMD_GET_SCAN_RESULTS,
  15. PRIVSEP_CMD_ASSOCIATE,
  16. PRIVSEP_CMD_GET_BSSID,
  17. PRIVSEP_CMD_GET_SSID,
  18. PRIVSEP_CMD_SET_KEY,
  19. PRIVSEP_CMD_GET_CAPA,
  20. PRIVSEP_CMD_L2_REGISTER,
  21. PRIVSEP_CMD_L2_UNREGISTER,
  22. PRIVSEP_CMD_L2_NOTIFY_AUTH_START,
  23. PRIVSEP_CMD_L2_SEND,
  24. PRIVSEP_CMD_SET_COUNTRY,
  25. };
  26. struct privsep_cmd_associate
  27. {
  28. u8 bssid[ETH_ALEN];
  29. u8 ssid[32];
  30. size_t ssid_len;
  31. int freq;
  32. int pairwise_suite;
  33. int group_suite;
  34. int key_mgmt_suite;
  35. int auth_alg;
  36. int mode;
  37. size_t wpa_ie_len;
  38. /* followed by wpa_ie_len bytes of wpa_ie */
  39. };
  40. struct privsep_cmd_set_key
  41. {
  42. int alg;
  43. u8 addr[ETH_ALEN];
  44. int key_idx;
  45. int set_tx;
  46. u8 seq[8];
  47. size_t seq_len;
  48. u8 key[32];
  49. size_t key_len;
  50. };
  51. enum privsep_event {
  52. PRIVSEP_EVENT_SCAN_RESULTS,
  53. PRIVSEP_EVENT_ASSOC,
  54. PRIVSEP_EVENT_DISASSOC,
  55. PRIVSEP_EVENT_ASSOCINFO,
  56. PRIVSEP_EVENT_MICHAEL_MIC_FAILURE,
  57. PRIVSEP_EVENT_INTERFACE_STATUS,
  58. PRIVSEP_EVENT_PMKID_CANDIDATE,
  59. PRIVSEP_EVENT_STKSTART,
  60. PRIVSEP_EVENT_FT_RESPONSE,
  61. PRIVSEP_EVENT_RX_EAPOL,
  62. };
  63. #endif /* PRIVSEP_COMMANDS_H */