diff options
author | Marcus Glocker <mglocker@cvs.openbsd.org> | 2006-09-23 13:44:43 +0000 |
---|---|---|
committer | Marcus Glocker <mglocker@cvs.openbsd.org> | 2006-09-23 13:44:43 +0000 |
commit | bbf4d62d8ecf935cd36bdeaa8bc2224d7fd7fa8e (patch) | |
tree | 2f5a48ff671ad62f5e8d7a3844421cec8b2cf46f | |
parent | 620f8a907567eff0d52e59cbdea2d935e6776cf9 (diff) |
In pgt_media_status() also DPRINTF if the rate == 0.
-rw-r--r-- | sys/dev/ic/pgt.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/dev/ic/pgt.c b/sys/dev/ic/pgt.c index eacc7d4e9fd..71fe1fdb019 100644 --- a/sys/dev/ic/pgt.c +++ b/sys/dev/ic/pgt.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pgt.c,v 1.13 2006/09/23 13:29:58 mglocker Exp $ */ +/* $OpenBSD: pgt.c,v 1.14 2006/09/23 13:44:42 mglocker Exp $ */ /* * Copyright (c) 2006 Claudio Jeker <claudio@openbsd.org> @@ -1920,7 +1920,6 @@ pgt_ieee80211_send_mgmt(struct ieee80211com *ic, struct ieee80211_node *ni, return (EOPNOTSUPP); } - int pgt_net_attach(struct pgt_softc *sc) { @@ -2127,12 +2126,12 @@ pgt_media_status(struct ifnet *ifp, struct ifmediareq *imr) if (pgt_oid_get(sc, PGT_OID_LINK_STATE, &rate, sizeof(rate))) return; rate = letoh32(rate); - if (rate == 0) - return; if (sc->sc_debug & SC_DEBUG_LINK) { DPRINTF(("%s: %s: link rate %u\n", sc->sc_dev.dv_xname, __func__, rate)); } + if (rate == 0) + return; } imr->ifm_status = IFM_AVALID; |