qca-vendor.h 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411
  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. };
  157. enum qca_wlan_vendor_attr {
  158. QCA_WLAN_VENDOR_ATTR_INVALID = 0,
  159. /* used by QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY */
  160. QCA_WLAN_VENDOR_ATTR_DFS = 1,
  161. /* used by QCA_NL80211_VENDOR_SUBCMD_NAN */
  162. QCA_WLAN_VENDOR_ATTR_NAN = 2,
  163. /* used by QCA_NL80211_VENDOR_SUBCMD_STATS_EXT */
  164. QCA_WLAN_VENDOR_ATTR_STATS_EXT = 3,
  165. /* used by QCA_NL80211_VENDOR_SUBCMD_STATS_EXT */
  166. QCA_WLAN_VENDOR_ATTR_IFINDEX = 4,
  167. /* used by QCA_NL80211_VENDOR_SUBCMD_ROAMING, u32 with values defined
  168. * by enum qca_roaming_policy. */
  169. QCA_WLAN_VENDOR_ATTR_ROAMING_POLICY = 5,
  170. QCA_WLAN_VENDOR_ATTR_MAC_ADDR = 6,
  171. /* used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES */
  172. QCA_WLAN_VENDOR_ATTR_FEATURE_FLAGS = 7,
  173. QCA_WLAN_VENDOR_ATTR_TEST = 8,
  174. /* used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES */
  175. /* Unsigned 32-bit value. */
  176. QCA_WLAN_VENDOR_ATTR_CONCURRENCY_CAPA = 9,
  177. /* Unsigned 32-bit value */
  178. QCA_WLAN_VENDOR_ATTR_MAX_CONCURRENT_CHANNELS_2_4_BAND = 10,
  179. /* Unsigned 32-bit value */
  180. QCA_WLAN_VENDOR_ATTR_MAX_CONCURRENT_CHANNELS_5_0_BAND = 11,
  181. /* Unsigned 32-bit value from enum qca_set_band. */
  182. QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE = 12,
  183. /* keep last */
  184. QCA_WLAN_VENDOR_ATTR_AFTER_LAST,
  185. QCA_WLAN_VENDOR_ATTR_MAX = QCA_WLAN_VENDOR_ATTR_AFTER_LAST - 1,
  186. };
  187. enum qca_roaming_policy {
  188. QCA_ROAMING_NOT_ALLOWED,
  189. QCA_ROAMING_ALLOWED_WITHIN_ESS,
  190. };
  191. enum qca_wlan_vendor_attr_roam_auth {
  192. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_INVALID = 0,
  193. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_BSSID,
  194. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REQ_IE,
  195. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RESP_IE,
  196. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AUTHORIZED,
  197. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_KEY_REPLAY_CTR,
  198. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KCK,
  199. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KEK,
  200. /* keep last */
  201. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AFTER_LAST,
  202. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_MAX =
  203. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AFTER_LAST - 1
  204. };
  205. enum qca_wlan_vendor_attr_acs_offload {
  206. QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_INVALID = 0,
  207. QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL,
  208. QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL,
  209. QCA_WLAN_VENDOR_ATTR_ACS_HW_MODE,
  210. QCA_WLAN_VENDOR_ATTR_ACS_HT_ENABLED,
  211. QCA_WLAN_VENDOR_ATTR_ACS_HT40_ENABLED,
  212. QCA_WLAN_VENDOR_ATTR_ACS_VHT_ENABLED,
  213. QCA_WLAN_VENDOR_ATTR_ACS_CHWIDTH,
  214. QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST,
  215. QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL,
  216. QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL,
  217. QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST,
  218. /* keep last */
  219. QCA_WLAN_VENDOR_ATTR_ACS_AFTER_LAST,
  220. QCA_WLAN_VENDOR_ATTR_ACS_MAX =
  221. QCA_WLAN_VENDOR_ATTR_ACS_AFTER_LAST - 1
  222. };
  223. enum qca_wlan_vendor_acs_hw_mode {
  224. QCA_ACS_MODE_IEEE80211B,
  225. QCA_ACS_MODE_IEEE80211G,
  226. QCA_ACS_MODE_IEEE80211A,
  227. QCA_ACS_MODE_IEEE80211AD,
  228. QCA_ACS_MODE_IEEE80211ANY,
  229. };
  230. /**
  231. * enum qca_wlan_vendor_features - Vendor device/driver feature flags
  232. *
  233. * @QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD: Device supports key
  234. * management offload, a mechanism where the station's firmware
  235. * does the exchange with the AP to establish the temporal keys
  236. * after roaming, rather than having the user space wpa_supplicant do it.
  237. * @QCA_WLAN_VENDOR_FEATURE_SUPPORT_HW_MODE_ANY: Device supports automatic
  238. * band selection based on channel selection results.
  239. * @NUM_QCA_WLAN_VENDOR_FEATURES: Number of assigned feature bits
  240. */
  241. enum qca_wlan_vendor_features {
  242. QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD = 0,
  243. QCA_WLAN_VENDOR_FEATURE_SUPPORT_HW_MODE_ANY = 1,
  244. NUM_QCA_WLAN_VENDOR_FEATURES /* keep last */
  245. };
  246. /**
  247. * enum qca_wlan_vendor_attr_data_offload_ind - Vendor Data Offload Indication
  248. *
  249. * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_SESSION: Session corresponding to
  250. * the offloaded data.
  251. * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_PROTOCOL: Protocol of the offloaded
  252. * data.
  253. * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_EVENT: Event type for the data offload
  254. * indication.
  255. */
  256. enum qca_wlan_vendor_attr_data_offload_ind {
  257. QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_INVALID = 0,
  258. QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_SESSION,
  259. QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_PROTOCOL,
  260. QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_EVENT,
  261. /* keep last */
  262. QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_AFTER_LAST,
  263. QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_MAX =
  264. QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_AFTER_LAST - 1
  265. };
  266. enum qca_vendor_attr_get_preferred_freq_list {
  267. QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_INVALID,
  268. /* A 32-unsigned value; the interface type/mode for which the preferred
  269. * frequency list is requested (see enum qca_iface_type for possible
  270. * values); used in GET_PREFERRED_FREQ_LIST command from user-space to
  271. * kernel and in the kernel response back to user-space.
  272. */
  273. QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_IFACE_TYPE,
  274. /* An array of 32-unsigned values; values are frequency (MHz); sent
  275. * from kernel space to user space.
  276. */
  277. QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST,
  278. /* keep last */
  279. QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST,
  280. QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_MAX =
  281. QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST - 1
  282. };
  283. enum qca_vendor_attr_probable_oper_channel {
  284. QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_INVALID,
  285. /* 32-bit unsigned value; indicates the connection/iface type likely to
  286. * come on this channel (see enum qca_iface_type).
  287. */
  288. QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_IFACE_TYPE,
  289. /* 32-bit unsigned value; the frequency (MHz) of the probable channel */
  290. QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_FREQ,
  291. /* keep last */
  292. QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST,
  293. QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_MAX =
  294. QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST - 1
  295. };
  296. enum qca_iface_type {
  297. QCA_IFACE_TYPE_STA,
  298. QCA_IFACE_TYPE_AP,
  299. QCA_IFACE_TYPE_P2P_CLIENT,
  300. QCA_IFACE_TYPE_P2P_GO,
  301. QCA_IFACE_TYPE_IBSS,
  302. QCA_IFACE_TYPE_TDLS,
  303. };
  304. enum qca_set_band {
  305. QCA_SETBAND_AUTO,
  306. QCA_SETBAND_5G,
  307. QCA_SETBAND_2G,
  308. };
  309. /* IEEE 802.11 Vendor Specific elements */
  310. /**
  311. * enum qca_vendor_element_id - QCA Vendor Specific element types
  312. *
  313. * These values are used to identify QCA Vendor Specific elements. The
  314. * payload of the element starts with the three octet OUI (OUI_QCA) and
  315. * is followed by a single octet type which is defined by this enum.
  316. *
  317. * @QCA_VENDOR_ELEM_P2P_PREF_CHAN_LIST: P2P preferred channel list.
  318. * This element can be used to specify preference order for supported
  319. * channels. The channels in this list are in preference order (the first
  320. * one has the highest preference) and are described as a pair of
  321. * (global) Operating Class and Channel Number (each one octet) fields.
  322. *
  323. * This extends the standard P2P functionality by providing option to have
  324. * more than one preferred operating channel. When this element is present,
  325. * it replaces the preference indicated in the Operating Channel attribute.
  326. * For supporting other implementations, the Operating Channel attribute is
  327. * expected to be used with the highest preference channel. Similarly, all
  328. * the channels included in this Preferred channel list element are
  329. * expected to be included in the Channel List attribute.
  330. *
  331. * This vendor element may be included in GO Negotiation Request, P2P
  332. * Invitation Request, and Provision Discovery Request frames.
  333. */
  334. enum qca_vendor_element_id {
  335. QCA_VENDOR_ELEM_P2P_PREF_CHAN_LIST = 0,
  336. };
  337. /**
  338. * enum qca_wlan_vendor_attr_scan - Specifies vendor scan attributes
  339. *
  340. * @QCA_WLAN_VENDOR_ATTR_SCAN_IE: IEs that should be included as part of scan
  341. * @QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES: Nested unsigned 32-bit attributes
  342. * with frequencies to be scanned (in MHz)
  343. * @QCA_WLAN_VENDOR_ATTR_SCAN_SSIDS: Nested attribute with SSIDs to be scanned
  344. * @QCA_WLAN_VENDOR_ATTR_SCAN_SUPP_RATES: Nested array attribute of supported
  345. * rates to be included
  346. * @QCA_WLAN_VENDOR_ATTR_SCAN_TX_NO_CCK_RATE: flag used to send probe requests
  347. * at non CCK rate in 2GHz band
  348. * @QCA_WLAN_VENDOR_ATTR_SCAN_FLAGS: Unsigned 32-bit scan flags
  349. * @QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE: Unsigned 64-bit cookie provided by the
  350. * driver for the specific scan request
  351. * @QCA_WLAN_VENDOR_ATTR_SCAN_STATUS: Unsigned 8-bit status of the scan
  352. * request decoded as in enum scan_status
  353. * @QCA_WLAN_VENDOR_ATTR_SCAN_MAC: 6-byte MAC address to use when randomisation
  354. * scan flag is set
  355. * @QCA_WLAN_VENDOR_ATTR_SCAN_MAC_MASK: 6-byte MAC address mask to be used with
  356. * randomisation
  357. */
  358. enum qca_wlan_vendor_attr_scan {
  359. QCA_WLAN_VENDOR_ATTR_SCAN_INVALID_PARAM = 0,
  360. QCA_WLAN_VENDOR_ATTR_SCAN_IE,
  361. QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES,
  362. QCA_WLAN_VENDOR_ATTR_SCAN_SSIDS,
  363. QCA_WLAN_VENDOR_ATTR_SCAN_SUPP_RATES,
  364. QCA_WLAN_VENDOR_ATTR_SCAN_TX_NO_CCK_RATE,
  365. QCA_WLAN_VENDOR_ATTR_SCAN_FLAGS,
  366. QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE,
  367. QCA_WLAN_VENDOR_ATTR_SCAN_STATUS,
  368. QCA_WLAN_VENDOR_ATTR_SCAN_MAC,
  369. QCA_WLAN_VENDOR_ATTR_SCAN_MAC_MASK,
  370. QCA_WLAN_VENDOR_ATTR_SCAN_AFTER_LAST,
  371. QCA_WLAN_VENDOR_ATTR_SCAN_MAX =
  372. QCA_WLAN_VENDOR_ATTR_SCAN_AFTER_LAST - 1
  373. };
  374. /**
  375. * enum scan_status - Specifies the valid values the vendor scan attribute
  376. * QCA_WLAN_VENDOR_ATTR_SCAN_STATUS can take
  377. *
  378. * @VENDOR_SCAN_STATUS_NEW_RESULTS: implies the vendor scan is successful with
  379. * new scan results
  380. * @VENDOR_SCAN_STATUS_ABORTED: implies the vendor scan was aborted in-between
  381. */
  382. enum scan_status {
  383. VENDOR_SCAN_STATUS_NEW_RESULTS,
  384. VENDOR_SCAN_STATUS_ABORTED,
  385. VENDOR_SCAN_STATUS_MAX,
  386. };
  387. #endif /* QCA_VENDOR_H */