Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 May 2009 17:54:55 +0000 (UTC)
From:      Rui Paulo <rpaulo@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-projects@freebsd.org
Subject:   svn commit: r192823 - projects/mesh11s/sys/net80211
Message-ID:  <200905261754.n4QHstIv067438@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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) {
 		/*



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200905261754.n4QHstIv067438>