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

Rui Paulo rpaulo at FreeBSD.org
Mon Apr 27 11:12:20 UTC 2009


Author: rpaulo
Date: Mon Apr 27 11:11:59 2009
New Revision: 191557
URL: http://svn.freebsd.org/changeset/base/191557

Log:
  Add comments so that I don't forget to add these fields to beacons/data.
  
  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	Mon Apr 27 10:15:50 2009	(r191556)
+++ projects/mesh11s/sys/net80211/ieee80211_output.c	Mon Apr 27 11:11:59 2009	(r191557)
@@ -2446,6 +2446,15 @@ ieee80211_beacon_construct(struct mbuf *
 	}
 	if (vap->iv_opmode == IEEE80211_M_MBSS) {
 		frm = ieee80211_add_meshid(frm, vap);
+		/* frm = ieee80211_add_meshconf(frm, vap); */
+		/* struct ieee80211_tim_ie *tie = (struct ieee80211_tim_ie *) frm;
+		tie->tim_ie = IEEE80211_ELEMID_TIM;
+		tie->tim_len = 4;       /* length *
+		tie->tim_count = 0;     /* DTIM count *
+		tie->tim_period = vap->iv_dtim_period;  /* DTIM period *
+		tie->tim_bitctl = 0;    /* bitmap control *
+		tie->tim_bitmap[0] = 0; /* Partial Virtual Bitmap *
+		frm += sizeof(struct ieee80211_tim_ie); */
 	}
 	bo->bo_tim_trailer_len = frm - bo->bo_tim_trailer;
 	bo->bo_csa_trailer_len = frm - bo->bo_csa;


More information about the svn-src-projects mailing list