Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/ic In ad hoc mode, start the ath rate adaptation wit...
details: https://anonhg.NetBSD.org/src/rev/6a96452ee41e
branches: trunk
changeset: 572468:6a96452ee41e
user: dyoung <dyoung%NetBSD.org@localhost>
date: Tue Jan 04 01:45:04 2005 +0000
description:
In ad hoc mode, start the ath rate adaptation with the lowest, most
robust transmit bit rate. From Greg Troxel.
diffstat:
sys/dev/ic/ath.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 38e48c1e78db -r 6a96452ee41e sys/dev/ic/ath.c
--- a/sys/dev/ic/ath.c Tue Jan 04 01:04:52 2005 +0000
+++ b/sys/dev/ic/ath.c Tue Jan 04 01:45:04 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ath.c,v 1.41 2005/01/04 00:56:51 dyoung Exp $ */
+/* $NetBSD: ath.c,v 1.42 2005/01/04 01:45:04 dyoung Exp $ */
/*-
* Copyright (c) 2002-2004 Sam Leffler, Errno Consulting
@@ -41,7 +41,7 @@
__FBSDID("$FreeBSD: src/sys/dev/ath/if_ath.c,v 1.54 2004/04/05 04:42:42 sam Exp $");
#endif
#ifdef __NetBSD__
-__KERNEL_RCSID(0, "$NetBSD: ath.c,v 1.41 2005/01/04 00:56:51 dyoung Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ath.c,v 1.42 2005/01/04 01:45:04 dyoung Exp $");
#endif
/*
@@ -3524,7 +3524,7 @@
ni = ic->ic_bss;
an = (struct ath_node *) ni;
an->an_tx_ok = an->an_tx_err = an->an_tx_retr = an->an_tx_upper = 0;
- if (state == IEEE80211_S_RUN) {
+ if (state == IEEE80211_S_RUN && ic->ic_opmode != IEEE80211_M_IBSS) {
/* start with highest negotiated rate */
KASSERT(ni->ni_rates.rs_nrates > 0,
("transition to RUN state w/ no rates!"));
Home |
Main Index |
Thread Index |
Old Index