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 | |
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')
-rw-r--r-- | include/linux/nl80211.h | 41 | ||||
-rw-r--r-- | include/net/cfg80211.h | 27 |
2 files changed, 38 insertions, 30 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 */ |
diff --git a/include/net/cfg80211.h b/include/net/cfg80211.h index 04afcfb9eaf4..0a2d795d35de 100644 --- a/include/net/cfg80211.h +++ b/include/net/cfg80211.h | |||
@@ -372,33 +372,6 @@ enum plink_actions { | |||
372 | }; | 372 | }; |
373 | 373 | ||
374 | /** | 374 | /** |
375 | * enum plink_states - state of a mesh peer link finite state machine | ||
376 | * | ||
377 | * @PLINK_LISTEN: initial state, considered the implicit state of non | ||
378 | * existant mesh peer links | ||
379 | * @PLINK_OPN_SNT: mesh plink open frame has been sent to this mesh | ||
380 | * peer @PLINK_OPN_RCVD: mesh plink open frame has been received from | ||
381 | * this mesh peer | ||
382 | * @PLINK_CNF_RCVD: mesh plink confirm frame has been received from | ||
383 | * this mesh peer | ||
384 | * @PLINK_ESTAB: mesh peer link is established | ||
385 | * @PLINK_HOLDING: mesh peer link is being closed or cancelled | ||
386 | * @PLINK_BLOCKED: all frames transmitted from this mesh plink are | ||
387 | * discarded | ||
388 | * @PLINK_INVALID: reserved | ||
389 | */ | ||
390 | enum plink_state { | ||
391 | PLINK_LISTEN, | ||
392 | PLINK_OPN_SNT, | ||
393 | PLINK_OPN_RCVD, | ||
394 | PLINK_CNF_RCVD, | ||
395 | PLINK_ESTAB, | ||
396 | PLINK_HOLDING, | ||
397 | PLINK_BLOCKED, | ||
398 | PLINK_INVALID, | ||
399 | }; | ||
400 | |||
401 | /** | ||
402 | * struct station_parameters - station parameters | 375 | * struct station_parameters - station parameters |
403 | * | 376 | * |
404 | * Used to change and create a new station. | 377 | * Used to change and create a new station. |