Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/ic Use WI_RID_DATA_RATES to fetch the supported rate...
details: https://anonhg.NetBSD.org/src/rev/25433459383f
branches: trunk
changeset: 535132:25433459383f
user: thorpej <thorpej%NetBSD.org@localhost>
date: Sun Aug 11 01:35:10 2002 +0000
description:
Use WI_RID_DATA_RATES to fetch the supported rates. From OpenBSD.
diffstat:
sys/dev/ic/wi.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (32 lines):
diff -r 9642c5f8a384 -r 25433459383f sys/dev/ic/wi.c
--- a/sys/dev/ic/wi.c Sun Aug 11 01:30:28 2002 +0000
+++ b/sys/dev/ic/wi.c Sun Aug 11 01:35:10 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: wi.c,v 1.77 2002/08/11 01:30:28 thorpej Exp $ */
+/* $NetBSD: wi.c,v 1.78 2002/08/11 01:35:10 thorpej Exp $ */
/*
* Copyright (c) 1997, 1998, 1999
@@ -70,7 +70,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: wi.c,v 1.77 2002/08/11 01:30:28 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: wi.c,v 1.78 2002/08/11 01:35:10 thorpej Exp $");
#define WI_HERMES_AUTOINC_WAR /* Work around data write autoinc bug. */
#define WI_HERMES_STATS_WAR /* Work around stats counter bug. */
@@ -319,10 +319,10 @@
gen.wi_val != le16toh(0))
sc->wi_flags |= WI_FLAGS_HAS_WEP;
- /* Find supported rates (Prism2 only). */
- gen.wi_type = WI_RID_SUPPORT_RATE;
+ /* Find supported rates. */
+ gen.wi_type = WI_RID_DATA_RATES;
gen.wi_len = 2;
- if (sc->sc_firmware_type != WI_INTERSIL || wi_read_record(sc, &gen))
+ if (wi_read_record(sc, &gen))
sc->wi_supprates = WI_SUPPRATES_1M | WI_SUPPRATES_2M |
WI_SUPPRATES_5M | WI_SUPPRATES_11M;
else
Home |
Main Index |
Thread Index |
Old Index