Historically, an(4), ath(4), atw(4), rtw(4), and wi(4) have printed

out their modes and rates at boot.  Revert to the historical
behavior.
This commit is contained in:
dyoung 2005-07-06 23:58:14 +00:00
parent 707b2b4ae1
commit 83a9bf2c5c
5 changed files with 15 additions and 12 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: an.c,v 1.35 2005/06/22 06:15:51 dyoung Exp $ */
/* $NetBSD: an.c,v 1.36 2005/07/06 23:58:14 dyoung Exp $ */
/*
* Copyright (c) 1997, 1998, 1999
* Bill Paul <wpaul@ctr.columbia.edu>. All rights reserved.
@ -77,7 +77,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: an.c,v 1.35 2005/06/22 06:15:51 dyoung Exp $");
__KERNEL_RCSID(0, "$NetBSD: an.c,v 1.36 2005/07/06 23:58:14 dyoung Exp $");
#include "bpfilter.h"
@ -320,6 +320,7 @@ an_attach(struct an_softc *sc)
sc->sc_attached = 1;
splx(s);
ieee80211_announce(ic);
return 0;
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: ath.c,v 1.53 2005/07/03 19:58:16 dyoung Exp $ */
/* $NetBSD: ath.c,v 1.54 2005/07/06 23:58:14 dyoung Exp $ */
/*-
* Copyright (c) 2002-2005 Sam Leffler, Errno Consulting
@ -41,7 +41,7 @@
__FBSDID("$FreeBSD: src/sys/dev/ath/if_ath.c,v 1.88 2005/04/12 17:56:43 sam Exp $");
#endif
#ifdef __NetBSD__
__KERNEL_RCSID(0, "$NetBSD: ath.c,v 1.53 2005/07/03 19:58:16 dyoung Exp $");
__KERNEL_RCSID(0, "$NetBSD: ath.c,v 1.54 2005/07/06 23:58:14 dyoung Exp $");
#endif
/*
@ -636,8 +636,7 @@ ath_attach(u_int16_t devid, struct ath_softc *sc)
printf("%s: WARNING: unable to establish power hook\n",
sc->sc_dev.dv_xname);
#endif
if (boothowto & AB_VERBOSE)
ieee80211_announce(ic);
ieee80211_announce(ic);
ath_announce(sc);
return 0;
bad2:

View File

@ -1,4 +1,4 @@
/* $NetBSD: atw.c,v 1.87 2005/06/26 04:37:25 dyoung Exp $ */
/* $NetBSD: atw.c,v 1.88 2005/07/06 23:58:14 dyoung Exp $ */
/*-
* Copyright (c) 1998, 1999, 2000, 2002, 2003, 2004 The NetBSD Foundation, Inc.
@ -41,7 +41,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: atw.c,v 1.87 2005/06/26 04:37:25 dyoung Exp $");
__KERNEL_RCSID(0, "$NetBSD: atw.c,v 1.88 2005/07/06 23:58:14 dyoung Exp $");
#include "bpfilter.h"
@ -879,6 +879,7 @@ atw_attach(struct atw_softc *sc)
sc->sc_txtap.at_ihdr.it_len = sizeof(sc->sc_txtapu);
sc->sc_txtap.at_ihdr.it_present = ATW_TX_RADIOTAP_PRESENT;
ieee80211_announce(ic);
return;
/*

View File

@ -1,4 +1,4 @@
/* $NetBSD: rtw.c,v 1.51 2005/07/06 23:44:16 dyoung Exp $ */
/* $NetBSD: rtw.c,v 1.52 2005/07/06 23:58:14 dyoung Exp $ */
/*-
* Copyright (c) 2004, 2005 David Young. All rights reserved.
*
@ -34,7 +34,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: rtw.c,v 1.51 2005/07/06 23:44:16 dyoung Exp $");
__KERNEL_RCSID(0, "$NetBSD: rtw.c,v 1.52 2005/07/06 23:58:14 dyoung Exp $");
#include "bpfilter.h"
@ -4076,6 +4076,7 @@ rtw_attach(struct rtw_softc *sc)
NEXT_ATTACH_STATE(sc, FINISHED);
ieee80211_announce(ic);
return;
err:
rtw_detach(sc);

View File

@ -1,4 +1,4 @@
/* $NetBSD: wi.c,v 1.203 2005/07/06 23:44:16 dyoung Exp $ */
/* $NetBSD: wi.c,v 1.204 2005/07/06 23:58:14 dyoung Exp $ */
/*-
* Copyright (c) 2004 The NetBSD Foundation, Inc.
@ -106,7 +106,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: wi.c,v 1.203 2005/07/06 23:44:16 dyoung Exp $");
__KERNEL_RCSID(0, "$NetBSD: wi.c,v 1.204 2005/07/06 23:58:14 dyoung Exp $");
#define WI_HERMES_AUTOINC_WAR /* Work around data write autoinc bug. */
#define WI_HERMES_STATS_WAR /* Work around stats counter bug. */
@ -515,6 +515,7 @@ wi_attach(struct wi_softc *sc, const u_int8_t *macaddr)
sc->sc_attached = 1;
splx(s);
ieee80211_announce(ic);
return 0;
}