Dmitry Shmidt | cf32e60 | 2014-01-28 10:57:39 -0800 | [diff] [blame] | 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 | |
| 9 | #ifndef QCA_VENDOR_H |
| 10 | #define QCA_VENDOR_H |
| 11 | |
| 12 | /* |
| 13 | * This file is a registry of identifier assignments from the Qualcomm Atheros |
| 14 | * OUI 00:13:74 for purposes other than MAC address assignment. New identifiers |
| 15 | * can be assigned through normal review process for changes to the upstream |
| 16 | * hostap.git repository. |
| 17 | */ |
| 18 | |
| 19 | #define OUI_QCA 0x001374 |
| 20 | |
| 21 | /** |
| 22 | * enum qca_nl80211_vendor_subcmds - QCA nl80211 vendor command identifiers |
| 23 | * |
| 24 | * @QCA_NL80211_VENDOR_SUBCMD_UNSPEC: Reserved value 0 |
| 25 | * |
| 26 | * @QCA_NL80211_VENDOR_SUBCMD_TEST: Test command/event |
| 27 | * |
| 28 | * @QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY: Recommendation of frequency |
| 29 | * ranges to avoid to reduce issues due to interference or internal |
| 30 | * co-existence information in the driver. The event data structure is |
| 31 | * defined in struct qca_avoid_freq_list. |
Dmitry Shmidt | d11f019 | 2014-03-24 12:09:47 -0700 | [diff] [blame^] | 32 | * |
| 33 | * @QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY: Command to check driver support |
| 34 | * for DFS offloading. |
Dmitry Shmidt | cf32e60 | 2014-01-28 10:57:39 -0800 | [diff] [blame] | 35 | */ |
| 36 | enum qca_nl80211_vendor_subcmds { |
| 37 | QCA_NL80211_VENDOR_SUBCMD_UNSPEC = 0, |
| 38 | QCA_NL80211_VENDOR_SUBCMD_TEST = 1, |
| 39 | /* subcmds 2..9 not yet allocated */ |
| 40 | QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY = 10, |
Dmitry Shmidt | d11f019 | 2014-03-24 12:09:47 -0700 | [diff] [blame^] | 41 | QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY = 11, |
Dmitry Shmidt | cf32e60 | 2014-01-28 10:57:39 -0800 | [diff] [blame] | 42 | }; |
| 43 | |
| 44 | |
| 45 | struct qca_avoid_freq_range { |
| 46 | u32 start_freq; |
| 47 | u32 end_freq; |
| 48 | } STRUCT_PACKED; |
| 49 | |
| 50 | struct qca_avoid_freq_list { |
| 51 | u32 count; |
| 52 | struct qca_avoid_freq_range range[0]; |
| 53 | } STRUCT_PACKED; |
| 54 | |
Dmitry Shmidt | d11f019 | 2014-03-24 12:09:47 -0700 | [diff] [blame^] | 55 | enum qca_wlan_vendor_attr { |
| 56 | QCA_WLAN_VENDOR_ATTR_INVALID = 0, |
| 57 | /* used by QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY */ |
| 58 | QCA_WLAN_VENDOR_ATTR_DFS = 1, |
| 59 | /* keep last */ |
| 60 | QCA_WLAN_VENDOR_ATTR_AFTER_LAST, |
| 61 | QCA_WLAN_VENDOR_ATTR_MAX = QCA_WLAN_VENDOR_ATTR_AFTER_LAST - 1, |
| 62 | }; |
| 63 | |
Dmitry Shmidt | cf32e60 | 2014-01-28 10:57:39 -0800 | [diff] [blame] | 64 | #endif /* QCA_VENDOR_H */ |