PERFORCE change 64770 for review

Sam Leffler sam at FreeBSD.org
Tue Nov 9 17:19:41 PST 2004


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

Change 64770 by sam at 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


More information about the p4-projects mailing list