svn commit: r192823 - projects/mesh11s/sys/net80211
Rui Paulo
rpaulo at FreeBSD.org
Tue May 26 17:54:56 UTC 2009
Author: rpaulo
Date: Tue May 26 17:54:55 2009
New Revision: 192823
URL: http://svn.freebsd.org/changeset/base/192823
Log:
Add code to send link metric action frames.
Sponsored by: The FreeBSD Foundation
Modified:
projects/mesh11s/sys/net80211/ieee80211_output.c
Modified: projects/mesh11s/sys/net80211/ieee80211_output.c
==============================================================================
--- projects/mesh11s/sys/net80211/ieee80211_output.c Tue May 26 17:50:50 2009 (r192822)
+++ projects/mesh11s/sys/net80211/ieee80211_output.c Tue May 26 17:54:55 2009 (r192823)
@@ -753,6 +753,35 @@ ieee80211_send_action(struct ieee80211_n
break;
}
break;
+ case IEEE80211_ACTION_CAT_MESHLMETRIC:
+ switch (action) {
+ /*
+ * mesh link metric request
+ * [1] action
+ * [1] category
+ */
+ case IEEE80211_ACTION_MESHLMETRIC_REQ:
+ break;
+ /*
+ * mesh link metric reply
+ * [1] action
+ * [1] category
+ * [tlv] mesh link metric
+ */
+ case IEEE80211_ACTION_MESHLMETRIC_REP:
+ {
+ uint32_t *metric;
+
+ metric = vargs.ptrarg;
+ IEEE80211_NOTE(vap,
+ IEEE80211_MSG_ACTION | IEEE80211_MSG_MESH, ni,
+ "send LINK METRIC REPLY action: metric 0x%x",
+ metric);
+ frm = ieee80211_add_meshlmetric(frm, *metric);
+ break;
+ }
+ }
+ break;
case IEEE80211_ACTION_CAT_MESHPATH:
switch (action) {
/*
More information about the svn-src-projects
mailing list