svn commit: r195521 - projects/mesh11s/sys/net80211
Sam Leffler
sam at FreeBSD.org
Thu Jul 9 23:50:37 UTC 2009
Author: sam
Date: Thu Jul 9 23:50:37 2009
New Revision: 195521
URL: http://svn.freebsd.org/changeset/base/195521
Log:
add a hack to flush pending frames in the stageq waiting for path discovery;
this belongs in the hwmp module hidden behind a method pointer and probably
is needed for other cases but will leave that for rui
Modified:
projects/mesh11s/sys/net80211/ieee80211_mesh.c
Modified: projects/mesh11s/sys/net80211/ieee80211_mesh.c
==============================================================================
--- projects/mesh11s/sys/net80211/ieee80211_mesh.c Thu Jul 9 23:12:47 2009 (r195520)
+++ projects/mesh11s/sys/net80211/ieee80211_mesh.c Thu Jul 9 23:50:37 2009 (r195521)
@@ -348,6 +348,7 @@ ieee80211_mesh_detach(struct ieee80211co
static void
mesh_vdetach_peers(void *arg, struct ieee80211_node *ni)
{
+ struct ieee80211com *ic = ni->ni_ic;
uint16_t args[3];
if (ni->ni_mlstate == IEEE80211_NODE_MESH_ESTABLISHED) {
@@ -360,6 +361,9 @@ mesh_vdetach_peers(void *arg, struct iee
args);
}
callout_stop(&ni->ni_mltimer);
+ /* XXX belongs in hwmp */
+ ieee80211_ageq_drain_node(&ic->ic_stageq,
+ (void *)(uintptr_t) ieee80211_mac_hash(ic, ni->ni_macaddr));
}
More information about the svn-src-projects
mailing list