Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/net80211 Get the sense of ra->ra_nok and ra->ra_nfail ri...
details: https://anonhg.NetBSD.org/src/rev/739c8366f7ed
branches: trunk
changeset: 565091:739c8366f7ed
user: dyoung <dyoung%NetBSD.org@localhost>
date: Mon Mar 29 04:09:45 2004 +0000
description:
Get the sense of ra->ra_nok and ra->ra_nfail right. They indicate
successes and failures, respectively, not the other way around.
diffstat:
sys/net80211/ieee80211_rssadapt.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r f18d3c899e0a -r 739c8366f7ed sys/net80211/ieee80211_rssadapt.c
--- a/sys/net80211/ieee80211_rssadapt.c Mon Mar 29 04:08:14 2004 +0000
+++ b/sys/net80211/ieee80211_rssadapt.c Mon Mar 29 04:09:45 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ieee80211_rssadapt.c,v 1.3 2004/03/17 17:00:34 dyoung Exp $ */
+/* $NetBSD: ieee80211_rssadapt.c,v 1.4 2004/03/29 04:09:45 dyoung Exp $ */
/*-
* Copyright (c) 2003, 2004 David Young. All rights reserved.
*
@@ -175,7 +175,7 @@
u_int16_t last_thr;
u_int i, thridx, top;
- ra->ra_nok++;
+ ra->ra_nfail++;
if (id->id_rateidx >= rs->rs_nrates) {
RSSADAPT_PRINTF(("ieee80211_rssadapt_lower_rate: "
@@ -218,7 +218,7 @@
int j;
#endif
- ra->ra_nfail++;
+ ra->ra_nok++;
if (!ratecheck(&ra->ra_last_raise, &ra->ra_raise_interval))
return;
Home |
Main Index |
Thread Index |
Old Index