From owner-freebsd-stable@FreeBSD.ORG Fri Feb 25 09:11:27 2011 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 120C91065672 for ; Fri, 25 Feb 2011 09:11:27 +0000 (UTC) (envelope-from bschmidt@techwires.net) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by mx1.freebsd.org (Postfix) with ESMTP id 972788FC15 for ; Fri, 25 Feb 2011 09:11:26 +0000 (UTC) Received: by fxm19 with SMTP id 19so1628908fxm.13 for ; Fri, 25 Feb 2011 01:11:25 -0800 (PST) Received: by 10.223.70.136 with SMTP id d8mr2372729faj.3.1298625079901; Fri, 25 Feb 2011 01:11:19 -0800 (PST) Received: from jessie.localnet (p5B2ECDCE.dip0.t-ipconnect.de [91.46.205.206]) by mx.google.com with ESMTPS id r24sm155985fax.3.2011.02.25.01.11.17 (version=SSLv3 cipher=OTHER); Fri, 25 Feb 2011 01:11:18 -0800 (PST) Sender: Bernhard Schmidt From: Bernhard Schmidt To: joseph Date: Fri, 25 Feb 2011 10:11:03 +0100 User-Agent: KMail/1.13.5 (Linux/2.6.32-28-generic; KDE/4.4.5; i686; ; ) References: <4D66C4CB.1060207@2egos.de> In-Reply-To: <4D66C4CB.1060207@2egos.de> MIME-Version: 1.0 Content-Type: Multipart/Mixed; boundary="Boundary-00=_nI3ZNUq3EhRKLCq" Message-Id: <201102251011.03839.bschmidt@freebsd.org> Cc: freebsd-stable@freebsd.org Subject: Re: urtw0: could not allocate USB transfers X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: bschmidt@freebsd.org List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Feb 2011 09:11:27 -0000 --Boundary-00=_nI3ZNUq3EhRKLCq Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit On Thursday, February 24, 2011 21:51:23 joseph wrote: > Hello, > > i decided to get my laptop wlan via usb because my internal device isn't > supported yet. > The usb device is a logilink WL0006 unit its vendorid is 0x0bda and the > productid says 0x8187. > My search results say that this device depends on a RTL8187 chipset. > I tried both, load the kernel module at boot time and compile kernel > withe urtw, but i get the same output at dmesg > > device_attach: urtw0 attach returned 6 > urtw0: > on usbus3 > urtw0: could not allocate USB transfers, err=USB_ERR_NO_PIPE > device_attach: urtw0 attach returned 6 > > im running FreeBSD 8.1-RELEASE-p2 amd64. > > What might be the reason for this error? > Thanks for all hints. Well, I have no clue about USB.. but this smells like one of the endpoints is 'not there'. At least I can't find any reference to it in the Linux driver. Wanna give attached patch a shot? -- Bernhard --Boundary-00=_nI3ZNUq3EhRKLCq Content-Type: text/x-patch; charset="UTF-8"; name="urtw_ep.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="urtw_ep.diff" Index: if_urtw.c =================================================================== --- if_urtw.c (revision 218938) +++ if_urtw.c (working copy) @@ -633,19 +635,6 @@ static const struct usb_config urtw_8187l_usbconfi .callback = urtw_bulk_tx_callback, .timeout = URTW_DATA_TIMEOUT }, - [URTW_8187L_BULK_TX_NORMAL] = { - .type = UE_BULK, - .endpoint = 0x3, - .direction = UE_DIR_OUT, - .bufsize = URTW_TX_MAXSIZE, - .flags = { - .ext_buffer = 1, - .force_short_xfer = 1, - .pipe_bof = 1, - }, - .callback = urtw_bulk_tx_callback, - .timeout = URTW_DATA_TIMEOUT - }, }; static struct ieee80211vap *urtw_vap_create(struct ieee80211com *, @@ -1813,9 +1802,7 @@ urtw_tx_start(struct urtw_softc *sc, struct ieee80 break; } } else - xfer = (prior == URTW_PRIORITY_LOW) ? - sc->sc_xfer[URTW_8187L_BULK_TX_LOW] : - sc->sc_xfer[URTW_8187L_BULK_TX_NORMAL]; + xfer = sc->sc_xfer[URTW_8187L_BULK_TX_LOW]; STAILQ_INSERT_TAIL(&sc->sc_tx_pending, data, next); usbd_transfer_start(xfer); --Boundary-00=_nI3ZNUq3EhRKLCq--