diff options
author | Javier Cardona <javier@cozybit.com> | 2010-12-16 20:37:50 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-12-20 14:46:58 -0500 |
commit | c7108a7111cd9e592d6ad498be37276dbea75d2b (patch) | |
tree | dab25dbb5607c4151629bf747ee10b4487772419 /net/mac80211/mesh.c | |
parent | c80d545da3f7c0e534ccd4a780f322f80a92cff1 (diff) |
mac80211: Send mesh non-HWMP path selection frames to userspace
Let path selection frames for protocols other than HWMP be sent to
userspace via NL80211_CMD_REGISTER_FRAME. Also allow userspace to send
and receive mesh path selection frames.
Signed-off-by: Javier Cardona <javier@cozybit.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/mesh.c')
-rw-r--r-- | net/mac80211/mesh.c | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/net/mac80211/mesh.c b/net/mac80211/mesh.c index c326e009389d..8b5906c83f93 100644 --- a/net/mac80211/mesh.c +++ b/net/mac80211/mesh.c | |||
@@ -124,15 +124,6 @@ void mesh_accept_plinks_update(struct ieee80211_sub_if_data *sdata) | |||
124 | ieee80211_mesh_housekeeping_timer((unsigned long) sdata); | 124 | ieee80211_mesh_housekeeping_timer((unsigned long) sdata); |
125 | } | 125 | } |
126 | 126 | ||
127 | void mesh_ids_set_default(struct ieee80211_if_mesh *sta) | ||
128 | { | ||
129 | sta->mesh_pp_id = 0; /* HWMP */ | ||
130 | sta->mesh_pm_id = 0; /* Airtime */ | ||
131 | sta->mesh_cc_id = 0; /* Disabled */ | ||
132 | sta->mesh_sp_id = 0; /* Neighbor Offset */ | ||
133 | sta->mesh_auth_id = 0; /* Disabled */ | ||
134 | } | ||
135 | |||
136 | int mesh_rmc_init(struct ieee80211_sub_if_data *sdata) | 127 | int mesh_rmc_init(struct ieee80211_sub_if_data *sdata) |
137 | { | 128 | { |
138 | int i; | 129 | int i; |
@@ -525,6 +516,9 @@ void ieee80211_start_mesh(struct ieee80211_sub_if_data *sdata) | |||
525 | atomic_inc(&local->iff_allmultis); | 516 | atomic_inc(&local->iff_allmultis); |
526 | ieee80211_configure_filter(local); | 517 | ieee80211_configure_filter(local); |
527 | 518 | ||
519 | ifmsh->mesh_cc_id = 0; /* Disabled */ | ||
520 | ifmsh->mesh_sp_id = 0; /* Neighbor Offset */ | ||
521 | ifmsh->mesh_auth_id = 0; /* Disabled */ | ||
528 | set_bit(MESH_WORK_HOUSEKEEPING, &ifmsh->wrkq_flags); | 522 | set_bit(MESH_WORK_HOUSEKEEPING, &ifmsh->wrkq_flags); |
529 | ieee80211_mesh_root_setup(ifmsh); | 523 | ieee80211_mesh_root_setup(ifmsh); |
530 | ieee80211_queue_work(&local->hw, &sdata->work); | 524 | ieee80211_queue_work(&local->hw, &sdata->work); |
@@ -695,7 +689,6 @@ void ieee80211_mesh_init_sdata(struct ieee80211_sub_if_data *sdata) | |||
695 | /* Allocate all mesh structures when creating the first mesh interface. */ | 689 | /* Allocate all mesh structures when creating the first mesh interface. */ |
696 | if (!mesh_allocated) | 690 | if (!mesh_allocated) |
697 | ieee80211s_init(); | 691 | ieee80211s_init(); |
698 | mesh_ids_set_default(ifmsh); | ||
699 | setup_timer(&ifmsh->mesh_path_timer, | 692 | setup_timer(&ifmsh->mesh_path_timer, |
700 | ieee80211_mesh_path_timer, | 693 | ieee80211_mesh_path_timer, |
701 | (unsigned long) sdata); | 694 | (unsigned long) sdata); |