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