Johannes Berg | 704232c | 2007-04-23 12:20:05 -0700 | [diff] [blame] | 1 | #ifndef __LINUX_NL80211_H |
| 2 | #define __LINUX_NL80211_H |
| 3 | /* |
| 4 | * 802.11 netlink interface public header |
| 5 | * |
| 6 | * Copyright 2006, 2007 Johannes Berg <johannes@sipsolutions.net> |
| 7 | */ |
| 8 | |
| 9 | /** |
Johannes Berg | 5727ef1 | 2007-12-19 02:03:34 +0100 | [diff] [blame] | 10 | * DOC: Station handling |
| 11 | * |
| 12 | * Stations are added per interface, but a special case exists with VLAN |
| 13 | * interfaces. When a station is bound to an AP interface, it may be moved |
| 14 | * into a VLAN identified by a VLAN interface index (%NL80211_ATTR_STA_VLAN). |
| 15 | * The station is still assumed to belong to the AP interface it was added |
| 16 | * to. |
| 17 | * |
| 18 | * TODO: need more info? |
| 19 | */ |
| 20 | |
| 21 | /** |
Johannes Berg | 5568296 | 2007-09-20 13:09:35 -0400 | [diff] [blame] | 22 | * enum nl80211_commands - supported nl80211 commands |
| 23 | * |
| 24 | * @NL80211_CMD_UNSPEC: unspecified command to catch errors |
| 25 | * |
| 26 | * @NL80211_CMD_GET_WIPHY: request information about a wiphy or dump request |
| 27 | * to get a list of all present wiphys. |
Jouni Malinen | 3188848 | 2008-10-30 16:59:24 +0200 | [diff] [blame^] | 28 | * @NL80211_CMD_SET_WIPHY: set wiphy parameters, needs %NL80211_ATTR_WIPHY or |
| 29 | * %NL80211_ATTR_IFINDEX; can be used to set %NL80211_ATTR_WIPHY_NAME |
| 30 | * and/or %NL80211_ATTR_WIPHY_TXQ_PARAMS. |
Johannes Berg | 5568296 | 2007-09-20 13:09:35 -0400 | [diff] [blame] | 31 | * @NL80211_CMD_NEW_WIPHY: Newly created wiphy, response to get request |
| 32 | * or rename notification. Has attributes %NL80211_ATTR_WIPHY and |
| 33 | * %NL80211_ATTR_WIPHY_NAME. |
| 34 | * @NL80211_CMD_DEL_WIPHY: Wiphy deleted. Has attributes |
| 35 | * %NL80211_ATTR_WIPHY and %NL80211_ATTR_WIPHY_NAME. |
| 36 | * |
| 37 | * @NL80211_CMD_GET_INTERFACE: Request an interface's configuration; |
| 38 | * either a dump request on a %NL80211_ATTR_WIPHY or a specific get |
| 39 | * on an %NL80211_ATTR_IFINDEX is supported. |
| 40 | * @NL80211_CMD_SET_INTERFACE: Set type of a virtual interface, requires |
| 41 | * %NL80211_ATTR_IFINDEX and %NL80211_ATTR_IFTYPE. |
| 42 | * @NL80211_CMD_NEW_INTERFACE: Newly created virtual interface or response |
| 43 | * to %NL80211_CMD_GET_INTERFACE. Has %NL80211_ATTR_IFINDEX, |
| 44 | * %NL80211_ATTR_WIPHY and %NL80211_ATTR_IFTYPE attributes. Can also |
| 45 | * be sent from userspace to request creation of a new virtual interface, |
| 46 | * then requires attributes %NL80211_ATTR_WIPHY, %NL80211_ATTR_IFTYPE and |
| 47 | * %NL80211_ATTR_IFNAME. |
| 48 | * @NL80211_CMD_DEL_INTERFACE: Virtual interface was deleted, has attributes |
| 49 | * %NL80211_ATTR_IFINDEX and %NL80211_ATTR_WIPHY. Can also be sent from |
| 50 | * userspace to request deletion of a virtual interface, then requires |
| 51 | * attribute %NL80211_ATTR_IFINDEX. |
| 52 | * |
Johannes Berg | 41ade00 | 2007-12-19 02:03:29 +0100 | [diff] [blame] | 53 | * @NL80211_CMD_GET_KEY: Get sequence counter information for a key specified |
| 54 | * by %NL80211_ATTR_KEY_IDX and/or %NL80211_ATTR_MAC. |
| 55 | * @NL80211_CMD_SET_KEY: Set key attributes %NL80211_ATTR_KEY_DEFAULT or |
| 56 | * %NL80211_ATTR_KEY_THRESHOLD. |
| 57 | * @NL80211_CMD_NEW_KEY: add a key with given %NL80211_ATTR_KEY_DATA, |
| 58 | * %NL80211_ATTR_KEY_IDX, %NL80211_ATTR_MAC and %NL80211_ATTR_KEY_CIPHER |
| 59 | * attributes. |
| 60 | * @NL80211_CMD_DEL_KEY: delete a key identified by %NL80211_ATTR_KEY_IDX |
| 61 | * or %NL80211_ATTR_MAC. |
| 62 | * |
Johannes Berg | ed1b6cc | 2007-12-19 02:03:32 +0100 | [diff] [blame] | 63 | * @NL80211_CMD_GET_BEACON: retrieve beacon information (returned in a |
| 64 | * %NL80222_CMD_NEW_BEACON message) |
| 65 | * @NL80211_CMD_SET_BEACON: set the beacon on an access point interface |
| 66 | * using the %NL80211_ATTR_BEACON_INTERVAL, %NL80211_ATTR_DTIM_PERIOD, |
| 67 | * %NL80211_BEACON_HEAD and %NL80211_BEACON_TAIL attributes. |
| 68 | * @NL80211_CMD_NEW_BEACON: add a new beacon to an access point interface, |
| 69 | * parameters are like for %NL80211_CMD_SET_BEACON. |
| 70 | * @NL80211_CMD_DEL_BEACON: remove the beacon, stop sending it |
| 71 | * |
Johannes Berg | 5727ef1 | 2007-12-19 02:03:34 +0100 | [diff] [blame] | 72 | * @NL80211_CMD_GET_STATION: Get station attributes for station identified by |
| 73 | * %NL80211_ATTR_MAC on the interface identified by %NL80211_ATTR_IFINDEX. |
| 74 | * @NL80211_CMD_SET_STATION: Set station attributes for station identified by |
| 75 | * %NL80211_ATTR_MAC on the interface identified by %NL80211_ATTR_IFINDEX. |
| 76 | * @NL80211_CMD_NEW_STATION: Add a station with given attributes to the |
| 77 | * the interface identified by %NL80211_ATTR_IFINDEX. |
| 78 | * @NL80211_CMD_DEL_STATION: Remove a station identified by %NL80211_ATTR_MAC |
| 79 | * or, if no MAC address given, all stations, on the interface identified |
| 80 | * by %NL80211_ATTR_IFINDEX. |
| 81 | * |
Luis Carlos Cobo | 2ec600d | 2008-02-23 15:17:06 +0100 | [diff] [blame] | 82 | * @NL80211_CMD_GET_MPATH: Get mesh path attributes for mesh path to |
| 83 | * destination %NL80211_ATTR_MAC on the interface identified by |
| 84 | * %NL80211_ATTR_IFINDEX. |
| 85 | * @NL80211_CMD_SET_MPATH: Set mesh path attributes for mesh path to |
| 86 | * destination %NL80211_ATTR_MAC on the interface identified by |
| 87 | * %NL80211_ATTR_IFINDEX. |
| 88 | * @NL80211_CMD_NEW_PATH: Add a mesh path with given attributes to the |
| 89 | * the interface identified by %NL80211_ATTR_IFINDEX. |
| 90 | * @NL80211_CMD_DEL_PATH: Remove a mesh path identified by %NL80211_ATTR_MAC |
| 91 | * or, if no MAC address given, all mesh paths, on the interface identified |
| 92 | * by %NL80211_ATTR_IFINDEX. |
Jouni Malinen | 9f1ba90 | 2008-08-07 20:07:01 +0300 | [diff] [blame] | 93 | * @NL80211_CMD_SET_BSS: Set BSS attributes for BSS identified by |
| 94 | * %NL80211_ATTR_IFINDEX. |
Luis Carlos Cobo | 2ec600d | 2008-02-23 15:17:06 +0100 | [diff] [blame] | 95 | * |
Luis R. Rodriguez | b2e1b30 | 2008-09-09 23:19:48 -0700 | [diff] [blame] | 96 | * @NL80211_CMD_SET_REG: Set current regulatory domain. CRDA sends this command |
| 97 | * after being queried by the kernel. CRDA replies by sending a regulatory |
| 98 | * domain structure which consists of %NL80211_ATTR_REG_ALPHA set to our |
| 99 | * current alpha2 if it found a match. It also provides |
| 100 | * NL80211_ATTR_REG_RULE_FLAGS, and a set of regulatory rules. Each |
| 101 | * regulatory rule is a nested set of attributes given by |
| 102 | * %NL80211_ATTR_REG_RULE_FREQ_[START|END] and |
| 103 | * %NL80211_ATTR_FREQ_RANGE_MAX_BW with an attached power rule given by |
| 104 | * %NL80211_ATTR_REG_RULE_POWER_MAX_ANT_GAIN and |
| 105 | * %NL80211_ATTR_REG_RULE_POWER_MAX_EIRP. |
| 106 | * @NL80211_CMD_REQ_SET_REG: ask the wireless core to set the regulatory domain |
| 107 | * to the the specified ISO/IEC 3166-1 alpha2 country code. The core will |
| 108 | * store this as a valid request and then query userspace for it. |
| 109 | * |
colin@cozybit.com | 93da9cc | 2008-10-21 12:03:48 -0700 | [diff] [blame] | 110 | * @NL80211_CMD_GET_MESH_PARAMS: Get mesh networking properties for the |
| 111 | * interface identified by %NL80211_ATTR_IFINDEX |
| 112 | * |
| 113 | * @NL80211_CMD_SET_MESH_PARAMS: Set mesh networking properties for the |
| 114 | * interface identified by %NL80211_ATTR_IFINDEX |
| 115 | * |
Johannes Berg | 5568296 | 2007-09-20 13:09:35 -0400 | [diff] [blame] | 116 | * @NL80211_CMD_MAX: highest used command number |
| 117 | * @__NL80211_CMD_AFTER_LAST: internal use |
| 118 | */ |
| 119 | enum nl80211_commands { |
| 120 | /* don't change the order or add anything inbetween, this is ABI! */ |
| 121 | NL80211_CMD_UNSPEC, |
| 122 | |
| 123 | NL80211_CMD_GET_WIPHY, /* can dump */ |
| 124 | NL80211_CMD_SET_WIPHY, |
| 125 | NL80211_CMD_NEW_WIPHY, |
| 126 | NL80211_CMD_DEL_WIPHY, |
| 127 | |
| 128 | NL80211_CMD_GET_INTERFACE, /* can dump */ |
| 129 | NL80211_CMD_SET_INTERFACE, |
| 130 | NL80211_CMD_NEW_INTERFACE, |
| 131 | NL80211_CMD_DEL_INTERFACE, |
| 132 | |
Johannes Berg | 41ade00 | 2007-12-19 02:03:29 +0100 | [diff] [blame] | 133 | NL80211_CMD_GET_KEY, |
| 134 | NL80211_CMD_SET_KEY, |
| 135 | NL80211_CMD_NEW_KEY, |
| 136 | NL80211_CMD_DEL_KEY, |
| 137 | |
Johannes Berg | ed1b6cc | 2007-12-19 02:03:32 +0100 | [diff] [blame] | 138 | NL80211_CMD_GET_BEACON, |
| 139 | NL80211_CMD_SET_BEACON, |
| 140 | NL80211_CMD_NEW_BEACON, |
| 141 | NL80211_CMD_DEL_BEACON, |
| 142 | |
Johannes Berg | 5727ef1 | 2007-12-19 02:03:34 +0100 | [diff] [blame] | 143 | NL80211_CMD_GET_STATION, |
| 144 | NL80211_CMD_SET_STATION, |
| 145 | NL80211_CMD_NEW_STATION, |
| 146 | NL80211_CMD_DEL_STATION, |
| 147 | |
Luis Carlos Cobo | 2ec600d | 2008-02-23 15:17:06 +0100 | [diff] [blame] | 148 | NL80211_CMD_GET_MPATH, |
| 149 | NL80211_CMD_SET_MPATH, |
| 150 | NL80211_CMD_NEW_MPATH, |
| 151 | NL80211_CMD_DEL_MPATH, |
| 152 | |
Jouni Malinen | 9f1ba90 | 2008-08-07 20:07:01 +0300 | [diff] [blame] | 153 | NL80211_CMD_SET_BSS, |
| 154 | |
Luis R. Rodriguez | b2e1b30 | 2008-09-09 23:19:48 -0700 | [diff] [blame] | 155 | NL80211_CMD_SET_REG, |
| 156 | NL80211_CMD_REQ_SET_REG, |
| 157 | |
colin@cozybit.com | 93da9cc | 2008-10-21 12:03:48 -0700 | [diff] [blame] | 158 | NL80211_CMD_GET_MESH_PARAMS, |
| 159 | NL80211_CMD_SET_MESH_PARAMS, |
| 160 | |
Luis R. Rodriguez | b2e1b30 | 2008-09-09 23:19:48 -0700 | [diff] [blame] | 161 | /* add new commands above here */ |
Michael Buesch | 564d9bd | 2008-06-10 14:04:14 +0200 | [diff] [blame] | 162 | |
Johannes Berg | 5568296 | 2007-09-20 13:09:35 -0400 | [diff] [blame] | 163 | /* used to define NL80211_CMD_MAX below */ |
| 164 | __NL80211_CMD_AFTER_LAST, |
| 165 | NL80211_CMD_MAX = __NL80211_CMD_AFTER_LAST - 1 |
| 166 | }; |
| 167 | |
Jouni Malinen | 9f1ba90 | 2008-08-07 20:07:01 +0300 | [diff] [blame] | 168 | /* |
| 169 | * Allow user space programs to use #ifdef on new commands by defining them |
| 170 | * here |
| 171 | */ |
| 172 | #define NL80211_CMD_SET_BSS NL80211_CMD_SET_BSS |
Johannes Berg | 5568296 | 2007-09-20 13:09:35 -0400 | [diff] [blame] | 173 | |
| 174 | /** |
| 175 | * enum nl80211_attrs - nl80211 netlink attributes |
| 176 | * |
| 177 | * @NL80211_ATTR_UNSPEC: unspecified attribute to catch errors |
| 178 | * |
| 179 | * @NL80211_ATTR_WIPHY: index of wiphy to operate on, cf. |
| 180 | * /sys/class/ieee80211/<phyname>/index |
| 181 | * @NL80211_ATTR_WIPHY_NAME: wiphy name (used for renaming) |
Jouni Malinen | 3188848 | 2008-10-30 16:59:24 +0200 | [diff] [blame^] | 182 | * @NL80211_ATTR_WIPHY_TXQ_PARAMS: a nested array of TX queue parameters |
Johannes Berg | 5568296 | 2007-09-20 13:09:35 -0400 | [diff] [blame] | 183 | * |
| 184 | * @NL80211_ATTR_IFINDEX: network interface index of the device to operate on |
| 185 | * @NL80211_ATTR_IFNAME: network interface name |
| 186 | * @NL80211_ATTR_IFTYPE: type of virtual interface, see &enum nl80211_iftype |
| 187 | * |
Johannes Berg | 41ade00 | 2007-12-19 02:03:29 +0100 | [diff] [blame] | 188 | * @NL80211_ATTR_MAC: MAC address (various uses) |
| 189 | * |
| 190 | * @NL80211_ATTR_KEY_DATA: (temporal) key data; for TKIP this consists of |
| 191 | * 16 bytes encryption key followed by 8 bytes each for TX and RX MIC |
| 192 | * keys |
| 193 | * @NL80211_ATTR_KEY_IDX: key ID (u8, 0-3) |
| 194 | * @NL80211_ATTR_KEY_CIPHER: key cipher suite (u32, as defined by IEEE 802.11 |
| 195 | * section 7.3.2.25.1, e.g. 0x000FAC04) |
| 196 | * @NL80211_ATTR_KEY_SEQ: transmit key sequence number (IV/PN) for TKIP and |
| 197 | * CCMP keys, each six bytes in little endian |
| 198 | * |
Johannes Berg | ed1b6cc | 2007-12-19 02:03:32 +0100 | [diff] [blame] | 199 | * @NL80211_ATTR_BEACON_INTERVAL: beacon interval in TU |
| 200 | * @NL80211_ATTR_DTIM_PERIOD: DTIM period for beaconing |
| 201 | * @NL80211_ATTR_BEACON_HEAD: portion of the beacon before the TIM IE |
| 202 | * @NL80211_ATTR_BEACON_TAIL: portion of the beacon after the TIM IE |
| 203 | * |
Johannes Berg | 5727ef1 | 2007-12-19 02:03:34 +0100 | [diff] [blame] | 204 | * @NL80211_ATTR_STA_AID: Association ID for the station (u16) |
| 205 | * @NL80211_ATTR_STA_FLAGS: flags, nested element with NLA_FLAG attributes of |
| 206 | * &enum nl80211_sta_flags. |
| 207 | * @NL80211_ATTR_STA_LISTEN_INTERVAL: listen interval as defined by |
| 208 | * IEEE 802.11 7.3.1.6 (u16). |
| 209 | * @NL80211_ATTR_STA_SUPPORTED_RATES: supported rates, array of supported |
| 210 | * rates as defined by IEEE 802.11 7.3.2.2 but without the length |
| 211 | * restriction (at most %NL80211_MAX_SUPP_RATES). |
| 212 | * @NL80211_ATTR_STA_VLAN: interface index of VLAN interface to move station |
| 213 | * to, or the AP interface the station was originally added to to. |
Luis Carlos Cobo | 2ec600d | 2008-02-23 15:17:06 +0100 | [diff] [blame] | 214 | * @NL80211_ATTR_STA_INFO: information about a station, part of station info |
Johannes Berg | fd5b74d | 2007-12-19 02:03:36 +0100 | [diff] [blame] | 215 | * given for %NL80211_CMD_GET_STATION, nested attribute containing |
Luis Carlos Cobo | 2ec600d | 2008-02-23 15:17:06 +0100 | [diff] [blame] | 216 | * info as possible, see &enum nl80211_sta_info. |
Johannes Berg | 5727ef1 | 2007-12-19 02:03:34 +0100 | [diff] [blame] | 217 | * |
Johannes Berg | ee688b00 | 2008-01-24 19:38:39 +0100 | [diff] [blame] | 218 | * @NL80211_ATTR_WIPHY_BANDS: Information about an operating bands, |
| 219 | * consisting of a nested array. |
| 220 | * |
Luis Carlos Cobo | 2ec600d | 2008-02-23 15:17:06 +0100 | [diff] [blame] | 221 | * @NL80211_ATTR_MESH_ID: mesh id (1-32 bytes). |
| 222 | * @NL80211_ATTR_PLINK_ACTION: action to perform on the mesh peer link. |
| 223 | * @NL80211_ATTR_MPATH_NEXT_HOP: MAC address of the next hop for a mesh path. |
| 224 | * @NL80211_ATTR_MPATH_INFO: information about a mesh_path, part of mesh path |
| 225 | * info given for %NL80211_CMD_GET_MPATH, nested attribute described at |
| 226 | * &enum nl80211_mpath_info. |
| 227 | * |
Michael Wu | 66f7ac5 | 2008-01-31 19:48:22 +0100 | [diff] [blame] | 228 | * @NL80211_ATTR_MNTR_FLAGS: flags, nested element with NLA_FLAG attributes of |
| 229 | * &enum nl80211_mntr_flags. |
| 230 | * |
Luis R. Rodriguez | b2e1b30 | 2008-09-09 23:19:48 -0700 | [diff] [blame] | 231 | * @NL80211_ATTR_REG_ALPHA2: an ISO-3166-alpha2 country code for which the |
| 232 | * current regulatory domain should be set to or is already set to. |
| 233 | * For example, 'CR', for Costa Rica. This attribute is used by the kernel |
| 234 | * to query the CRDA to retrieve one regulatory domain. This attribute can |
| 235 | * also be used by userspace to query the kernel for the currently set |
| 236 | * regulatory domain. We chose an alpha2 as that is also used by the |
| 237 | * IEEE-802.11d country information element to identify a country. |
| 238 | * Users can also simply ask the wireless core to set regulatory domain |
| 239 | * to a specific alpha2. |
| 240 | * @NL80211_ATTR_REG_RULES: a nested array of regulatory domain regulatory |
| 241 | * rules. |
| 242 | * |
Jouni Malinen | 9f1ba90 | 2008-08-07 20:07:01 +0300 | [diff] [blame] | 243 | * @NL80211_ATTR_BSS_CTS_PROT: whether CTS protection is enabled (u8, 0 or 1) |
| 244 | * @NL80211_ATTR_BSS_SHORT_PREAMBLE: whether short preamble is enabled |
| 245 | * (u8, 0 or 1) |
| 246 | * @NL80211_ATTR_BSS_SHORT_SLOT_TIME: whether short slot time enabled |
| 247 | * (u8, 0 or 1) |
Jouni Malinen | 90c97a0 | 2008-10-30 16:59:22 +0200 | [diff] [blame] | 248 | * @NL80211_ATTR_BSS_BASIC_RATES: basic rates, array of basic |
| 249 | * rates in format defined by IEEE 802.11 7.3.2.2 but without the length |
| 250 | * restriction (at most %NL80211_MAX_SUPP_RATES). |
Jouni Malinen | 9f1ba90 | 2008-08-07 20:07:01 +0300 | [diff] [blame] | 251 | * |
Jouni Malinen | 36aedc90 | 2008-08-25 11:58:58 +0300 | [diff] [blame] | 252 | * @NL80211_ATTR_HT_CAPABILITY: HT Capability information element (from |
| 253 | * association request when used with NL80211_CMD_NEW_STATION) |
| 254 | * |
Luis R. Rodriguez | f59ac04 | 2008-08-29 16:26:43 -0700 | [diff] [blame] | 255 | * @NL80211_ATTR_SUPPORTED_IFTYPES: nested attribute containing all |
| 256 | * supported interface types, each a flag attribute with the number |
| 257 | * of the interface mode. |
| 258 | * |
Johannes Berg | 5568296 | 2007-09-20 13:09:35 -0400 | [diff] [blame] | 259 | * @NL80211_ATTR_MAX: highest attribute number currently defined |
| 260 | * @__NL80211_ATTR_AFTER_LAST: internal use |
| 261 | */ |
| 262 | enum nl80211_attrs { |
| 263 | /* don't change the order or add anything inbetween, this is ABI! */ |
| 264 | NL80211_ATTR_UNSPEC, |
| 265 | |
| 266 | NL80211_ATTR_WIPHY, |
| 267 | NL80211_ATTR_WIPHY_NAME, |
| 268 | |
| 269 | NL80211_ATTR_IFINDEX, |
| 270 | NL80211_ATTR_IFNAME, |
| 271 | NL80211_ATTR_IFTYPE, |
| 272 | |
Johannes Berg | 41ade00 | 2007-12-19 02:03:29 +0100 | [diff] [blame] | 273 | NL80211_ATTR_MAC, |
| 274 | |
| 275 | NL80211_ATTR_KEY_DATA, |
| 276 | NL80211_ATTR_KEY_IDX, |
| 277 | NL80211_ATTR_KEY_CIPHER, |
| 278 | NL80211_ATTR_KEY_SEQ, |
| 279 | NL80211_ATTR_KEY_DEFAULT, |
| 280 | |
Johannes Berg | ed1b6cc | 2007-12-19 02:03:32 +0100 | [diff] [blame] | 281 | NL80211_ATTR_BEACON_INTERVAL, |
| 282 | NL80211_ATTR_DTIM_PERIOD, |
| 283 | NL80211_ATTR_BEACON_HEAD, |
| 284 | NL80211_ATTR_BEACON_TAIL, |
| 285 | |
Johannes Berg | 5727ef1 | 2007-12-19 02:03:34 +0100 | [diff] [blame] | 286 | NL80211_ATTR_STA_AID, |
| 287 | NL80211_ATTR_STA_FLAGS, |
| 288 | NL80211_ATTR_STA_LISTEN_INTERVAL, |
| 289 | NL80211_ATTR_STA_SUPPORTED_RATES, |
| 290 | NL80211_ATTR_STA_VLAN, |
Luis Carlos Cobo | 2ec600d | 2008-02-23 15:17:06 +0100 | [diff] [blame] | 291 | NL80211_ATTR_STA_INFO, |
Johannes Berg | 5727ef1 | 2007-12-19 02:03:34 +0100 | [diff] [blame] | 292 | |
Johannes Berg | ee688b00 | 2008-01-24 19:38:39 +0100 | [diff] [blame] | 293 | NL80211_ATTR_WIPHY_BANDS, |
| 294 | |
Michael Wu | 66f7ac5 | 2008-01-31 19:48:22 +0100 | [diff] [blame] | 295 | NL80211_ATTR_MNTR_FLAGS, |
| 296 | |
Luis Carlos Cobo | 2ec600d | 2008-02-23 15:17:06 +0100 | [diff] [blame] | 297 | NL80211_ATTR_MESH_ID, |
| 298 | NL80211_ATTR_STA_PLINK_ACTION, |
| 299 | NL80211_ATTR_MPATH_NEXT_HOP, |
| 300 | NL80211_ATTR_MPATH_INFO, |
| 301 | |
Jouni Malinen | 9f1ba90 | 2008-08-07 20:07:01 +0300 | [diff] [blame] | 302 | NL80211_ATTR_BSS_CTS_PROT, |
| 303 | NL80211_ATTR_BSS_SHORT_PREAMBLE, |
| 304 | NL80211_ATTR_BSS_SHORT_SLOT_TIME, |
| 305 | |
Jouni Malinen | 36aedc90 | 2008-08-25 11:58:58 +0300 | [diff] [blame] | 306 | NL80211_ATTR_HT_CAPABILITY, |
| 307 | |
Luis R. Rodriguez | f59ac04 | 2008-08-29 16:26:43 -0700 | [diff] [blame] | 308 | NL80211_ATTR_SUPPORTED_IFTYPES, |
| 309 | |
Luis R. Rodriguez | b2e1b30 | 2008-09-09 23:19:48 -0700 | [diff] [blame] | 310 | NL80211_ATTR_REG_ALPHA2, |
| 311 | NL80211_ATTR_REG_RULES, |
| 312 | |
colin@cozybit.com | 93da9cc | 2008-10-21 12:03:48 -0700 | [diff] [blame] | 313 | NL80211_ATTR_MESH_PARAMS, |
| 314 | |
Jouni Malinen | 90c97a0 | 2008-10-30 16:59:22 +0200 | [diff] [blame] | 315 | NL80211_ATTR_BSS_BASIC_RATES, |
| 316 | |
Jouni Malinen | 3188848 | 2008-10-30 16:59:24 +0200 | [diff] [blame^] | 317 | NL80211_ATTR_WIPHY_TXQ_PARAMS, |
| 318 | |
Michael Buesch | 564d9bd | 2008-06-10 14:04:14 +0200 | [diff] [blame] | 319 | /* add attributes here, update the policy in nl80211.c */ |
| 320 | |
Johannes Berg | 5568296 | 2007-09-20 13:09:35 -0400 | [diff] [blame] | 321 | __NL80211_ATTR_AFTER_LAST, |
| 322 | NL80211_ATTR_MAX = __NL80211_ATTR_AFTER_LAST - 1 |
| 323 | }; |
| 324 | |
Jouni Malinen | 36aedc90 | 2008-08-25 11:58:58 +0300 | [diff] [blame] | 325 | /* |
| 326 | * Allow user space programs to use #ifdef on new attributes by defining them |
| 327 | * here |
| 328 | */ |
| 329 | #define NL80211_ATTR_HT_CAPABILITY NL80211_ATTR_HT_CAPABILITY |
Jouni Malinen | 90c97a0 | 2008-10-30 16:59:22 +0200 | [diff] [blame] | 330 | #define NL80211_ATTR_BSS_BASIC_RATES NL80211_ATTR_BSS_BASIC_RATES |
Jouni Malinen | 3188848 | 2008-10-30 16:59:24 +0200 | [diff] [blame^] | 331 | #define NL80211_ATTR_WIPHY_TXQ_PARAMS NL80211_ATTR_WIPHY_TXQ_PARAMS |
Jouni Malinen | 36aedc90 | 2008-08-25 11:58:58 +0300 | [diff] [blame] | 332 | |
Luis R. Rodriguez | ffd7891 | 2008-06-21 10:02:46 -0400 | [diff] [blame] | 333 | #define NL80211_MAX_SUPP_RATES 32 |
Luis R. Rodriguez | b2e1b30 | 2008-09-09 23:19:48 -0700 | [diff] [blame] | 334 | #define NL80211_MAX_SUPP_REG_RULES 32 |
Luis R. Rodriguez | ffd7891 | 2008-06-21 10:02:46 -0400 | [diff] [blame] | 335 | #define NL80211_TKIP_DATA_OFFSET_ENCR_KEY 0 |
| 336 | #define NL80211_TKIP_DATA_OFFSET_TX_MIC_KEY 16 |
| 337 | #define NL80211_TKIP_DATA_OFFSET_RX_MIC_KEY 24 |
Jouni Malinen | 36aedc90 | 2008-08-25 11:58:58 +0300 | [diff] [blame] | 338 | #define NL80211_HT_CAPABILITY_LEN 26 |
Johannes Berg | 5727ef1 | 2007-12-19 02:03:34 +0100 | [diff] [blame] | 339 | |
Johannes Berg | 5568296 | 2007-09-20 13:09:35 -0400 | [diff] [blame] | 340 | /** |
Johannes Berg | 704232c | 2007-04-23 12:20:05 -0700 | [diff] [blame] | 341 | * enum nl80211_iftype - (virtual) interface types |
Johannes Berg | 5568296 | 2007-09-20 13:09:35 -0400 | [diff] [blame] | 342 | * |
Johannes Berg | 704232c | 2007-04-23 12:20:05 -0700 | [diff] [blame] | 343 | * @NL80211_IFTYPE_UNSPECIFIED: unspecified type, driver decides |
| 344 | * @NL80211_IFTYPE_ADHOC: independent BSS member |
| 345 | * @NL80211_IFTYPE_STATION: managed BSS member |
| 346 | * @NL80211_IFTYPE_AP: access point |
| 347 | * @NL80211_IFTYPE_AP_VLAN: VLAN interface for access points |
| 348 | * @NL80211_IFTYPE_WDS: wireless distribution interface |
| 349 | * @NL80211_IFTYPE_MONITOR: monitor interface receiving all frames |
Luis Carlos Cobo | 2ec600d | 2008-02-23 15:17:06 +0100 | [diff] [blame] | 350 | * @NL80211_IFTYPE_MESH_POINT: mesh point |
Johannes Berg | 5568296 | 2007-09-20 13:09:35 -0400 | [diff] [blame] | 351 | * @NL80211_IFTYPE_MAX: highest interface type number currently defined |
Johannes Berg | 704232c | 2007-04-23 12:20:05 -0700 | [diff] [blame] | 352 | * @__NL80211_IFTYPE_AFTER_LAST: internal use |
| 353 | * |
Johannes Berg | 5568296 | 2007-09-20 13:09:35 -0400 | [diff] [blame] | 354 | * These values are used with the %NL80211_ATTR_IFTYPE |
Johannes Berg | 704232c | 2007-04-23 12:20:05 -0700 | [diff] [blame] | 355 | * to set the type of an interface. |
| 356 | * |
| 357 | */ |
| 358 | enum nl80211_iftype { |
| 359 | NL80211_IFTYPE_UNSPECIFIED, |
| 360 | NL80211_IFTYPE_ADHOC, |
| 361 | NL80211_IFTYPE_STATION, |
| 362 | NL80211_IFTYPE_AP, |
| 363 | NL80211_IFTYPE_AP_VLAN, |
| 364 | NL80211_IFTYPE_WDS, |
| 365 | NL80211_IFTYPE_MONITOR, |
Luis Carlos Cobo | 2ec600d | 2008-02-23 15:17:06 +0100 | [diff] [blame] | 366 | NL80211_IFTYPE_MESH_POINT, |
Johannes Berg | 704232c | 2007-04-23 12:20:05 -0700 | [diff] [blame] | 367 | |
| 368 | /* keep last */ |
Johannes Berg | 5568296 | 2007-09-20 13:09:35 -0400 | [diff] [blame] | 369 | __NL80211_IFTYPE_AFTER_LAST, |
| 370 | NL80211_IFTYPE_MAX = __NL80211_IFTYPE_AFTER_LAST - 1 |
Johannes Berg | 704232c | 2007-04-23 12:20:05 -0700 | [diff] [blame] | 371 | }; |
Johannes Berg | 704232c | 2007-04-23 12:20:05 -0700 | [diff] [blame] | 372 | |
Johannes Berg | 5727ef1 | 2007-12-19 02:03:34 +0100 | [diff] [blame] | 373 | /** |
| 374 | * enum nl80211_sta_flags - station flags |
| 375 | * |
| 376 | * Station flags. When a station is added to an AP interface, it is |
| 377 | * assumed to be already associated (and hence authenticated.) |
| 378 | * |
| 379 | * @NL80211_STA_FLAG_AUTHORIZED: station is authorized (802.1X) |
| 380 | * @NL80211_STA_FLAG_SHORT_PREAMBLE: station is capable of receiving frames |
| 381 | * with short barker preamble |
| 382 | * @NL80211_STA_FLAG_WME: station is WME/QoS capable |
| 383 | */ |
| 384 | enum nl80211_sta_flags { |
| 385 | __NL80211_STA_FLAG_INVALID, |
| 386 | NL80211_STA_FLAG_AUTHORIZED, |
| 387 | NL80211_STA_FLAG_SHORT_PREAMBLE, |
| 388 | NL80211_STA_FLAG_WME, |
| 389 | |
| 390 | /* keep last */ |
| 391 | __NL80211_STA_FLAG_AFTER_LAST, |
| 392 | NL80211_STA_FLAG_MAX = __NL80211_STA_FLAG_AFTER_LAST - 1 |
| 393 | }; |
| 394 | |
Johannes Berg | fd5b74d | 2007-12-19 02:03:36 +0100 | [diff] [blame] | 395 | /** |
Luis Carlos Cobo | 2ec600d | 2008-02-23 15:17:06 +0100 | [diff] [blame] | 396 | * enum nl80211_sta_info - station information |
Johannes Berg | fd5b74d | 2007-12-19 02:03:36 +0100 | [diff] [blame] | 397 | * |
Luis Carlos Cobo | 2ec600d | 2008-02-23 15:17:06 +0100 | [diff] [blame] | 398 | * These attribute types are used with %NL80211_ATTR_STA_INFO |
Johannes Berg | fd5b74d | 2007-12-19 02:03:36 +0100 | [diff] [blame] | 399 | * when getting information about a station. |
| 400 | * |
Luis Carlos Cobo | 2ec600d | 2008-02-23 15:17:06 +0100 | [diff] [blame] | 401 | * @__NL80211_STA_INFO_INVALID: attribute number 0 is reserved |
| 402 | * @NL80211_STA_INFO_INACTIVE_TIME: time since last activity (u32, msecs) |
| 403 | * @NL80211_STA_INFO_RX_BYTES: total received bytes (u32, from this station) |
| 404 | * @NL80211_STA_INFO_TX_BYTES: total transmitted bytes (u32, to this station) |
| 405 | * @__NL80211_STA_INFO_AFTER_LAST: internal |
| 406 | * @NL80211_STA_INFO_MAX: highest possible station info attribute |
Johannes Berg | fd5b74d | 2007-12-19 02:03:36 +0100 | [diff] [blame] | 407 | */ |
Luis Carlos Cobo | 2ec600d | 2008-02-23 15:17:06 +0100 | [diff] [blame] | 408 | enum nl80211_sta_info { |
| 409 | __NL80211_STA_INFO_INVALID, |
| 410 | NL80211_STA_INFO_INACTIVE_TIME, |
| 411 | NL80211_STA_INFO_RX_BYTES, |
| 412 | NL80211_STA_INFO_TX_BYTES, |
| 413 | NL80211_STA_INFO_LLID, |
| 414 | NL80211_STA_INFO_PLID, |
| 415 | NL80211_STA_INFO_PLINK_STATE, |
Johannes Berg | fd5b74d | 2007-12-19 02:03:36 +0100 | [diff] [blame] | 416 | |
| 417 | /* keep last */ |
Luis Carlos Cobo | 2ec600d | 2008-02-23 15:17:06 +0100 | [diff] [blame] | 418 | __NL80211_STA_INFO_AFTER_LAST, |
| 419 | NL80211_STA_INFO_MAX = __NL80211_STA_INFO_AFTER_LAST - 1 |
| 420 | }; |
| 421 | |
| 422 | /** |
| 423 | * enum nl80211_mpath_flags - nl80211 mesh path flags |
| 424 | * |
| 425 | * @NL80211_MPATH_FLAG_ACTIVE: the mesh path is active |
| 426 | * @NL80211_MPATH_FLAG_RESOLVING: the mesh path discovery process is running |
| 427 | * @NL80211_MPATH_FLAG_DSN_VALID: the mesh path contains a valid DSN |
| 428 | * @NL80211_MPATH_FLAG_FIXED: the mesh path has been manually set |
| 429 | * @NL80211_MPATH_FLAG_RESOLVED: the mesh path discovery process succeeded |
| 430 | */ |
| 431 | enum nl80211_mpath_flags { |
| 432 | NL80211_MPATH_FLAG_ACTIVE = 1<<0, |
| 433 | NL80211_MPATH_FLAG_RESOLVING = 1<<1, |
| 434 | NL80211_MPATH_FLAG_DSN_VALID = 1<<2, |
| 435 | NL80211_MPATH_FLAG_FIXED = 1<<3, |
| 436 | NL80211_MPATH_FLAG_RESOLVED = 1<<4, |
| 437 | }; |
| 438 | |
| 439 | /** |
| 440 | * enum nl80211_mpath_info - mesh path information |
| 441 | * |
| 442 | * These attribute types are used with %NL80211_ATTR_MPATH_INFO when getting |
| 443 | * information about a mesh path. |
| 444 | * |
| 445 | * @__NL80211_MPATH_INFO_INVALID: attribute number 0 is reserved |
| 446 | * @NL80211_ATTR_MPATH_FRAME_QLEN: number of queued frames for this destination |
| 447 | * @NL80211_ATTR_MPATH_DSN: destination sequence number |
| 448 | * @NL80211_ATTR_MPATH_METRIC: metric (cost) of this mesh path |
| 449 | * @NL80211_ATTR_MPATH_EXPTIME: expiration time for the path, in msec from now |
| 450 | * @NL80211_ATTR_MPATH_FLAGS: mesh path flags, enumerated in |
| 451 | * &enum nl80211_mpath_flags; |
| 452 | * @NL80211_ATTR_MPATH_DISCOVERY_TIMEOUT: total path discovery timeout, in msec |
| 453 | * @NL80211_ATTR_MPATH_DISCOVERY_RETRIES: mesh path discovery retries |
| 454 | */ |
| 455 | enum nl80211_mpath_info { |
| 456 | __NL80211_MPATH_INFO_INVALID, |
| 457 | NL80211_MPATH_INFO_FRAME_QLEN, |
| 458 | NL80211_MPATH_INFO_DSN, |
| 459 | NL80211_MPATH_INFO_METRIC, |
| 460 | NL80211_MPATH_INFO_EXPTIME, |
| 461 | NL80211_MPATH_INFO_FLAGS, |
| 462 | NL80211_MPATH_INFO_DISCOVERY_TIMEOUT, |
| 463 | NL80211_MPATH_INFO_DISCOVERY_RETRIES, |
| 464 | |
| 465 | /* keep last */ |
| 466 | __NL80211_MPATH_INFO_AFTER_LAST, |
| 467 | NL80211_MPATH_INFO_MAX = __NL80211_MPATH_INFO_AFTER_LAST - 1 |
Johannes Berg | fd5b74d | 2007-12-19 02:03:36 +0100 | [diff] [blame] | 468 | }; |
| 469 | |
Johannes Berg | ee688b00 | 2008-01-24 19:38:39 +0100 | [diff] [blame] | 470 | /** |
| 471 | * enum nl80211_band_attr - band attributes |
| 472 | * @__NL80211_BAND_ATTR_INVALID: attribute number 0 is reserved |
| 473 | * @NL80211_BAND_ATTR_FREQS: supported frequencies in this band, |
| 474 | * an array of nested frequency attributes |
| 475 | * @NL80211_BAND_ATTR_RATES: supported bitrates in this band, |
| 476 | * an array of nested bitrate attributes |
Johannes Berg | d51626d | 2008-10-09 12:20:13 +0200 | [diff] [blame] | 477 | * @NL80211_BAND_ATTR_HT_MCS_SET: 16-byte attribute containing the MCS set as |
| 478 | * defined in 802.11n |
| 479 | * @NL80211_BAND_ATTR_HT_CAPA: HT capabilities, as in the HT information IE |
| 480 | * @NL80211_BAND_ATTR_HT_AMPDU_FACTOR: A-MPDU factor, as in 11n |
| 481 | * @NL80211_BAND_ATTR_HT_AMPDU_DENSITY: A-MPDU density, as in 11n |
Johannes Berg | ee688b00 | 2008-01-24 19:38:39 +0100 | [diff] [blame] | 482 | */ |
| 483 | enum nl80211_band_attr { |
| 484 | __NL80211_BAND_ATTR_INVALID, |
| 485 | NL80211_BAND_ATTR_FREQS, |
| 486 | NL80211_BAND_ATTR_RATES, |
| 487 | |
Johannes Berg | d51626d | 2008-10-09 12:20:13 +0200 | [diff] [blame] | 488 | NL80211_BAND_ATTR_HT_MCS_SET, |
| 489 | NL80211_BAND_ATTR_HT_CAPA, |
| 490 | NL80211_BAND_ATTR_HT_AMPDU_FACTOR, |
| 491 | NL80211_BAND_ATTR_HT_AMPDU_DENSITY, |
| 492 | |
Johannes Berg | ee688b00 | 2008-01-24 19:38:39 +0100 | [diff] [blame] | 493 | /* keep last */ |
| 494 | __NL80211_BAND_ATTR_AFTER_LAST, |
| 495 | NL80211_BAND_ATTR_MAX = __NL80211_BAND_ATTR_AFTER_LAST - 1 |
| 496 | }; |
| 497 | |
Johannes Berg | d51626d | 2008-10-09 12:20:13 +0200 | [diff] [blame] | 498 | #define NL80211_BAND_ATTR_HT_CAPA NL80211_BAND_ATTR_HT_CAPA |
| 499 | |
Johannes Berg | ee688b00 | 2008-01-24 19:38:39 +0100 | [diff] [blame] | 500 | /** |
| 501 | * enum nl80211_frequency_attr - frequency attributes |
| 502 | * @NL80211_FREQUENCY_ATTR_FREQ: Frequency in MHz |
| 503 | * @NL80211_FREQUENCY_ATTR_DISABLED: Channel is disabled in current |
| 504 | * regulatory domain. |
| 505 | * @NL80211_FREQUENCY_ATTR_PASSIVE_SCAN: Only passive scanning is |
| 506 | * permitted on this channel in current regulatory domain. |
| 507 | * @NL80211_FREQUENCY_ATTR_NO_IBSS: IBSS networks are not permitted |
| 508 | * on this channel in current regulatory domain. |
| 509 | * @NL80211_FREQUENCY_ATTR_RADAR: Radar detection is mandatory |
| 510 | * on this channel in current regulatory domain. |
| 511 | */ |
| 512 | enum nl80211_frequency_attr { |
| 513 | __NL80211_FREQUENCY_ATTR_INVALID, |
| 514 | NL80211_FREQUENCY_ATTR_FREQ, |
| 515 | NL80211_FREQUENCY_ATTR_DISABLED, |
| 516 | NL80211_FREQUENCY_ATTR_PASSIVE_SCAN, |
| 517 | NL80211_FREQUENCY_ATTR_NO_IBSS, |
| 518 | NL80211_FREQUENCY_ATTR_RADAR, |
| 519 | |
| 520 | /* keep last */ |
| 521 | __NL80211_FREQUENCY_ATTR_AFTER_LAST, |
| 522 | NL80211_FREQUENCY_ATTR_MAX = __NL80211_FREQUENCY_ATTR_AFTER_LAST - 1 |
| 523 | }; |
| 524 | |
| 525 | /** |
| 526 | * enum nl80211_bitrate_attr - bitrate attributes |
| 527 | * @NL80211_BITRATE_ATTR_RATE: Bitrate in units of 100 kbps |
| 528 | * @NL80211_BITRATE_ATTR_2GHZ_SHORTPREAMBLE: Short preamble supported |
| 529 | * in 2.4 GHz band. |
| 530 | */ |
| 531 | enum nl80211_bitrate_attr { |
| 532 | __NL80211_BITRATE_ATTR_INVALID, |
| 533 | NL80211_BITRATE_ATTR_RATE, |
| 534 | NL80211_BITRATE_ATTR_2GHZ_SHORTPREAMBLE, |
| 535 | |
| 536 | /* keep last */ |
| 537 | __NL80211_BITRATE_ATTR_AFTER_LAST, |
| 538 | NL80211_BITRATE_ATTR_MAX = __NL80211_BITRATE_ATTR_AFTER_LAST - 1 |
| 539 | }; |
| 540 | |
Michael Wu | 66f7ac5 | 2008-01-31 19:48:22 +0100 | [diff] [blame] | 541 | /** |
Luis R. Rodriguez | b2e1b30 | 2008-09-09 23:19:48 -0700 | [diff] [blame] | 542 | * enum nl80211_reg_rule_attr - regulatory rule attributes |
| 543 | * @NL80211_ATTR_REG_RULE_FLAGS: a set of flags which specify additional |
| 544 | * considerations for a given frequency range. These are the |
| 545 | * &enum nl80211_reg_rule_flags. |
| 546 | * @NL80211_ATTR_FREQ_RANGE_START: starting frequencry for the regulatory |
| 547 | * rule in KHz. This is not a center of frequency but an actual regulatory |
| 548 | * band edge. |
| 549 | * @NL80211_ATTR_FREQ_RANGE_END: ending frequency for the regulatory rule |
| 550 | * in KHz. This is not a center a frequency but an actual regulatory |
| 551 | * band edge. |
| 552 | * @NL80211_ATTR_FREQ_RANGE_MAX_BW: maximum allowed bandwidth for this |
| 553 | * frequency range, in KHz. |
| 554 | * @NL80211_ATTR_POWER_RULE_MAX_ANT_GAIN: the maximum allowed antenna gain |
| 555 | * for a given frequency range. The value is in mBi (100 * dBi). |
| 556 | * If you don't have one then don't send this. |
| 557 | * @NL80211_ATTR_POWER_RULE_MAX_EIRP: the maximum allowed EIRP for |
| 558 | * a given frequency range. The value is in mBm (100 * dBm). |
| 559 | */ |
| 560 | enum nl80211_reg_rule_attr { |
| 561 | __NL80211_REG_RULE_ATTR_INVALID, |
| 562 | NL80211_ATTR_REG_RULE_FLAGS, |
| 563 | |
| 564 | NL80211_ATTR_FREQ_RANGE_START, |
| 565 | NL80211_ATTR_FREQ_RANGE_END, |
| 566 | NL80211_ATTR_FREQ_RANGE_MAX_BW, |
| 567 | |
| 568 | NL80211_ATTR_POWER_RULE_MAX_ANT_GAIN, |
| 569 | NL80211_ATTR_POWER_RULE_MAX_EIRP, |
| 570 | |
| 571 | /* keep last */ |
| 572 | __NL80211_REG_RULE_ATTR_AFTER_LAST, |
| 573 | NL80211_REG_RULE_ATTR_MAX = __NL80211_REG_RULE_ATTR_AFTER_LAST - 1 |
| 574 | }; |
| 575 | |
| 576 | /** |
| 577 | * enum nl80211_reg_rule_flags - regulatory rule flags |
| 578 | * |
| 579 | * @NL80211_RRF_NO_OFDM: OFDM modulation not allowed |
| 580 | * @NL80211_RRF_NO_CCK: CCK modulation not allowed |
| 581 | * @NL80211_RRF_NO_INDOOR: indoor operation not allowed |
| 582 | * @NL80211_RRF_NO_OUTDOOR: outdoor operation not allowed |
| 583 | * @NL80211_RRF_DFS: DFS support is required to be used |
| 584 | * @NL80211_RRF_PTP_ONLY: this is only for Point To Point links |
| 585 | * @NL80211_RRF_PTMP_ONLY: this is only for Point To Multi Point links |
| 586 | * @NL80211_RRF_PASSIVE_SCAN: passive scan is required |
| 587 | * @NL80211_RRF_NO_IBSS: no IBSS is allowed |
| 588 | */ |
| 589 | enum nl80211_reg_rule_flags { |
| 590 | NL80211_RRF_NO_OFDM = 1<<0, |
| 591 | NL80211_RRF_NO_CCK = 1<<1, |
| 592 | NL80211_RRF_NO_INDOOR = 1<<2, |
| 593 | NL80211_RRF_NO_OUTDOOR = 1<<3, |
| 594 | NL80211_RRF_DFS = 1<<4, |
| 595 | NL80211_RRF_PTP_ONLY = 1<<5, |
| 596 | NL80211_RRF_PTMP_ONLY = 1<<6, |
| 597 | NL80211_RRF_PASSIVE_SCAN = 1<<7, |
| 598 | NL80211_RRF_NO_IBSS = 1<<8, |
| 599 | }; |
| 600 | |
| 601 | /** |
Michael Wu | 66f7ac5 | 2008-01-31 19:48:22 +0100 | [diff] [blame] | 602 | * enum nl80211_mntr_flags - monitor configuration flags |
| 603 | * |
| 604 | * Monitor configuration flags. |
| 605 | * |
| 606 | * @__NL80211_MNTR_FLAG_INVALID: reserved |
| 607 | * |
| 608 | * @NL80211_MNTR_FLAG_FCSFAIL: pass frames with bad FCS |
| 609 | * @NL80211_MNTR_FLAG_PLCPFAIL: pass frames with bad PLCP |
| 610 | * @NL80211_MNTR_FLAG_CONTROL: pass control frames |
| 611 | * @NL80211_MNTR_FLAG_OTHER_BSS: disable BSSID filtering |
| 612 | * @NL80211_MNTR_FLAG_COOK_FRAMES: report frames after processing. |
| 613 | * overrides all other flags. |
| 614 | * |
| 615 | * @__NL80211_MNTR_FLAG_AFTER_LAST: internal use |
| 616 | * @NL80211_MNTR_FLAG_MAX: highest possible monitor flag |
| 617 | */ |
| 618 | enum nl80211_mntr_flags { |
| 619 | __NL80211_MNTR_FLAG_INVALID, |
| 620 | NL80211_MNTR_FLAG_FCSFAIL, |
| 621 | NL80211_MNTR_FLAG_PLCPFAIL, |
| 622 | NL80211_MNTR_FLAG_CONTROL, |
| 623 | NL80211_MNTR_FLAG_OTHER_BSS, |
| 624 | NL80211_MNTR_FLAG_COOK_FRAMES, |
| 625 | |
| 626 | /* keep last */ |
| 627 | __NL80211_MNTR_FLAG_AFTER_LAST, |
| 628 | NL80211_MNTR_FLAG_MAX = __NL80211_MNTR_FLAG_AFTER_LAST - 1 |
| 629 | }; |
| 630 | |
colin@cozybit.com | 93da9cc | 2008-10-21 12:03:48 -0700 | [diff] [blame] | 631 | /** |
| 632 | * enum nl80211_meshconf_params - mesh configuration parameters |
| 633 | * |
| 634 | * Mesh configuration parameters |
| 635 | * |
| 636 | * @__NL80211_MESHCONF_INVALID: internal use |
| 637 | * |
| 638 | * @NL80211_MESHCONF_RETRY_TIMEOUT: specifies the initial retry timeout in |
| 639 | * millisecond units, used by the Peer Link Open message |
| 640 | * |
| 641 | * @NL80211_MESHCONF_CONFIRM_TIMEOUT: specifies the inital confirm timeout, in |
| 642 | * millisecond units, used by the peer link management to close a peer link |
| 643 | * |
| 644 | * @NL80211_MESHCONF_HOLDING_TIMEOUT: specifies the holding timeout, in |
| 645 | * millisecond units |
| 646 | * |
| 647 | * @NL80211_MESHCONF_MAX_PEER_LINKS: maximum number of peer links allowed |
| 648 | * on this mesh interface |
| 649 | * |
| 650 | * @NL80211_MESHCONF_MAX_RETRIES: specifies the maximum number of peer link |
| 651 | * open retries that can be sent to establish a new peer link instance in a |
| 652 | * mesh |
| 653 | * |
| 654 | * @NL80211_MESHCONF_TTL: specifies the value of TTL field set at a source mesh |
| 655 | * point. |
| 656 | * |
| 657 | * @NL80211_MESHCONF_AUTO_OPEN_PLINKS: whether we should automatically |
| 658 | * open peer links when we detect compatible mesh peers. |
| 659 | * |
| 660 | * @NL80211_MESHCONF_HWMP_MAX_PREQ_RETRIES: the number of action frames |
| 661 | * containing a PREQ that an MP can send to a particular destination (path |
| 662 | * target) |
| 663 | * |
| 664 | * @NL80211_MESHCONF_PATH_REFRESH_TIME: how frequently to refresh mesh paths |
| 665 | * (in milliseconds) |
| 666 | * |
| 667 | * @NL80211_MESHCONF_MIN_DISCOVERY_TIMEOUT: minimum length of time to wait |
| 668 | * until giving up on a path discovery (in milliseconds) |
| 669 | * |
| 670 | * @NL80211_MESHCONF_HWMP_ACTIVE_PATH_TIMEOUT: The time (in TUs) for which mesh |
| 671 | * points receiving a PREQ shall consider the forwarding information from the |
| 672 | * root to be valid. (TU = time unit) |
| 673 | * |
| 674 | * @NL80211_MESHCONF_HWMP_PREQ_MIN_INTERVAL: The minimum interval of time (in |
| 675 | * TUs) during which an MP can send only one action frame containing a PREQ |
| 676 | * reference element |
| 677 | * |
| 678 | * @NL80211_MESHCONF_HWMP_NET_DIAM_TRVS_TIME: The interval of time (in TUs) |
| 679 | * that it takes for an HWMP information element to propagate across the mesh |
| 680 | * |
| 681 | * @NL80211_MESHCONF_ATTR_MAX: highest possible mesh configuration attribute |
| 682 | * |
| 683 | * @__NL80211_MESHCONF_ATTR_AFTER_LAST: internal use |
| 684 | */ |
| 685 | enum nl80211_meshconf_params { |
| 686 | __NL80211_MESHCONF_INVALID, |
| 687 | NL80211_MESHCONF_RETRY_TIMEOUT, |
| 688 | NL80211_MESHCONF_CONFIRM_TIMEOUT, |
| 689 | NL80211_MESHCONF_HOLDING_TIMEOUT, |
| 690 | NL80211_MESHCONF_MAX_PEER_LINKS, |
| 691 | NL80211_MESHCONF_MAX_RETRIES, |
| 692 | NL80211_MESHCONF_TTL, |
| 693 | NL80211_MESHCONF_AUTO_OPEN_PLINKS, |
| 694 | NL80211_MESHCONF_HWMP_MAX_PREQ_RETRIES, |
| 695 | NL80211_MESHCONF_PATH_REFRESH_TIME, |
| 696 | NL80211_MESHCONF_MIN_DISCOVERY_TIMEOUT, |
| 697 | NL80211_MESHCONF_HWMP_ACTIVE_PATH_TIMEOUT, |
| 698 | NL80211_MESHCONF_HWMP_PREQ_MIN_INTERVAL, |
| 699 | NL80211_MESHCONF_HWMP_NET_DIAM_TRVS_TIME, |
| 700 | |
| 701 | /* keep last */ |
| 702 | __NL80211_MESHCONF_ATTR_AFTER_LAST, |
| 703 | NL80211_MESHCONF_ATTR_MAX = __NL80211_MESHCONF_ATTR_AFTER_LAST - 1 |
| 704 | }; |
| 705 | |
Jouni Malinen | 3188848 | 2008-10-30 16:59:24 +0200 | [diff] [blame^] | 706 | /** |
| 707 | * enum nl80211_txq_attr - TX queue parameter attributes |
| 708 | * @__NL80211_TXQ_ATTR_INVALID: Attribute number 0 is reserved |
| 709 | * @NL80211_TXQ_ATTR_QUEUE: TX queue identifier (NL80211_TXQ_Q_*) |
| 710 | * @NL80211_TXQ_ATTR_TXOP: Maximum burst time in units of 32 usecs, 0 meaning |
| 711 | * disabled |
| 712 | * @NL80211_TXQ_ATTR_CWMIN: Minimum contention window [a value of the form |
| 713 | * 2^n-1 in the range 1..32767] |
| 714 | * @NL80211_TXQ_ATTR_CWMAX: Maximum contention window [a value of the form |
| 715 | * 2^n-1 in the range 1..32767] |
| 716 | * @NL80211_TXQ_ATTR_AIFS: Arbitration interframe space [0..255] |
| 717 | * @__NL80211_TXQ_ATTR_AFTER_LAST: Internal |
| 718 | * @NL80211_TXQ_ATTR_MAX: Maximum TXQ attribute number |
| 719 | */ |
| 720 | enum nl80211_txq_attr { |
| 721 | __NL80211_TXQ_ATTR_INVALID, |
| 722 | NL80211_TXQ_ATTR_QUEUE, |
| 723 | NL80211_TXQ_ATTR_TXOP, |
| 724 | NL80211_TXQ_ATTR_CWMIN, |
| 725 | NL80211_TXQ_ATTR_CWMAX, |
| 726 | NL80211_TXQ_ATTR_AIFS, |
| 727 | |
| 728 | /* keep last */ |
| 729 | __NL80211_TXQ_ATTR_AFTER_LAST, |
| 730 | NL80211_TXQ_ATTR_MAX = __NL80211_TXQ_ATTR_AFTER_LAST - 1 |
| 731 | }; |
| 732 | |
| 733 | enum nl80211_txq_q { |
| 734 | NL80211_TXQ_Q_VO, |
| 735 | NL80211_TXQ_Q_VI, |
| 736 | NL80211_TXQ_Q_BE, |
| 737 | NL80211_TXQ_Q_BK |
| 738 | }; |
| 739 | |
Johannes Berg | 704232c | 2007-04-23 12:20:05 -0700 | [diff] [blame] | 740 | #endif /* __LINUX_NL80211_H */ |