diff options
author | YanBo <dreamfly281@gmail.com> | 2008-09-22 01:30:32 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-09-24 16:18:02 -0400 |
commit | 79617deeebb9cf089e2bc2aad19743b1209043f6 (patch) | |
tree | 52c93b45d07ce3cd5c78be743446068602e90234 /net/mac80211/mesh.h | |
parent | 31e9ab2b180bccb3977b9a82ff357ac4c6ee3c83 (diff) |
mac80211: mesh portal functionality support
Currently the mesh code doesn't support bridging mesh point interfaces
with wired ethernet or AP to construct an MPP or MAP. This patch adds
code to support the "6 address frame format packet" functionality to
mesh point interfaces. Now the mesh network can be used as backhaul
for end to end communication.
Signed-off-by: Li YanBo <dreamfly281@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/mesh.h')
-rw-r--r-- | net/mac80211/mesh.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/net/mac80211/mesh.h b/net/mac80211/mesh.h index 8ee414a0447..e10471c6ba4 100644 --- a/net/mac80211/mesh.h +++ b/net/mac80211/mesh.h | |||
@@ -71,6 +71,7 @@ enum mesh_path_flags { | |||
71 | */ | 71 | */ |
72 | struct mesh_path { | 72 | struct mesh_path { |
73 | u8 dst[ETH_ALEN]; | 73 | u8 dst[ETH_ALEN]; |
74 | u8 mpp[ETH_ALEN]; /* used for MPP or MAP */ | ||
74 | struct ieee80211_sub_if_data *sdata; | 75 | struct ieee80211_sub_if_data *sdata; |
75 | struct sta_info *next_hop; | 76 | struct sta_info *next_hop; |
76 | struct timer_list timer; | 77 | struct timer_list timer; |
@@ -226,6 +227,9 @@ int mesh_nexthop_lookup(struct sk_buff *skb, | |||
226 | void mesh_path_start_discovery(struct ieee80211_sub_if_data *sdata); | 227 | void mesh_path_start_discovery(struct ieee80211_sub_if_data *sdata); |
227 | struct mesh_path *mesh_path_lookup(u8 *dst, | 228 | struct mesh_path *mesh_path_lookup(u8 *dst, |
228 | struct ieee80211_sub_if_data *sdata); | 229 | struct ieee80211_sub_if_data *sdata); |
230 | struct mesh_path *mpp_path_lookup(u8 *dst, | ||
231 | struct ieee80211_sub_if_data *sdata); | ||
232 | int mpp_path_add(u8 *dst, u8 *mpp, struct ieee80211_sub_if_data *sdata); | ||
229 | struct mesh_path *mesh_path_lookup_by_idx(int idx, | 233 | struct mesh_path *mesh_path_lookup_by_idx(int idx, |
230 | struct ieee80211_sub_if_data *sdata); | 234 | struct ieee80211_sub_if_data *sdata); |
231 | void mesh_path_fix_nexthop(struct mesh_path *mpath, struct sta_info *next_hop); | 235 | void mesh_path_fix_nexthop(struct mesh_path *mpath, struct sta_info *next_hop); |