fwil.h 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. /*
  2. * Copyright (c) 2012 Broadcom Corporation
  3. *
  4. * Permission to use, copy, modify, and/or distribute this software for any
  5. * purpose with or without fee is hereby granted, provided that the above
  6. * copyright notice and this permission notice appear in all copies.
  7. *
  8. * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
  9. * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
  10. * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
  11. * SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
  12. * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
  13. * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
  14. * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  15. */
  16. #ifndef _fwil_h_
  17. #define _fwil_h_
  18. /*******************************************************************************
  19. * Dongle command codes that are interpreted by firmware
  20. ******************************************************************************/
  21. #define BRCMF_C_GET_VERSION 1
  22. #define BRCMF_C_UP 2
  23. #define BRCMF_C_DOWN 3
  24. #define BRCMF_C_SET_PROMISC 10
  25. #define BRCMF_C_GET_RATE 12
  26. #define BRCMF_C_GET_INFRA 19
  27. #define BRCMF_C_SET_INFRA 20
  28. #define BRCMF_C_GET_AUTH 21
  29. #define BRCMF_C_SET_AUTH 22
  30. #define BRCMF_C_GET_BSSID 23
  31. #define BRCMF_C_GET_SSID 25
  32. #define BRCMF_C_SET_SSID 26
  33. #define BRCMF_C_TERMINATED 28
  34. #define BRCMF_C_GET_CHANNEL 29
  35. #define BRCMF_C_SET_CHANNEL 30
  36. #define BRCMF_C_GET_SRL 31
  37. #define BRCMF_C_SET_SRL 32
  38. #define BRCMF_C_GET_LRL 33
  39. #define BRCMF_C_SET_LRL 34
  40. #define BRCMF_C_GET_RADIO 37
  41. #define BRCMF_C_SET_RADIO 38
  42. #define BRCMF_C_GET_PHYTYPE 39
  43. #define BRCMF_C_SET_KEY 45
  44. #define BRCMF_C_GET_REGULATORY 46
  45. #define BRCMF_C_SET_REGULATORY 47
  46. #define BRCMF_C_SET_PASSIVE_SCAN 49
  47. #define BRCMF_C_SCAN 50
  48. #define BRCMF_C_SCAN_RESULTS 51
  49. #define BRCMF_C_DISASSOC 52
  50. #define BRCMF_C_REASSOC 53
  51. #define BRCMF_C_SET_ROAM_TRIGGER 55
  52. #define BRCMF_C_SET_ROAM_DELTA 57
  53. #define BRCMF_C_GET_BCNPRD 75
  54. #define BRCMF_C_SET_BCNPRD 76
  55. #define BRCMF_C_GET_DTIMPRD 77
  56. #define BRCMF_C_SET_DTIMPRD 78
  57. #define BRCMF_C_SET_COUNTRY 84
  58. #define BRCMF_C_GET_PM 85
  59. #define BRCMF_C_SET_PM 86
  60. #define BRCMF_C_GET_REVINFO 98
  61. #define BRCMF_C_GET_CURR_RATESET 114
  62. #define BRCMF_C_GET_AP 117
  63. #define BRCMF_C_SET_AP 118
  64. #define BRCMF_C_SET_SCB_AUTHORIZE 121
  65. #define BRCMF_C_SET_SCB_DEAUTHORIZE 122
  66. #define BRCMF_C_GET_RSSI 127
  67. #define BRCMF_C_GET_WSEC 133
  68. #define BRCMF_C_SET_WSEC 134
  69. #define BRCMF_C_GET_PHY_NOISE 135
  70. #define BRCMF_C_GET_BSS_INFO 136
  71. #define BRCMF_C_GET_GET_PKTCNTS 137
  72. #define BRCMF_C_GET_BANDLIST 140
  73. #define BRCMF_C_SET_SCB_TIMEOUT 158
  74. #define BRCMF_C_GET_ASSOCLIST 159
  75. #define BRCMF_C_GET_PHYLIST 180
  76. #define BRCMF_C_SET_SCAN_CHANNEL_TIME 185
  77. #define BRCMF_C_SET_SCAN_UNASSOC_TIME 187
  78. #define BRCMF_C_SCB_DEAUTHENTICATE_FOR_REASON 201
  79. #define BRCMF_C_SET_ASSOC_PREFER 205
  80. #define BRCMF_C_GET_VALID_CHANNELS 217
  81. #define BRCMF_C_GET_KEY_PRIMARY 235
  82. #define BRCMF_C_SET_KEY_PRIMARY 236
  83. #define BRCMF_C_SET_SCAN_PASSIVE_TIME 258
  84. #define BRCMF_C_GET_VAR 262
  85. #define BRCMF_C_SET_VAR 263
  86. #define BRCMF_C_SET_WSEC_PMK 268
  87. s32 brcmf_fil_cmd_data_set(struct brcmf_if *ifp, u32 cmd, void *data, u32 len);
  88. s32 brcmf_fil_cmd_data_get(struct brcmf_if *ifp, u32 cmd, void *data, u32 len);
  89. s32 brcmf_fil_cmd_int_set(struct brcmf_if *ifp, u32 cmd, u32 data);
  90. s32 brcmf_fil_cmd_int_get(struct brcmf_if *ifp, u32 cmd, u32 *data);
  91. s32 brcmf_fil_iovar_data_set(struct brcmf_if *ifp, char *name, const void *data,
  92. u32 len);
  93. s32 brcmf_fil_iovar_data_get(struct brcmf_if *ifp, char *name, void *data,
  94. u32 len);
  95. s32 brcmf_fil_iovar_int_set(struct brcmf_if *ifp, char *name, u32 data);
  96. s32 brcmf_fil_iovar_int_get(struct brcmf_if *ifp, char *name, u32 *data);
  97. s32 brcmf_fil_bsscfg_data_set(struct brcmf_if *ifp, char *name, void *data,
  98. u32 len);
  99. s32 brcmf_fil_bsscfg_data_get(struct brcmf_if *ifp, char *name, void *data,
  100. u32 len);
  101. s32 brcmf_fil_bsscfg_int_set(struct brcmf_if *ifp, char *name, u32 data);
  102. s32 brcmf_fil_bsscfg_int_get(struct brcmf_if *ifp, char *name, u32 *data);
  103. #endif /* _fwil_h_ */