diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 2002-03-30 20:18:46 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 2002-03-30 20:18:46 +0000 |
commit | f870189af529eb80530b564e44c9e195eced8b8a (patch) | |
tree | 3d5c0740d68096ece4dff09a77fa46969d234ae8 /sys/dev/ic/if_wi.c | |
parent | 63effaaef367c697a89a7276ec936d7d6f4a492e (diff) |
only trust supported rates report on prism2 cards
Diffstat (limited to 'sys/dev/ic/if_wi.c')
-rw-r--r-- | sys/dev/ic/if_wi.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/ic/if_wi.c b/sys/dev/ic/if_wi.c index 536704fe7bb..eceae6d4751 100644 --- a/sys/dev/ic/if_wi.c +++ b/sys/dev/ic/if_wi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_wi.c,v 1.29 2002/03/30 18:52:08 markus Exp $ */ +/* $OpenBSD: if_wi.c,v 1.30 2002/03/30 20:18:45 mickey Exp $ */ /* * Copyright (c) 1997, 1998, 1999 @@ -124,7 +124,7 @@ u_int32_t widebug = WIDEBUG; #if !defined(lint) && !defined(__OpenBSD__) static const char rcsid[] = - "$OpenBSD: if_wi.c,v 1.29 2002/03/30 18:52:08 markus Exp $"; + "$OpenBSD: if_wi.c,v 1.30 2002/03/30 20:18:45 mickey Exp $"; #endif /* lint */ #ifdef foo @@ -259,7 +259,7 @@ wi_attach(sc, print_cis) */ gen.wi_type = WI_RID_SUPPORT_RATE; gen.wi_len = 2; - if (wi_read_record(sc, &gen)) + if (!sc->sc_prism2 || wi_read_record(sc, &gen)) sc->wi_supprates = WI_SUPPRATES_1M | WI_SUPPRATES_2M | WI_SUPPRATES_5M | WI_SUPPRATES_11M; else |