svn commit: r191149 - projects/mesh11s/sys/net80211

Rui Paulo rpaulo at FreeBSD.org
Thu Apr 16 14:20:25 PDT 2009


Author: rpaulo
Date: Thu Apr 16 21:20:24 2009
New Revision: 191149
URL: http://svn.freebsd.org/changeset/base/191149

Log:
  Add more defines related to mesh configuration elem. id.
  
  Sponsored by:	The FreeBSD Foundation

Modified:
  projects/mesh11s/sys/net80211/ieee80211.h

Modified: projects/mesh11s/sys/net80211/ieee80211.h
==============================================================================
--- projects/mesh11s/sys/net80211/ieee80211.h	Thu Apr 16 20:30:28 2009	(r191148)
+++ projects/mesh11s/sys/net80211/ieee80211.h	Thu Apr 16 21:20:24 2009	(r191149)
@@ -786,10 +786,21 @@ struct ieee80211_meshconf_ie {
 	uint32_t	conf_apspi;	/* Active Path Sel. Proto. ID */
 	uint32_t	conf_apsmi;	/* APS Metric Identifier */
 	uint32_t	conf_ccmi;	/* Congestion Control Mode ID  */
-	uint8_t		conf_meshinfo;
-	uint8_t		conf_meshcap;
+	uint8_t		conf_finfo;	/* Formation Information */
+	uint8_t		conf_cap;
 } __packed;
 
+#define	IEEE80211_MESHCONF_APSPI_HWMP_OUI	0x000fac
+#define	IEEE80211_MESHCONF_APSPI_HWMP_VALUE	0xff	/* XXX Linux */
+#define	IEEE80211_MESHCONF_APSMI_AIRTIME_OUI	0x000fac
+#define	IEEE80211_MESHCONF_APSMI_AIRTIME_VALUE	0xff	/* XXX Linux */
+#define	IEEE80211_MESHCONF_CCMI_DEFAULT_OUI	0x000fac
+#define	IEEE80211_MESHCONF_CCMI_DEFAULT_VALUE	0xff	/* XXX Linux */
+#define	IEEE80211_MESHCONF_CCMI_NULL_OUI	0x000fac
+#define	IEEE80211_MESHCONF_CCMI_NULL_VALUE	255
+#define	IEEE80211_MESHCONF_FORM_MP		(1 << 1) /* connected to portal */
+#define	IEEE80211_MESHCONF_FORM_NEIGH		(1 << 4) /* no of neighbours */
+
 /* Mesh Identifier */
 struct ieee80211_meshid_ie {
 	uint8_t		id_ie;		/* IEEE80211_ELEMID_MESHID */
@@ -797,7 +808,7 @@ struct ieee80211_meshid_ie {
 } __packed;
 
 #define	IEEE80211_MESHID_MAX_SIZE \
-	(sizeof(struct ieee80211_meshid_ie) + 32)
+	(sizeof(struct ieee80211_meshid_ie) + IEEE80211_NWID_LEN)
 
 /* Link Metric Report */
 struct ieee80211_meshlink_ie {


More information about the svn-src-projects mailing list