fst_ctrl_defs.h 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. /*
  2. * FST module - shared Control interface definitions
  3. * Copyright (c) 2014, Qualcomm Atheros, Inc.
  4. *
  5. * This software may be distributed under the terms of the BSD license.
  6. * See README for more details.
  7. */
  8. #ifndef FST_CTRL_DEFS_H
  9. #define FST_CTRL_DEFS_H
  10. /* Undefined value */
  11. #define FST_CTRL_PVAL_NONE "NONE"
  12. /* FST-ATTACH parameters */
  13. #define FST_ATTACH_CMD_PNAME_LLT "llt" /* pval = desired LLT */
  14. #define FST_ATTACH_CMD_PNAME_PRIORITY "priority" /* pval = desired priority */
  15. /* FST-MANAGER parameters */
  16. /* FST Session states */
  17. #define FST_CS_PVAL_STATE_INITIAL "INITIAL"
  18. #define FST_CS_PVAL_STATE_SETUP_COMPLETION "SETUP_COMPLETION"
  19. #define FST_CS_PVAL_STATE_TRANSITION_DONE "TRANSITION_DONE"
  20. #define FST_CS_PVAL_STATE_TRANSITION_CONFIRMED "TRANSITION_CONFIRMED"
  21. /* FST Session reset reasons */
  22. #define FST_CS_PVAL_REASON_TEARDOWN "REASON_TEARDOWN"
  23. #define FST_CS_PVAL_REASON_SETUP "REASON_SETUP"
  24. #define FST_CS_PVAL_REASON_SWITCH "REASON_SWITCH"
  25. #define FST_CS_PVAL_REASON_STT "REASON_STT"
  26. #define FST_CS_PVAL_REASON_REJECT "REASON_REJECT"
  27. #define FST_CS_PVAL_REASON_ERROR_PARAMS "REASON_ERROR_PARAMS"
  28. #define FST_CS_PVAL_REASON_RESET "REASON_RESET"
  29. #define FST_CS_PVAL_REASON_DETACH_IFACE "REASON_DETACH_IFACE"
  30. /* FST Session responses */
  31. #define FST_CS_PVAL_RESPONSE_ACCEPT "ACCEPT"
  32. #define FST_CS_PVAL_RESPONSE_REJECT "REJECT"
  33. /* FST Session action initiator */
  34. #define FST_CS_PVAL_INITIATOR_LOCAL "LOCAL"
  35. #define FST_CS_PVAL_INITIATOR_REMOTE "REMOTE"
  36. /* FST-CLI subcommands and parameter names */
  37. #define FST_CMD_LIST_GROUPS "list_groups"
  38. #define FST_CMD_LIST_IFACES "list_ifaces"
  39. #define FST_CMD_IFACE_PEERS "iface_peers"
  40. #define FST_CMD_GET_PEER_MBIES "get_peer_mbies"
  41. #define FST_CMD_LIST_SESSIONS "list_sessions"
  42. #define FST_CMD_SESSION_ADD "session_add"
  43. #define FST_CMD_SESSION_REMOVE "session_remove"
  44. #define FST_CMD_SESSION_GET "session_get"
  45. #define FST_CSG_PNAME_OLD_PEER_ADDR "old_peer_addr" /* pval = address string */
  46. #define FST_CSG_PNAME_NEW_PEER_ADDR "new_peer_addr" /* pval = address string */
  47. #define FST_CSG_PNAME_OLD_IFNAME "old_ifname" /* pval = ifname */
  48. #define FST_CSG_PNAME_NEW_IFNAME "new_ifname" /* pval = ifname */
  49. #define FST_CSG_PNAME_LLT "llt" /* pval = numeric llt value */
  50. #define FST_CSG_PNAME_STATE "state" /* pval = FST_CS_PVAL_STATE_... */
  51. #define FST_CMD_SESSION_SET "session_set"
  52. #define FST_CSS_PNAME_OLD_PEER_ADDR FST_CSG_PNAME_OLD_PEER_ADDR
  53. #define FST_CSS_PNAME_NEW_PEER_ADDR FST_CSG_PNAME_NEW_PEER_ADDR
  54. #define FST_CSS_PNAME_OLD_IFNAME FST_CSG_PNAME_OLD_IFNAME
  55. #define FST_CSS_PNAME_NEW_IFNAME FST_CSG_PNAME_NEW_IFNAME
  56. #define FST_CSS_PNAME_LLT FST_CSG_PNAME_LLT
  57. #define FST_CMD_SESSION_INITIATE "session_initiate"
  58. #define FST_CMD_SESSION_RESPOND "session_respond"
  59. #define FST_CMD_SESSION_TRANSFER "session_transfer"
  60. #define FST_CMD_SESSION_TEARDOWN "session_teardown"
  61. #ifdef CONFIG_FST_TEST
  62. #define FST_CTR_PVAL_BAD_NEW_BAND "bad_new_band"
  63. #define FST_CMD_TEST_REQUEST "test_request"
  64. #define FST_CTR_IS_SUPPORTED "is_supported"
  65. #define FST_CTR_SEND_SETUP_REQUEST "send_setup_request"
  66. #define FST_CTR_SEND_SETUP_RESPONSE "send_setup_response"
  67. #define FST_CTR_SEND_ACK_REQUEST "send_ack_request"
  68. #define FST_CTR_SEND_ACK_RESPONSE "send_ack_response"
  69. #define FST_CTR_SEND_TEAR_DOWN "send_tear_down"
  70. #define FST_CTR_GET_FSTS_ID "get_fsts_id"
  71. #define FST_CTR_GET_LOCAL_MBIES "get_local_mbies"
  72. #endif /* CONFIG_FST_TEST */
  73. /* Events */
  74. #define FST_CTRL_EVENT_IFACE "FST-EVENT-IFACE"
  75. #define FST_CEI_PNAME_IFNAME "ifname"
  76. #define FST_CEI_PNAME_GROUP "group"
  77. #define FST_CEI_PNAME_ATTACHED "attached"
  78. #define FST_CEI_PNAME_DETACHED "detached"
  79. #define FST_CTRL_EVENT_PEER "FST-EVENT-PEER"
  80. #define FST_CEP_PNAME_IFNAME "ifname"
  81. #define FST_CEP_PNAME_ADDR "peer_addr"
  82. #define FST_CEP_PNAME_CONNECTED "connected"
  83. #define FST_CEP_PNAME_DISCONNECTED "disconnected"
  84. #define FST_CTRL_EVENT_SESSION "FST-EVENT-SESSION"
  85. #define FST_CES_PNAME_SESSION_ID "session_id"
  86. #define FST_CES_PNAME_EVT_TYPE "event_type"
  87. #define FST_PVAL_EVT_TYPE_SESSION_STATE "EVENT_FST_SESSION_STATE"
  88. /* old_state/new_state: pval = FST_CS_PVAL_STATE_... */
  89. #define FST_CES_PNAME_OLD_STATE "old_state"
  90. #define FST_CES_PNAME_NEW_STATE "new_state"
  91. #define FST_CES_PNAME_REASON "reason" /* pval = FST_CS_PVAL_REASON_... */
  92. #define FST_CES_PNAME_REJECT_CODE "reject_code" /* pval = u8 code */
  93. /* pval = FST_CS_PVAL_INITIATOR_... */
  94. #define FST_CES_PNAME_INITIATOR "initiator"
  95. #define FST_PVAL_EVT_TYPE_ESTABLISHED "EVENT_FST_ESTABLISHED"
  96. #define FST_PVAL_EVT_TYPE_SETUP "EVENT_FST_SETUP"
  97. #endif /* FST_CTRL_DEFS_H */