blob: 80bad4f899bdf1acd54993083d645f42f2030d02 [file] [log] [blame]
Dmitry Shmidtcf32e602014-01-28 10:57:39 -08001/*
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 Shmidtd11f0192014-03-24 12:09:47 -070032 *
33 * @QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY: Command to check driver support
34 * for DFS offloading.
Dmitry Shmidtcf32e602014-01-28 10:57:39 -080035 */
36enum 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 Shmidtd11f0192014-03-24 12:09:47 -070041 QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY = 11,
Dmitry Shmidtcf32e602014-01-28 10:57:39 -080042};
43
44
45struct qca_avoid_freq_range {
46 u32 start_freq;
47 u32 end_freq;
48} STRUCT_PACKED;
49
50struct qca_avoid_freq_list {
51 u32 count;
52 struct qca_avoid_freq_range range[0];
53} STRUCT_PACKED;
54
Dmitry Shmidtd11f0192014-03-24 12:09:47 -070055enum 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 Shmidtcf32e602014-01-28 10:57:39 -080064#endif /* QCA_VENDOR_H */