qca-vendor.h 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447
  1. /*
  2. * Qualcomm Atheros OUI and vendor specific assignments
  3. * Copyright (c) 2014-2015, 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 QCA_VENDOR_H
  9. #define QCA_VENDOR_H
  10. /*
  11. * This file is a registry of identifier assignments from the Qualcomm Atheros
  12. * OUI 00:13:74 for purposes other than MAC address assignment. New identifiers
  13. * can be assigned through normal review process for changes to the upstream
  14. * hostap.git repository.
  15. */
  16. #define OUI_QCA 0x001374
  17. /**
  18. * enum qca_radiotap_vendor_ids - QCA radiotap vendor namespace IDs
  19. */
  20. enum qca_radiotap_vendor_ids {
  21. QCA_RADIOTAP_VID_WLANTEST = 0,
  22. };
  23. /**
  24. * enum qca_nl80211_vendor_subcmds - QCA nl80211 vendor command identifiers
  25. *
  26. * @QCA_NL80211_VENDOR_SUBCMD_UNSPEC: Reserved value 0
  27. *
  28. * @QCA_NL80211_VENDOR_SUBCMD_TEST: Test command/event
  29. *
  30. * @QCA_NL80211_VENDOR_SUBCMD_ROAMING: Set roaming policy for drivers that use
  31. * internal BSS-selection. This command uses
  32. * @QCA_WLAN_VENDOR_ATTR_ROAMING_POLICY to specify the new roaming policy
  33. * for the current connection (i.e., changes policy set by the nl80211
  34. * Connect command). @QCA_WLAN_VENDOR_ATTR_MAC_ADDR may optionally be
  35. * included to indicate which BSS to use in case roaming is disabled.
  36. *
  37. * @QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY: Recommendation of frequency
  38. * ranges to avoid to reduce issues due to interference or internal
  39. * co-existence information in the driver. The event data structure is
  40. * defined in struct qca_avoid_freq_list.
  41. *
  42. * @QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY: Command to check driver support
  43. * for DFS offloading.
  44. *
  45. * @QCA_NL80211_VENDOR_SUBCMD_NAN: NAN command/event which is used to pass
  46. * NAN Request/Response and NAN Indication messages. These messages are
  47. * interpreted between the framework and the firmware component.
  48. *
  49. * @QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_SET_KEY: Set key operation that can be
  50. * used to configure PMK to the driver even when not connected. This can
  51. * be used to request offloading of key management operations. Only used
  52. * if device supports QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD.
  53. *
  54. * @QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_ROAM_AUTH: An extended version of
  55. * NL80211_CMD_ROAM event with optional attributes including information
  56. * from offloaded key management operation. Uses
  57. * enum qca_wlan_vendor_attr_roam_auth attributes. Only used
  58. * if device supports QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD.
  59. *
  60. * @QCA_NL80211_VENDOR_SUBCMD_DO_ACS: ACS command/event which is used to
  61. * invoke the ACS function in device and pass selected channels to
  62. * hostapd.
  63. *
  64. * @QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES: Command to get the features
  65. * supported by the driver. enum qca_wlan_vendor_features defines
  66. * the possible features.
  67. *
  68. * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_STARTED: Event used by driver,
  69. * which supports DFS offloading, to indicate a channel availability check
  70. * start.
  71. *
  72. * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_FINISHED: Event used by driver,
  73. * which supports DFS offloading, to indicate a channel availability check
  74. * completion.
  75. *
  76. * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_ABORTED: Event used by driver,
  77. * which supports DFS offloading, to indicate that the channel availability
  78. * check aborted, no change to the channel status.
  79. *
  80. * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_NOP_FINISHED: Event used by
  81. * driver, which supports DFS offloading, to indicate that the
  82. * Non-Occupancy Period for this channel is over, channel becomes usable.
  83. *
  84. * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_RADAR_DETECTED: Event used by driver,
  85. * which supports DFS offloading, to indicate a radar pattern has been
  86. * detected. The channel is now unusable.
  87. */
  88. enum qca_nl80211_vendor_subcmds {
  89. QCA_NL80211_VENDOR_SUBCMD_UNSPEC = 0,
  90. QCA_NL80211_VENDOR_SUBCMD_TEST = 1,
  91. /* subcmds 2..8 not yet allocated */
  92. QCA_NL80211_VENDOR_SUBCMD_ROAMING = 9,
  93. QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY = 10,
  94. QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY = 11,
  95. QCA_NL80211_VENDOR_SUBCMD_NAN = 12,
  96. QCA_NL80211_VENDOR_SUBMCD_STATS_EXT = 13,
  97. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_SET = 14,
  98. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET = 15,
  99. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_CLR = 16,
  100. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_RADIO_RESULTS = 17,
  101. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_IFACE_RESULTS = 18,
  102. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_PEERS_RESULTS = 19,
  103. QCA_NL80211_VENDOR_SUBCMD_GSCAN_START = 20,
  104. QCA_NL80211_VENDOR_SUBCMD_GSCAN_STOP = 21,
  105. QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_VALID_CHANNELS = 22,
  106. QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_CAPABILITIES = 23,
  107. QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_CACHED_RESULTS = 24,
  108. QCA_NL80211_VENDOR_SUBCMD_GSCAN_SCAN_RESULTS_AVAILABLE = 25,
  109. QCA_NL80211_VENDOR_SUBCMD_GSCAN_FULL_SCAN_RESULT = 26,
  110. QCA_NL80211_VENDOR_SUBCMD_GSCAN_SCAN_EVENT = 27,
  111. QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_AP_FOUND = 28,
  112. QCA_NL80211_VENDOR_SUBCMD_GSCAN_SET_BSSID_HOTLIST = 29,
  113. QCA_NL80211_VENDOR_SUBCMD_GSCAN_RESET_BSSID_HOTLIST = 30,
  114. QCA_NL80211_VENDOR_SUBCMD_GSCAN_SIGNIFICANT_CHANGE = 31,
  115. QCA_NL80211_VENDOR_SUBCMD_GSCAN_SET_SIGNIFICANT_CHANGE = 32,
  116. QCA_NL80211_VENDOR_SUBCMD_GSCAN_RESET_SIGNIFICANT_CHANGE = 33,
  117. QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE = 34,
  118. QCA_NL80211_VENDOR_SUBCMD_TDLS_DISABLE = 35,
  119. QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS = 36,
  120. QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE = 37,
  121. QCA_NL80211_VENDOR_SUBCMD_GET_SUPPORTED_FEATURES = 38,
  122. QCA_NL80211_VENDOR_SUBCMD_SCANNING_MAC_OUI = 39,
  123. QCA_NL80211_VENDOR_SUBCMD_NO_DFS_FLAG = 40,
  124. QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_AP_LOST = 41,
  125. QCA_NL80211_VENDOR_SUBCMD_GET_CONCURRENCY_MATRIX = 42,
  126. /* 43..49 - reserved for QCA */
  127. QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_SET_KEY = 50,
  128. QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_ROAM_AUTH = 51,
  129. QCA_NL80211_VENDOR_SUBCMD_APFIND = 52,
  130. /* 53 - reserved - was used by QCA, but not in use anymore */
  131. QCA_NL80211_VENDOR_SUBCMD_DO_ACS = 54,
  132. QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES = 55,
  133. QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_STARTED = 56,
  134. QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_FINISHED = 57,
  135. QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_ABORTED = 58,
  136. QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_NOP_FINISHED = 59,
  137. QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_RADAR_DETECTED = 60,
  138. /* 61-90 - reserved for QCA */
  139. QCA_NL80211_VENDOR_SUBCMD_DATA_OFFLOAD = 91,
  140. QCA_NL80211_VENDOR_SUBCMD_OCB_SET_CONFIG = 92,
  141. QCA_NL80211_VENDOR_SUBCMD_OCB_SET_UTC_TIME = 93,
  142. QCA_NL80211_VENDOR_SUBCMD_OCB_START_TIMING_ADVERT = 94,
  143. QCA_NL80211_VENDOR_SUBCMD_OCB_STOP_TIMING_ADVERT = 95,
  144. QCA_NL80211_VENDOR_SUBCMD_OCB_GET_TSF_TIMER = 96,
  145. QCA_NL80211_VENDOR_SUBCMD_DCC_GET_STATS = 97,
  146. QCA_NL80211_VENDOR_SUBCMD_DCC_CLEAR_STATS = 98,
  147. QCA_NL80211_VENDOR_SUBCMD_DCC_UPDATE_NDL = 99,
  148. QCA_NL80211_VENDOR_SUBCMD_DCC_STATS_EVENT = 100,
  149. QCA_NL80211_VENDOR_SUBCMD_LINK_PROPERTIES = 101,
  150. QCA_NL80211_VENDOR_SUBCMD_GW_PARAM_CONFIG = 102,
  151. QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST = 103,
  152. QCA_NL80211_VENDOR_SUBCMD_SET_PROBABLE_OPER_CHANNEL = 104,
  153. QCA_NL80211_VENDOR_SUBCMD_SETBAND = 105,
  154. QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN = 106,
  155. QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE = 107,
  156. QCA_NL80211_VENDOR_SUBCMD_OTA_TEST = 108,
  157. QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE = 109,
  158. /* 110..114 - reserved for QCA */
  159. };
  160. enum qca_wlan_vendor_attr {
  161. QCA_WLAN_VENDOR_ATTR_INVALID = 0,
  162. /* used by QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY */
  163. QCA_WLAN_VENDOR_ATTR_DFS = 1,
  164. /* used by QCA_NL80211_VENDOR_SUBCMD_NAN */
  165. QCA_WLAN_VENDOR_ATTR_NAN = 2,
  166. /* used by QCA_NL80211_VENDOR_SUBCMD_STATS_EXT */
  167. QCA_WLAN_VENDOR_ATTR_STATS_EXT = 3,
  168. /* used by QCA_NL80211_VENDOR_SUBCMD_STATS_EXT */
  169. QCA_WLAN_VENDOR_ATTR_IFINDEX = 4,
  170. /* used by QCA_NL80211_VENDOR_SUBCMD_ROAMING, u32 with values defined
  171. * by enum qca_roaming_policy. */
  172. QCA_WLAN_VENDOR_ATTR_ROAMING_POLICY = 5,
  173. QCA_WLAN_VENDOR_ATTR_MAC_ADDR = 6,
  174. /* used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES */
  175. QCA_WLAN_VENDOR_ATTR_FEATURE_FLAGS = 7,
  176. QCA_WLAN_VENDOR_ATTR_TEST = 8,
  177. /* used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES */
  178. /* Unsigned 32-bit value. */
  179. QCA_WLAN_VENDOR_ATTR_CONCURRENCY_CAPA = 9,
  180. /* Unsigned 32-bit value */
  181. QCA_WLAN_VENDOR_ATTR_MAX_CONCURRENT_CHANNELS_2_4_BAND = 10,
  182. /* Unsigned 32-bit value */
  183. QCA_WLAN_VENDOR_ATTR_MAX_CONCURRENT_CHANNELS_5_0_BAND = 11,
  184. /* Unsigned 32-bit value from enum qca_set_band. */
  185. QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE = 12,
  186. /* keep last */
  187. QCA_WLAN_VENDOR_ATTR_AFTER_LAST,
  188. QCA_WLAN_VENDOR_ATTR_MAX = QCA_WLAN_VENDOR_ATTR_AFTER_LAST - 1,
  189. };
  190. enum qca_roaming_policy {
  191. QCA_ROAMING_NOT_ALLOWED,
  192. QCA_ROAMING_ALLOWED_WITHIN_ESS,
  193. };
  194. enum qca_wlan_vendor_attr_roam_auth {
  195. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_INVALID = 0,
  196. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_BSSID,
  197. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REQ_IE,
  198. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RESP_IE,
  199. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AUTHORIZED,
  200. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_KEY_REPLAY_CTR,
  201. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KCK,
  202. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KEK,
  203. /* keep last */
  204. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AFTER_LAST,
  205. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_MAX =
  206. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AFTER_LAST - 1
  207. };
  208. enum qca_wlan_vendor_attr_acs_offload {
  209. QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_INVALID = 0,
  210. QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL,
  211. QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL,
  212. QCA_WLAN_VENDOR_ATTR_ACS_HW_MODE,
  213. QCA_WLAN_VENDOR_ATTR_ACS_HT_ENABLED,
  214. QCA_WLAN_VENDOR_ATTR_ACS_HT40_ENABLED,
  215. QCA_WLAN_VENDOR_ATTR_ACS_VHT_ENABLED,
  216. QCA_WLAN_VENDOR_ATTR_ACS_CHWIDTH,
  217. QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST,
  218. QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL,
  219. QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL,
  220. QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST,
  221. /* keep last */
  222. QCA_WLAN_VENDOR_ATTR_ACS_AFTER_LAST,
  223. QCA_WLAN_VENDOR_ATTR_ACS_MAX =
  224. QCA_WLAN_VENDOR_ATTR_ACS_AFTER_LAST - 1
  225. };
  226. enum qca_wlan_vendor_acs_hw_mode {
  227. QCA_ACS_MODE_IEEE80211B,
  228. QCA_ACS_MODE_IEEE80211G,
  229. QCA_ACS_MODE_IEEE80211A,
  230. QCA_ACS_MODE_IEEE80211AD,
  231. QCA_ACS_MODE_IEEE80211ANY,
  232. };
  233. /**
  234. * enum qca_wlan_vendor_features - Vendor device/driver feature flags
  235. *
  236. * @QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD: Device supports key
  237. * management offload, a mechanism where the station's firmware
  238. * does the exchange with the AP to establish the temporal keys
  239. * after roaming, rather than having the user space wpa_supplicant do it.
  240. * @QCA_WLAN_VENDOR_FEATURE_SUPPORT_HW_MODE_ANY: Device supports automatic
  241. * band selection based on channel selection results.
  242. * @QCA_WLAN_VENDOR_FEATURE_OFFCHANNEL_SIMULTANEOUS: Device supports
  243. * simultaneous off-channel operations.
  244. * @NUM_QCA_WLAN_VENDOR_FEATURES: Number of assigned feature bits
  245. */
  246. enum qca_wlan_vendor_features {
  247. QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD = 0,
  248. QCA_WLAN_VENDOR_FEATURE_SUPPORT_HW_MODE_ANY = 1,
  249. QCA_WLAN_VENDOR_FEATURE_OFFCHANNEL_SIMULTANEOUS = 2,
  250. NUM_QCA_WLAN_VENDOR_FEATURES /* keep last */
  251. };
  252. /**
  253. * enum qca_wlan_vendor_attr_data_offload_ind - Vendor Data Offload Indication
  254. *
  255. * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_SESSION: Session corresponding to
  256. * the offloaded data.
  257. * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_PROTOCOL: Protocol of the offloaded
  258. * data.
  259. * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_EVENT: Event type for the data offload
  260. * indication.
  261. */
  262. enum qca_wlan_vendor_attr_data_offload_ind {
  263. QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_INVALID = 0,
  264. QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_SESSION,
  265. QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_PROTOCOL,
  266. QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_EVENT,
  267. /* keep last */
  268. QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_AFTER_LAST,
  269. QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_MAX =
  270. QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_AFTER_LAST - 1
  271. };
  272. enum qca_vendor_attr_get_preferred_freq_list {
  273. QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_INVALID,
  274. /* A 32-unsigned value; the interface type/mode for which the preferred
  275. * frequency list is requested (see enum qca_iface_type for possible
  276. * values); used in GET_PREFERRED_FREQ_LIST command from user-space to
  277. * kernel and in the kernel response back to user-space.
  278. */
  279. QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_IFACE_TYPE,
  280. /* An array of 32-unsigned values; values are frequency (MHz); sent
  281. * from kernel space to user space.
  282. */
  283. QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST,
  284. /* keep last */
  285. QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST,
  286. QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_MAX =
  287. QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST - 1
  288. };
  289. enum qca_vendor_attr_probable_oper_channel {
  290. QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_INVALID,
  291. /* 32-bit unsigned value; indicates the connection/iface type likely to
  292. * come on this channel (see enum qca_iface_type).
  293. */
  294. QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_IFACE_TYPE,
  295. /* 32-bit unsigned value; the frequency (MHz) of the probable channel */
  296. QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_FREQ,
  297. /* keep last */
  298. QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST,
  299. QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_MAX =
  300. QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST - 1
  301. };
  302. enum qca_iface_type {
  303. QCA_IFACE_TYPE_STA,
  304. QCA_IFACE_TYPE_AP,
  305. QCA_IFACE_TYPE_P2P_CLIENT,
  306. QCA_IFACE_TYPE_P2P_GO,
  307. QCA_IFACE_TYPE_IBSS,
  308. QCA_IFACE_TYPE_TDLS,
  309. };
  310. enum qca_set_band {
  311. QCA_SETBAND_AUTO,
  312. QCA_SETBAND_5G,
  313. QCA_SETBAND_2G,
  314. };
  315. /* IEEE 802.11 Vendor Specific elements */
  316. /**
  317. * enum qca_vendor_element_id - QCA Vendor Specific element types
  318. *
  319. * These values are used to identify QCA Vendor Specific elements. The
  320. * payload of the element starts with the three octet OUI (OUI_QCA) and
  321. * is followed by a single octet type which is defined by this enum.
  322. *
  323. * @QCA_VENDOR_ELEM_P2P_PREF_CHAN_LIST: P2P preferred channel list.
  324. * This element can be used to specify preference order for supported
  325. * channels. The channels in this list are in preference order (the first
  326. * one has the highest preference) and are described as a pair of
  327. * (global) Operating Class and Channel Number (each one octet) fields.
  328. *
  329. * This extends the standard P2P functionality by providing option to have
  330. * more than one preferred operating channel. When this element is present,
  331. * it replaces the preference indicated in the Operating Channel attribute.
  332. * For supporting other implementations, the Operating Channel attribute is
  333. * expected to be used with the highest preference channel. Similarly, all
  334. * the channels included in this Preferred channel list element are
  335. * expected to be included in the Channel List attribute.
  336. *
  337. * This vendor element may be included in GO Negotiation Request, P2P
  338. * Invitation Request, and Provision Discovery Request frames.
  339. */
  340. enum qca_vendor_element_id {
  341. QCA_VENDOR_ELEM_P2P_PREF_CHAN_LIST = 0,
  342. };
  343. /**
  344. * enum qca_wlan_vendor_attr_scan - Specifies vendor scan attributes
  345. *
  346. * @QCA_WLAN_VENDOR_ATTR_SCAN_IE: IEs that should be included as part of scan
  347. * @QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES: Nested unsigned 32-bit attributes
  348. * with frequencies to be scanned (in MHz)
  349. * @QCA_WLAN_VENDOR_ATTR_SCAN_SSIDS: Nested attribute with SSIDs to be scanned
  350. * @QCA_WLAN_VENDOR_ATTR_SCAN_SUPP_RATES: Nested array attribute of supported
  351. * rates to be included
  352. * @QCA_WLAN_VENDOR_ATTR_SCAN_TX_NO_CCK_RATE: flag used to send probe requests
  353. * at non CCK rate in 2GHz band
  354. * @QCA_WLAN_VENDOR_ATTR_SCAN_FLAGS: Unsigned 32-bit scan flags
  355. * @QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE: Unsigned 64-bit cookie provided by the
  356. * driver for the specific scan request
  357. * @QCA_WLAN_VENDOR_ATTR_SCAN_STATUS: Unsigned 8-bit status of the scan
  358. * request decoded as in enum scan_status
  359. * @QCA_WLAN_VENDOR_ATTR_SCAN_MAC: 6-byte MAC address to use when randomisation
  360. * scan flag is set
  361. * @QCA_WLAN_VENDOR_ATTR_SCAN_MAC_MASK: 6-byte MAC address mask to be used with
  362. * randomisation
  363. */
  364. enum qca_wlan_vendor_attr_scan {
  365. QCA_WLAN_VENDOR_ATTR_SCAN_INVALID_PARAM = 0,
  366. QCA_WLAN_VENDOR_ATTR_SCAN_IE,
  367. QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES,
  368. QCA_WLAN_VENDOR_ATTR_SCAN_SSIDS,
  369. QCA_WLAN_VENDOR_ATTR_SCAN_SUPP_RATES,
  370. QCA_WLAN_VENDOR_ATTR_SCAN_TX_NO_CCK_RATE,
  371. QCA_WLAN_VENDOR_ATTR_SCAN_FLAGS,
  372. QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE,
  373. QCA_WLAN_VENDOR_ATTR_SCAN_STATUS,
  374. QCA_WLAN_VENDOR_ATTR_SCAN_MAC,
  375. QCA_WLAN_VENDOR_ATTR_SCAN_MAC_MASK,
  376. QCA_WLAN_VENDOR_ATTR_SCAN_AFTER_LAST,
  377. QCA_WLAN_VENDOR_ATTR_SCAN_MAX =
  378. QCA_WLAN_VENDOR_ATTR_SCAN_AFTER_LAST - 1
  379. };
  380. /**
  381. * enum scan_status - Specifies the valid values the vendor scan attribute
  382. * QCA_WLAN_VENDOR_ATTR_SCAN_STATUS can take
  383. *
  384. * @VENDOR_SCAN_STATUS_NEW_RESULTS: implies the vendor scan is successful with
  385. * new scan results
  386. * @VENDOR_SCAN_STATUS_ABORTED: implies the vendor scan was aborted in-between
  387. */
  388. enum scan_status {
  389. VENDOR_SCAN_STATUS_NEW_RESULTS,
  390. VENDOR_SCAN_STATUS_ABORTED,
  391. VENDOR_SCAN_STATUS_MAX,
  392. };
  393. /**
  394. * enum qca_vendor_attr_ota_test - Specifies the values for vendor
  395. * command QCA_NL80211_VENDOR_SUBCMD_OTA_TEST
  396. * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_ENABLE: enable ota test
  397. */
  398. enum qca_vendor_attr_ota_test {
  399. QCA_WLAN_VENDOR_ATTR_OTA_TEST_INVALID,
  400. /* 8-bit unsigned value to indicate if OTA test is enabled */
  401. QCA_WLAN_VENDOR_ATTR_OTA_TEST_ENABLE,
  402. /* keep last */
  403. QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST,
  404. QCA_WLAN_VENDOR_ATTR_OTA_TEST_MAX =
  405. QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST - 1
  406. };
  407. /**
  408. * enum qca_vendor_attr_txpower_scale - vendor sub commands index
  409. *
  410. * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE: scaling value
  411. */
  412. enum qca_vendor_attr_txpower_scale {
  413. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_INVALID,
  414. /* 8-bit unsigned value to indicate the scaling of tx power */
  415. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE,
  416. /* keep last */
  417. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST,
  418. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_MAX =
  419. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST - 1
  420. };
  421. #endif /* QCA_VENDOR_H */