diff options
Diffstat (limited to 'net/mac80211/mesh.h')
-rw-r--r-- | net/mac80211/mesh.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/net/mac80211/mesh.h b/net/mac80211/mesh.h index 3e52439ed112..fa7d9704c175 100644 --- a/net/mac80211/mesh.h +++ b/net/mac80211/mesh.h | |||
@@ -19,6 +19,20 @@ | |||
19 | /* Data structures */ | 19 | /* Data structures */ |
20 | 20 | ||
21 | /** | 21 | /** |
22 | * enum mesh_config_capab_flags - mesh config IE capability flags | ||
23 | * | ||
24 | * @MESHCONF_CAPAB_ACCEPT_PLINKS: STA is willing to establish | ||
25 | * additional mesh peerings with other mesh STAs | ||
26 | * @MESHCONF_CAPAB_FORWARDING: the STA forwards MSDUs | ||
27 | * @MESHCONF_CAPAB_TBTT_ADJUSTING: TBTT adjustment procedure is ongoing | ||
28 | */ | ||
29 | enum mesh_config_capab_flags { | ||
30 | MESHCONF_CAPAB_ACCEPT_PLINKS = BIT(0), | ||
31 | MESHCONF_CAPAB_FORWARDING = BIT(3), | ||
32 | MESHCONF_CAPAB_TBTT_ADJUSTING = BIT(5), | ||
33 | }; | ||
34 | |||
35 | /** | ||
22 | * enum mesh_path_flags - mac80211 mesh path flags | 36 | * enum mesh_path_flags - mac80211 mesh path flags |
23 | * | 37 | * |
24 | * | 38 | * |
@@ -56,12 +70,15 @@ enum mesh_path_flags { | |||
56 | * @MESH_WORK_GROW_MPP_TABLE: the mesh portals table is full and needs to | 70 | * @MESH_WORK_GROW_MPP_TABLE: the mesh portals table is full and needs to |
57 | * grow | 71 | * grow |
58 | * @MESH_WORK_ROOT: the mesh root station needs to send a frame | 72 | * @MESH_WORK_ROOT: the mesh root station needs to send a frame |
73 | * @MESH_WORK_DRIFT_ADJUST: time to compensate for clock drift relative to other | ||
74 | * mesh nodes | ||
59 | */ | 75 | */ |
60 | enum mesh_deferred_task_flags { | 76 | enum mesh_deferred_task_flags { |
61 | MESH_WORK_HOUSEKEEPING, | 77 | MESH_WORK_HOUSEKEEPING, |
62 | MESH_WORK_GROW_MPATH_TABLE, | 78 | MESH_WORK_GROW_MPATH_TABLE, |
63 | MESH_WORK_GROW_MPP_TABLE, | 79 | MESH_WORK_GROW_MPP_TABLE, |
64 | MESH_WORK_ROOT, | 80 | MESH_WORK_ROOT, |
81 | MESH_WORK_DRIFT_ADJUST, | ||
65 | }; | 82 | }; |
66 | 83 | ||
67 | /** | 84 | /** |
@@ -234,6 +251,7 @@ void ieee80211_mesh_init_sdata(struct ieee80211_sub_if_data *sdata); | |||
234 | void ieee80211_start_mesh(struct ieee80211_sub_if_data *sdata); | 251 | void ieee80211_start_mesh(struct ieee80211_sub_if_data *sdata); |
235 | void ieee80211_stop_mesh(struct ieee80211_sub_if_data *sdata); | 252 | void ieee80211_stop_mesh(struct ieee80211_sub_if_data *sdata); |
236 | void ieee80211_mesh_root_setup(struct ieee80211_if_mesh *ifmsh); | 253 | void ieee80211_mesh_root_setup(struct ieee80211_if_mesh *ifmsh); |
254 | struct ieee80211_mesh_sync_ops *ieee80211_mesh_sync_ops_get(u8 method); | ||
237 | 255 | ||
238 | /* Mesh paths */ | 256 | /* Mesh paths */ |
239 | int mesh_nexthop_lookup(struct sk_buff *skb, | 257 | int mesh_nexthop_lookup(struct sk_buff *skb, |
@@ -327,6 +345,7 @@ void ieee80211_mesh_quiesce(struct ieee80211_sub_if_data *sdata); | |||
327 | void ieee80211_mesh_restart(struct ieee80211_sub_if_data *sdata); | 345 | void ieee80211_mesh_restart(struct ieee80211_sub_if_data *sdata); |
328 | void mesh_plink_quiesce(struct sta_info *sta); | 346 | void mesh_plink_quiesce(struct sta_info *sta); |
329 | void mesh_plink_restart(struct sta_info *sta); | 347 | void mesh_plink_restart(struct sta_info *sta); |
348 | void mesh_sync_adjust_tbtt(struct ieee80211_sub_if_data *sdata); | ||
330 | #else | 349 | #else |
331 | #define mesh_allocated 0 | 350 | #define mesh_allocated 0 |
332 | static inline void | 351 | static inline void |