diff options
author | Javier Cardona <javier@cozybit.com> | 2011-05-03 19:57:11 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-05-11 14:44:46 -0400 |
commit | 9c3990aaec0ad9f686ef6480f6861f2df89b2a7a (patch) | |
tree | 5e073ffce0ce0aed45e9dfeb9f41efc140c770f7 /include/net/cfg80211.h | |
parent | 0a35d36d6f019bde6c98812456798275b02e5aee (diff) |
nl80211: Let userspace drive the peer link management states.
Signed-off-by: Javier Cardona <javier@cozybit.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'include/net/cfg80211.h')
-rw-r--r-- | include/net/cfg80211.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/include/net/cfg80211.h b/include/net/cfg80211.h index 10c17d68059f..4b0d035be64f 100644 --- a/include/net/cfg80211.h +++ b/include/net/cfg80211.h | |||
@@ -372,6 +372,33 @@ 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 | /** | ||
375 | * struct station_parameters - station parameters | 402 | * struct station_parameters - station parameters |
376 | * | 403 | * |
377 | * Used to change and create a new station. | 404 | * Used to change and create a new station. |
@@ -387,6 +414,7 @@ enum plink_actions { | |||
387 | * @listen_interval: listen interval or -1 for no change | 414 | * @listen_interval: listen interval or -1 for no change |
388 | * @aid: AID or zero for no change | 415 | * @aid: AID or zero for no change |
389 | * @plink_action: plink action to take | 416 | * @plink_action: plink action to take |
417 | * @plink_state: set the peer link state for a station | ||
390 | * @ht_capa: HT capabilities of station | 418 | * @ht_capa: HT capabilities of station |
391 | */ | 419 | */ |
392 | struct station_parameters { | 420 | struct station_parameters { |
@@ -397,6 +425,7 @@ struct station_parameters { | |||
397 | u16 aid; | 425 | u16 aid; |
398 | u8 supported_rates_len; | 426 | u8 supported_rates_len; |
399 | u8 plink_action; | 427 | u8 plink_action; |
428 | u8 plink_state; | ||
400 | struct ieee80211_ht_cap *ht_capa; | 429 | struct ieee80211_ht_cap *ht_capa; |
401 | }; | 430 | }; |
402 | 431 | ||