diff options
author | Javier Cardona <javier@cozybit.com> | 2011-05-13 13:45:43 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-05-16 14:10:49 -0400 |
commit | 57cf8043a64b56a10b9f194572548a3dfb62e596 (patch) | |
tree | a0b9530e824c7e7b1417e20f87e800819abfe285 /include/linux/nl80211.h | |
parent | 108697c44b8e50bea3505c6bf9667da4627cb2d5 (diff) |
nl80211: Move peer link state definition to nl80211
These definitions need to be exposed now that we can set the peer link
states via NL80211_ATTR_STA_PLINK_STATE. They were already being
(opaquely) reported by NL80211_STA_INFO_PLINK_STATE.
Signed-off-by: Javier Cardona <javier@cozybit.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'include/linux/nl80211.h')
-rw-r--r-- | include/linux/nl80211.h | 41 |
1 files changed, 38 insertions, 3 deletions
diff --git a/include/linux/nl80211.h b/include/linux/nl80211.h index 0ea497cb607c..fc3a94821b1e 100644 --- a/include/linux/nl80211.h +++ b/include/linux/nl80211.h | |||
@@ -973,9 +973,10 @@ enum nl80211_commands { | |||
973 | * @NL80211_ATTR_SUPPORT_MESH_AUTH: Currently, this means the underlying driver | 973 | * @NL80211_ATTR_SUPPORT_MESH_AUTH: Currently, this means the underlying driver |
974 | * allows auth frames in a mesh to be passed to userspace for processing via | 974 | * allows auth frames in a mesh to be passed to userspace for processing via |
975 | * the @NL80211_MESH_SETUP_USERSPACE_AUTH flag. | 975 | * the @NL80211_MESH_SETUP_USERSPACE_AUTH flag. |
976 | * @NL80211_ATTR_STA_PLINK_STATE: The state of a mesh peer link. Used when | 976 | * @NL80211_ATTR_STA_PLINK_STATE: The state of a mesh peer link as |
977 | * userspace is driving the peer link management state machine. | 977 | * defined in &enum nl80211_plink_state. Used when userspace is |
978 | * @NL80211_MESH_SETUP_USERSPACE_AMPE must be enabled. | 978 | * driving the peer link management state machine. |
979 | * @NL80211_MESH_SETUP_USERSPACE_AMPE must be enabled. | ||
979 | * | 980 | * |
980 | * @NL80211_ATTR_WOWLAN_SUPPORTED: indicates, as part of the wiphy capabilities, | 981 | * @NL80211_ATTR_WOWLAN_SUPPORTED: indicates, as part of the wiphy capabilities, |
981 | * the supported WoWLAN triggers | 982 | * the supported WoWLAN triggers |
@@ -1396,6 +1397,7 @@ enum nl80211_sta_bss_param { | |||
1396 | * @NL80211_STA_INFO_LLID: the station's mesh LLID | 1397 | * @NL80211_STA_INFO_LLID: the station's mesh LLID |
1397 | * @NL80211_STA_INFO_PLID: the station's mesh PLID | 1398 | * @NL80211_STA_INFO_PLID: the station's mesh PLID |
1398 | * @NL80211_STA_INFO_PLINK_STATE: peer link state for the station | 1399 | * @NL80211_STA_INFO_PLINK_STATE: peer link state for the station |
1400 | * (see %enum nl80211_plink_state) | ||
1399 | * @NL80211_STA_INFO_RX_BITRATE: last unicast data frame rx rate, nested | 1401 | * @NL80211_STA_INFO_RX_BITRATE: last unicast data frame rx rate, nested |
1400 | * attribute, like NL80211_STA_INFO_TX_BITRATE. | 1402 | * attribute, like NL80211_STA_INFO_TX_BITRATE. |
1401 | * @NL80211_STA_INFO_BSS_PARAM: current station's view of BSS, nested attribute | 1403 | * @NL80211_STA_INFO_BSS_PARAM: current station's view of BSS, nested attribute |
@@ -2326,4 +2328,37 @@ enum nl80211_if_combination_attrs { | |||
2326 | MAX_NL80211_IFACE_COMB = NUM_NL80211_IFACE_COMB - 1 | 2328 | MAX_NL80211_IFACE_COMB = NUM_NL80211_IFACE_COMB - 1 |
2327 | }; | 2329 | }; |
2328 | 2330 | ||
2331 | |||
2332 | /** | ||
2333 | * enum nl80211_plink_state - state of a mesh peer link finite state machine | ||
2334 | * | ||
2335 | * @NL80211_PLINK_LISTEN: initial state, considered the implicit | ||
2336 | * state of non existant mesh peer links | ||
2337 | * @NL80211_PLINK_OPN_SNT: mesh plink open frame has been sent to | ||
2338 | * this mesh peer | ||
2339 | * @NL80211_PLINK_OPN_RCVD: mesh plink open frame has been received | ||
2340 | * from this mesh peer | ||
2341 | * @NL80211_PLINK_CNF_RCVD: mesh plink confirm frame has been | ||
2342 | * received from this mesh peer | ||
2343 | * @NL80211_PLINK_ESTAB: mesh peer link is established | ||
2344 | * @NL80211_PLINK_HOLDING: mesh peer link is being closed or cancelled | ||
2345 | * @NL80211_PLINK_BLOCKED: all frames transmitted from this mesh | ||
2346 | * plink are discarded | ||
2347 | * @NUM_NL80211_PLINK_STATES: number of peer link states | ||
2348 | * @MAX_NL80211_PLINK_STATES: highest numerical value of plink states | ||
2349 | */ | ||
2350 | enum nl80211_plink_state { | ||
2351 | NL80211_PLINK_LISTEN, | ||
2352 | NL80211_PLINK_OPN_SNT, | ||
2353 | NL80211_PLINK_OPN_RCVD, | ||
2354 | NL80211_PLINK_CNF_RCVD, | ||
2355 | NL80211_PLINK_ESTAB, | ||
2356 | NL80211_PLINK_HOLDING, | ||
2357 | NL80211_PLINK_BLOCKED, | ||
2358 | |||
2359 | /* keep last */ | ||
2360 | NUM_NL80211_PLINK_STATES, | ||
2361 | MAX_NL80211_PLINK_STATES = NUM_NL80211_PLINK_STATES - 1 | ||
2362 | }; | ||
2363 | |||
2329 | #endif /* __LINUX_NL80211_H */ | 2364 | #endif /* __LINUX_NL80211_H */ |