1 /* 2 * Copyright (C) 2014 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 #ifndef __VENDOR_DEFINITIONS_H__ 18 #define __VENDOR_DEFINITIONS_H__ 19 20 #include "qca-vendor_copy.h" 21 22 enum qca_wlan_vendor_attr_tdls_enable 23 { 24 QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_INVALID = 0, 25 /* An array of 6 x Unsigned 8-bit value */ 26 QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR, 27 QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_CHANNEL, 28 QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_GLOBAL_OPERATING_CLASS, 29 QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX_LATENCY_MS, 30 QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MIN_BANDWIDTH_KBPS, 31 /* keep last */ 32 QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_AFTER_LAST, 33 QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX = 34 QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_AFTER_LAST - 1, 35 }; 36 37 enum qca_wlan_vendor_attr_tdls_disable 38 { 39 QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_INVALID = 0, 40 /* An array of 6 x Unsigned 8-bit value */ 41 QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAC_ADDR, 42 /* keep last */ 43 QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_AFTER_LAST, 44 QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAX = 45 QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_AFTER_LAST - 1, 46 }; 47 48 enum qca_wlan_vendor_attr_tdls_get_status 49 { 50 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_INVALID = 0, 51 /* An array of 6 x Unsigned 8-bit value */ 52 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR, 53 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_STATE, 54 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_REASON, 55 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_CHANNEL, 56 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_GLOBAL_OPERATING_CLASS, 57 /* keep last */ 58 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_AFTER_LAST, 59 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAX = 60 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_AFTER_LAST - 1, 61 }; 62 63 enum qca_wlan_vendor_attr_tdls_state 64 { 65 QCA_WLAN_VENDOR_ATTR_TDLS_STATE_INVALID = 0, 66 /* An array of 6 x Unsigned 8-bit value */ 67 QCA_WLAN_VENDOR_ATTR_TDLS_MAC_ADDR, 68 QCA_WLAN_VENDOR_ATTR_TDLS_STATE, 69 QCA_WLAN_VENDOR_ATTR_TDLS_REASON, 70 QCA_WLAN_VENDOR_ATTR_TDLS_CHANNEL, 71 QCA_WLAN_VENDOR_ATTR_TDLS_GLOBAL_OPERATING_CLASS, 72 /* keep last */ 73 QCA_WLAN_VENDOR_ATTR_TDLS_STATE_AFTER_LAST, 74 QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAX = 75 QCA_WLAN_VENDOR_ATTR_TDLS_STATE_AFTER_LAST - 1, 76 }; 77 78 enum qca_wlan_vendor_attr_get_supported_features 79 { 80 QCA_WLAN_VENDOR_ATTR_FEATURE_SET_INVALID = 0, 81 /* Unsigned 32-bit value */ 82 QCA_WLAN_VENDOR_ATTR_FEATURE_SET = 1, 83 /* keep last */ 84 QCA_WLAN_VENDOR_ATTR_FEATURE_SET_AFTER_LAST, 85 QCA_WLAN_VENDOR_ATTR_FEATURE_SET_MAX = 86 QCA_WLAN_VENDOR_ATTR_FEATURE_SET_AFTER_LAST - 1, 87 }; 88 89 enum qca_wlan_vendor_attr_set_scanning_mac_oui 90 { 91 QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_INVALID = 0, 92 /* An array of 3 x Unsigned 8-bit value */ 93 QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI = 1, 94 /* keep last */ 95 QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_AFTER_LAST, 96 QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_MAX = 97 QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_AFTER_LAST - 1, 98 }; 99 100 enum qca_wlan_vendor_attr_set_no_dfs_flag 101 { 102 QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_INVALID = 0, 103 /* Unsigned 32-bit value */ 104 QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG = 1, 105 /* keep last */ 106 QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_AFTER_LAST, 107 QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_MAX = 108 QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_AFTER_LAST - 1, 109 }; 110 111 /* NL attributes for data used by 112 * QCA_NL80211_VENDOR_SUBCMD_GET_CONCURRENCY_MATRIX sub command. 113 */ 114 enum qca_wlan_vendor_attr_get_concurrency_matrix 115 { 116 QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_INVALID = 0, 117 /* Unsigned 32-bit value */ 118 QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_CONFIG_PARAM_SET_SIZE_MAX = 1, 119 /* Unsigned 32-bit value */ 120 QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_RESULTS_SET_SIZE = 2, 121 /* An array of SET_SIZE x Unsigned 32bit values representing 122 * concurrency combinations. 123 */ 124 QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_RESULTS_SET = 3, 125 /* keep last */ 126 QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_AFTER_LAST, 127 QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_MAX = 128 QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_AFTER_LAST - 1, 129 }; 130 131 /* These are not used currently but we might need these in future */ 132 enum qca_wlan_epno_type 133 { 134 QCA_WLAN_EPNO, 135 QCA_WLAN_PNO 136 }; 137 138 enum qca_wlan_vendor_attr_ndp_cfg_security 139 { 140 /* Security info will be added when proposed in the specification */ 141 QCA_WLAN_VENDOR_ATTR_NDP_SECURITY_TYPE = 1, 142 143 }; 144 #endif 145