summaryrefslogtreecommitdiffstats
path: root/sys/net80211/ieee80211_mesh.c
diff options
context:
space:
mode:
authorrpaulo <rpaulo@FreeBSD.org>2009-10-19 18:46:22 +0000
committerrpaulo <rpaulo@FreeBSD.org>2009-10-19 18:46:22 +0000
commit224a3302020dcc2c55d6138ee19ed91305ae9176 (patch)
tree55a8e5222aa1f03a0a4abb6838c2f9ed5985dc0f /sys/net80211/ieee80211_mesh.c
parentfca91fda32721bc606e229d3aeb7600fb317d729 (diff)
downloadFreeBSD-src-224a3302020dcc2c55d6138ee19ed91305ae9176.zip
FreeBSD-src-224a3302020dcc2c55d6138ee19ed91305ae9176.tar.gz
Implement the missing support for updating the mesh conf number of
neighbors via ieee80211_beacon_notify(). MFC after: 3 days
Diffstat (limited to 'sys/net80211/ieee80211_mesh.c')
-rw-r--r--sys/net80211/ieee80211_mesh.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/sys/net80211/ieee80211_mesh.c b/sys/net80211/ieee80211_mesh.c
index 52a9e24..432ce23 100644
--- a/sys/net80211/ieee80211_mesh.c
+++ b/sys/net80211/ieee80211_mesh.c
@@ -739,10 +739,12 @@ mesh_linkchange(struct ieee80211_node *ni, enum ieee80211_mesh_mlstate state)
ni->ni_mlstate != IEEE80211_NODE_MESH_ESTABLISHED) {
KASSERT(ms->ms_neighbors < 65535, ("neighbor count overflow"));
ms->ms_neighbors++;
+ ieee80211_beacon_notify(vap, IEEE80211_BEACON_MESHCONF);
} else if (ni->ni_mlstate == IEEE80211_NODE_MESH_ESTABLISHED &&
state != IEEE80211_NODE_MESH_ESTABLISHED) {
KASSERT(ms->ms_neighbors > 0, ("neighbor count 0"));
ms->ms_neighbors--;
+ ieee80211_beacon_notify(vap, IEEE80211_BEACON_MESHCONF);
}
ni->ni_mlstate = state;
switch (state) {
@@ -2553,6 +2555,18 @@ ieee80211_mesh_init_neighbor(struct ieee80211_node *ni,
ieee80211_parse_meshid(ni, sp->meshid);
}
+void
+ieee80211_mesh_update_beacon(struct ieee80211vap *vap,
+ struct ieee80211_beacon_offsets *bo)
+{
+ KASSERT(vap->iv_opmode == IEEE80211_M_MBSS, ("not a MBSS vap"));
+
+ if (isset(bo->bo_flags, IEEE80211_BEACON_MESHCONF)) {
+ (void)ieee80211_add_meshconf(bo->bo_meshconf, vap);
+ clrbit(bo->bo_flags, IEEE80211_BEACON_MESHCONF);
+ }
+}
+
static int
mesh_ioctl_get80211(struct ieee80211vap *vap, struct ieee80211req *ireq)
{
OpenPOWER on IntegriCloud