Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 10 Mar 2007 02:26:08 GMT
From:      Sepherosa Ziehau <sephe@FreeBSD.org>
To:        Perforce Change Reviews <perforce@FreeBSD.org>
Subject:   PERFORCE change 115647 for review
Message-ID:  <200703100226.l2A2Q8wc012510@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=115647

Change 115647 by sephe@sephe_zealot:sam_wifi on 2007/03/10 02:25:26

	Correct unit of assoc/reassoc request listen interval field,
	which should be number of beacons instead of TUs.
	
	Reviewed by:	sam@

Affected files ...

.. //depot/projects/wifi/sbin/ifconfig/ifconfig.8#20 edit
.. //depot/projects/wifi/sys/net80211/ieee80211_output.c#67 edit

Differences ...

==== //depot/projects/wifi/sbin/ifconfig/ifconfig.8#20 (text+ko) ====

@@ -814,7 +814,8 @@
 .Fl powersave
 to disable powersave operation.
 .It Cm powersavesleep Ar sleep
-Set the desired max powersave sleep time in milliseconds.
+Set the desired max powersave sleep time in TU's (1024 usecs).
+By default the max powersave sleep time is 100 TU's.
 .It Cm protmode Ar technique
 For interfaces operating in 802.11g, use the specified
 .Ar technique

==== //depot/projects/wifi/sys/net80211/ieee80211_output.c#67 (text+ko) ====

@@ -1771,7 +1771,10 @@
 		*(u_int16_t *)frm = htole16(capinfo);
 		frm += 2;
 
-		*(u_int16_t *)frm = htole16(ic->ic_lintval);
+		KASSERT(ic->ic_bss->ni_intval != 0,
+			("beacon interval is zero!"));
+		*(u_int16_t *)frm = htole16(howmany(ic->ic_lintval,
+						    ic->ic_bss->ni_intval));
 		frm += 2;
 
 		if (type == IEEE80211_FC0_SUBTYPE_REASSOC_REQ) {



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