qca-vendor.h 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. /*
  2. * Qualcomm Atheros OUI and vendor specific assignments
  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 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. enum qca_nl80211_vendor_subcmds {
  50. QCA_NL80211_VENDOR_SUBCMD_UNSPEC = 0,
  51. QCA_NL80211_VENDOR_SUBCMD_TEST = 1,
  52. /* subcmds 2..8 not yet allocated */
  53. QCA_NL80211_VENDOR_SUBCMD_ROAMING = 9,
  54. QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY = 10,
  55. QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY = 11,
  56. QCA_NL80211_VENDOR_SUBCMD_NAN = 12,
  57. QCA_NL80211_VENDOR_SUBMCD_STATS_EXT = 13,
  58. /* 14..49 - reserved for QCA */
  59. };
  60. enum qca_wlan_vendor_attr {
  61. QCA_WLAN_VENDOR_ATTR_INVALID = 0,
  62. /* used by QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY */
  63. QCA_WLAN_VENDOR_ATTR_DFS = 1,
  64. /* used by QCA_NL80211_VENDOR_SUBCMD_NAN */
  65. QCA_WLAN_VENDOR_ATTR_NAN = 2,
  66. /* used by QCA_NL80211_VENDOR_SUBCMD_STATS_EXT */
  67. QCA_WLAN_VENDOR_ATTR_STATS_EXT = 3,
  68. /* used by QCA_NL80211_VENDOR_SUBCMD_STATS_EXT */
  69. QCA_WLAN_VENDOR_ATTR_IFINDEX = 4,
  70. /* used by QCA_NL80211_VENDOR_SUBCMD_ROAMING, u32 with values defined
  71. * by enum qca_roaming_policy. */
  72. QCA_WLAN_VENDOR_ATTR_ROAMING_POLICY = 5,
  73. QCA_WLAN_VENDOR_ATTR_MAC_ADDR = 6,
  74. /* keep last */
  75. QCA_WLAN_VENDOR_ATTR_AFTER_LAST,
  76. QCA_WLAN_VENDOR_ATTR_MAX = QCA_WLAN_VENDOR_ATTR_AFTER_LAST - 1,
  77. };
  78. enum qca_roaming_policy {
  79. QCA_ROAMING_NOT_ALLOWED,
  80. QCA_ROAMING_ALLOWED_WITHIN_ESS,
  81. };
  82. #endif /* QCA_VENDOR_H */