Subject: CVS commit: src/sys
To: None <source-changes@NetBSD.org>
From: David Young <dyoung@netbsd.org>
List: source-changes
Date: 03/17/2004 17:00:35
Module Name:	src
Committed By:	dyoung
Date:		Wed Mar 17 17:00:35 UTC 2004

Modified Files:
	src/sys/dev/ic: wi.c
	src/sys/net80211: ieee80211_rssadapt.c ieee80211_rssadapt.h

Log Message:
In wi(4), wi_choose_rate used to contain device-independent code.
I have pulled that code into the function ieee80211_rssadapt_choose
so that I can re-use it in ath(4), atw(4), and in other drivers.

In rssadapt(9), I have also created a struct ieee80211_rssadapt_expavgctl
that contains parameters for rate adaptation. When IEEE80211_RSSADAPT_DEBUG
is enabled, I will using sysctl to expose an ieee80211_rssadapt_expavgctl
for each wireless device.

Also in rssadapt(9), I have introduced an interpolate() macro which
makes the exponential-averaging code more compact.


To generate a diff of this commit:
cvs rdiff -r1.154 -r1.155 src/sys/dev/ic/wi.c
cvs rdiff -r1.2 -r1.3 src/sys/net80211/ieee80211_rssadapt.c
cvs rdiff -r1.1 -r1.2 src/sys/net80211/ieee80211_rssadapt.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.