PERFORCE change 115647 for review

Sepherosa Ziehau sephe at FreeBSD.org
Sat Mar 10 02:26:09 UTC 2007


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

Change 115647 by sephe at 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) {


More information about the p4-projects mailing list