Date: Thu, 3 Aug 2006 14:58:56 GMT From: Hans Petter Selasky <hselasky@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 103117 for review Message-ID: <200608031458.k73Ewunx035581@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=103117 Change 103117 by hselasky@hselasky_mini_itx on 2006/08/03 14:58:03 Add some more debugging statements. Cleanup some include lines. Affected files ... .. //depot/projects/usb/src/sys/dev/usb/if_ural.c#7 edit Differences ... ==== //depot/projects/usb/src/sys/dev/usb/if_ural.c#7 (text+ko) ==== @@ -63,8 +63,8 @@ #include "usbdevs.h" -#include <dev/usb/../usb/if_uralreg.h> -#include <dev/usb/../usb/if_uralvar.h> +#include <dev/usb/if_uralreg.h> +#include <dev/usb/if_uralvar.h> __FBSDID("$FreeBSD: src/sys/dev/usb/if_ural.c,v 1.38 2006/05/16 14:36:32 phk Exp $"); @@ -1544,7 +1544,7 @@ xfer->timeout = RAL_TX_TIMEOUT; - DPRINTF(sc, 10, "sending mgt frame len=%u rate=%u xfer len=%u\n", + DPRINTF(sc, 10, "sending frame len=%u rate=%u xfer len=%u\n", m0->m_pkthdr.len, rate, xfer->length); m_freem(m0); @@ -2443,6 +2443,8 @@ sc->sc_tx_ant = (val >> 2) & 0x3; sc->sc_nb_ant = (val & 0x3); + DPRINTF(sc, 0, "val = 0x%04x\n", val); + /* read MAC address */ ural_cfg_eeprom_read(sc, RAL_EEPROM_ADDRESS, ic->ic_myaddr, sizeof(ic->ic_myaddr)); @@ -2579,6 +2581,9 @@ ural_cfg_read_multi(sc, RAL_STA_CSR0, sc->sc_sta, sizeof(sc->sc_sta)); + DPRINTF(sc, 0, "rx_ant=%d, tx_ant=%d\n", + sc->sc_rx_ant, sc->sc_tx_ant); + ural_cfg_set_txantenna(sc, sc->sc_tx_ant); ural_cfg_set_rxantenna(sc, sc->sc_rx_ant);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200608031458.k73Ewunx035581>