From owner-p4-projects@FreeBSD.ORG Thu Aug 3 14:58:57 2006 Return-Path: X-Original-To: p4-projects@freebsd.org Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 7254116A4E1; Thu, 3 Aug 2006 14:58:57 +0000 (UTC) X-Original-To: perforce@FreeBSD.org Delivered-To: perforce@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4D27316A4DD for ; Thu, 3 Aug 2006 14:58:57 +0000 (UTC) (envelope-from hselasky@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 291CA43D46 for ; Thu, 3 Aug 2006 14:58:57 +0000 (GMT) (envelope-from hselasky@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id k73Ewv6o035584 for ; Thu, 3 Aug 2006 14:58:57 GMT (envelope-from hselasky@FreeBSD.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id k73Ewunx035581 for perforce@freebsd.org; Thu, 3 Aug 2006 14:58:56 GMT (envelope-from hselasky@FreeBSD.org) Date: Thu, 3 Aug 2006 14:58:56 GMT Message-Id: <200608031458.k73Ewunx035581@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to hselasky@FreeBSD.org using -f From: Hans Petter Selasky To: Perforce Change Reviews Cc: Subject: PERFORCE change 103117 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Aug 2006 14:58:57 -0000 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 -#include +#include +#include __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);