PERFORCE change 39583 for review

Sam Leffler sam at FreeBSD.org
Sun Oct 12 10:28:54 PDT 2003


http://perforce.freebsd.org/chv.cgi?CH=39583

Change 39583 by sam at sam_ebb on 2003/10/12 10:28:05

	include a DS element in probe response frames

Affected files ...

.. //depot/projects/netperf/sys/net80211/ieee80211_output.c#7 edit

Differences ...

==== //depot/projects/netperf/sys/net80211/ieee80211_output.c#7 (text+ko) ====

@@ -354,6 +354,7 @@
 		 *	[2] cabability information
 		 *	[tlv] ssid
 		 *	[tlv] supported rates
+		 *	[tlv] parameter set (DS)
 		 *	[tlv] parameter set (IBSS)
 		 *	[tlv] extended supported rates
 		 */
@@ -361,6 +362,7 @@
 			 8 + 2 + 2 + 2
 		       + 2 + ni->ni_esslen
 		       + 2 + IEEE80211_RATE_SIZE
+		       + (ic->ic_phytype != IEEE80211_T_FH ? 3 : 0)
 		       + 6
 		       + 2 + (IEEE80211_RATE_MAXSIZE - IEEE80211_RATE_SIZE));
 		if (m == NULL)
@@ -388,6 +390,13 @@
 				ic->ic_bss->ni_esslen);
 		frm = ieee80211_add_rates(frm, &ic->ic_bss->ni_rates);
 
+		/* XXX insert FH parameter set */
+		if (ic->ic_phytype != IEEE80211_T_FH) {
+			*frm++ = IEEE80211_ELEMID_DSPARMS;
+			*frm++ = 1;
+			*frm++ = ieee80211_chan2ieee(ic, ni->ni_chan);
+		}
+
 		if (ic->ic_opmode == IEEE80211_M_IBSS) {
 			*frm++ = IEEE80211_ELEMID_IBSSPARMS;
 			*frm++ = 2;


More information about the p4-projects mailing list