Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Nov 2004 01:19:40 GMT
From:      Sam Leffler <sam@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 64770 for review
Message-ID:  <200411100119.iAA1JeiQ072949@repoman.freebsd.org>

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

Change 64770 by sam@sam_ebb on 2004/11/10 01:19:19

	when the rssi is required for a node that's just been created
	there is no avgrssi in the driver-private area--so fallback on
	ni_rssi recordered by the 802.11 layer

Affected files ...

.. //depot/projects/wifi/sys/dev/ath/if_ath.c#16 edit

Differences ...

==== //depot/projects/wifi/sys/dev/ath/if_ath.c#16 (text+ko) ====

@@ -2132,6 +2132,8 @@
 	int32_t rssi;
 
 	rssi = HAL_EP_RND(avgrssi, HAL_RSSI_EP_MULTIPLIER);
+	if (rssi == 0)
+		rssi = ni->ni_rssi;
 	/* NB: theoretically we shouldn't need this, but be paranoid */
 	return rssi < 0 ? 0 : rssi > 127 ? 127 : rssi;
 #undef HAL_EP_RND



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