aboutsummaryrefslogtreecommitdiffstats
path: root/net/wireless/mesh.c
diff options
context:
space:
mode:
authorJavier Cardona <javier@cozybit.com>2012-03-31 14:31:33 -0400
committerJohn W. Linville <linville@tuxdriver.com>2012-04-10 15:20:33 -0400
commitd299a1f21ea7ffd5114d099b2f92c867c495e8b3 (patch)
tree4325e83c1ad096be0d2fa71c52d1ad115ea23ca4 /net/wireless/mesh.c
parentdbf498fbafa2c23139d5a990e94ed78bafbbea19 (diff)
{nl,cfg}80211: Support for mesh synchronization
Report Toffset to userspace. Let userspace select the mesh synchronization method. Signed-off-by: Marco Porsch <marco.porsch@s2005.tu-chemnitz.de> Signed-off-by: Pavel Zubarev <pavel.zubarev@gmail.com> Signed-off-by: Javier Cardona <javier@cozybit.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/wireless/mesh.c')
-rw-r--r--net/wireless/mesh.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/net/wireless/mesh.c b/net/wireless/mesh.c
index ba21ab22187b..8c747fa9319b 100644
--- a/net/wireless/mesh.c
+++ b/net/wireless/mesh.c
@@ -38,6 +38,7 @@
38 38
39#define MESH_MAX_PREQ_RETRIES 4 39#define MESH_MAX_PREQ_RETRIES 4
40 40
41#define MESH_SYNC_NEIGHBOR_OFFSET_MAX 50
41 42
42const struct mesh_config default_mesh_config = { 43const struct mesh_config default_mesh_config = {
43 .dot11MeshRetryTimeout = MESH_RET_T, 44 .dot11MeshRetryTimeout = MESH_RET_T,
@@ -48,6 +49,7 @@ const struct mesh_config default_mesh_config = {
48 .element_ttl = MESH_DEFAULT_ELEMENT_TTL, 49 .element_ttl = MESH_DEFAULT_ELEMENT_TTL,
49 .auto_open_plinks = true, 50 .auto_open_plinks = true,
50 .dot11MeshMaxPeerLinks = MESH_MAX_ESTAB_PLINKS, 51 .dot11MeshMaxPeerLinks = MESH_MAX_ESTAB_PLINKS,
52 .dot11MeshNbrOffsetMaxNeighbor = MESH_SYNC_NEIGHBOR_OFFSET_MAX,
51 .dot11MeshHWMPactivePathTimeout = MESH_PATH_TIMEOUT, 53 .dot11MeshHWMPactivePathTimeout = MESH_PATH_TIMEOUT,
52 .dot11MeshHWMPpreqMinInterval = MESH_PREQ_MIN_INT, 54 .dot11MeshHWMPpreqMinInterval = MESH_PREQ_MIN_INT,
53 .dot11MeshHWMPperrMinInterval = MESH_PERR_MIN_INT, 55 .dot11MeshHWMPperrMinInterval = MESH_PERR_MIN_INT,
@@ -62,6 +64,7 @@ const struct mesh_config default_mesh_config = {
62}; 64};
63 65
64const struct mesh_setup default_mesh_setup = { 66const struct mesh_setup default_mesh_setup = {
67 .sync_method = IEEE80211_SYNC_METHOD_NEIGHBOR_OFFSET,
65 .path_sel_proto = IEEE80211_PATH_PROTOCOL_HWMP, 68 .path_sel_proto = IEEE80211_PATH_PROTOCOL_HWMP,
66 .path_metric = IEEE80211_PATH_METRIC_AIRTIME, 69 .path_metric = IEEE80211_PATH_METRIC_AIRTIME,
67 .ie = NULL, 70 .ie = NULL,