svn commit: r191640 - projects/mesh11s/sys/net80211
Rui Paulo
rpaulo at FreeBSD.org
Tue Apr 28 21:48:08 UTC 2009
Author: rpaulo
Date: Tue Apr 28 21:48:07 2009
New Revision: 191640
URL: http://svn.freebsd.org/changeset/base/191640
Log:
First code to handle action frames.
Add a comment so I don't forget to send peering requests.
Sponsored by: The FreeBSD Foundation
Modified:
projects/mesh11s/sys/net80211/ieee80211_mesh.c
Modified: projects/mesh11s/sys/net80211/ieee80211_mesh.c
==============================================================================
--- projects/mesh11s/sys/net80211/ieee80211_mesh.c Tue Apr 28 21:00:50 2009 (r191639)
+++ projects/mesh11s/sys/net80211/ieee80211_mesh.c Tue Apr 28 21:48:07 2009 (r191640)
@@ -362,6 +362,13 @@ mesh_recv_mgmt(struct ieee80211_node *ni
subtype, rssi, noise, rstamp);
return;
}
+
+ /*
+ * If it's a beacon for our mesh and we haven't already
+ * peered with this node, send him a mgmt frame with
+ * peer link IE.
+ */
+ /* XXX */
break;
}
case IEEE80211_FC0_SUBTYPE_PROBE_REQ:
@@ -436,6 +443,11 @@ mesh_recv_mgmt(struct ieee80211_node *ni
break;
}
case IEEE80211_FC0_SUBTYPE_ACTION:
+ if (vap->iv_state == IEEE80211_S_RUN) {
+ if (ieee80211_parse_action(ni, m0) == 0)
+ ic->ic_recv_action(ni, frm, efrm);
+ } else
+ vap->iv_stats.is_rx_mgtdiscard++;
break;
case IEEE80211_FC0_SUBTYPE_AUTH:
case IEEE80211_FC0_SUBTYPE_ASSOC_REQ:
More information about the svn-src-projects
mailing list