From owner-freebsd-current@FreeBSD.ORG Tue Nov 3 11:38:28 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5DD08106566B for ; Tue, 3 Nov 2009 11:38:28 +0000 (UTC) (envelope-from moonlightakkiy@yahoo.ca) Received: from web51804.mail.re2.yahoo.com (web51804.mail.re2.yahoo.com [206.190.38.235]) by mx1.freebsd.org (Postfix) with SMTP id 163C68FC16 for ; Tue, 3 Nov 2009 11:38:27 +0000 (UTC) Received: (qmail 24775 invoked by uid 60001); 3 Nov 2009 11:11:47 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.ca; s=s1024; t=1257246707; bh=uG9aAEfXsvpwsTZL+let79r1+IkNe10ZpE7naUMs/7M=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=Gr4hl8hgpmzeMYPsD5Vs/lbbnsW5r6K5inY4rHPmDdB4hj7vuq/sQ2Vx4NQcWsBOsfcmdzSXH9rkia6fnTpv8IgvAzJOc0kLNFyVND1uAIRGmi8OtRkDgKKUHQAT+2yUFOWBQiW6ulOe1HxE1Z5qZwh7o6aLqaW2gPHlC5KkY+Q= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.ca; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=bsAqoM46xteZLDRdNr1R0oC5P5RXSNoBWMOgkAK6P1Rxze4uvkxlJcSOOa2qBW5h70c+YCTHdpsQ3lQI24Lg99MknXWyvaU1NvIqVYwdfmd0fNeidpGUcf02H39VDsjjPkSSYTKnLb1yqbJJ41awICGXs+9xmAe7f7C9XfZPyws=; Message-ID: <143477.23789.qm@web51804.mail.re2.yahoo.com> X-YMail-OSG: w9kBAoYVM1mpTXE7xNa6VROp4XihppulMcIfVpGxHVHcToTCpTZdPMTO2XJffy.cLweKIESCbKkeLQFljdSGTkF00whCWF8kmcl8iIknGyrnFmhuDQj_whd0TJCLK54HuWdEPNcG94j6ct9C9BEHsNM4izc6nGnU0An8Rw9SIN4j0mpz1aGKIm30GSHs4dgH2vzIrYvIw2bRKxJRUPcI8pLImz_AUFKaB6Rc.vUBeMhnthm0vorZzks5r4PZaeEqF3yxTgv8q9opmNGOlNXPNOmHJuxhilQlbCyj3Je8HWBwMNZuMmUNno8nkTBoZDJV8keirWaA20TRvnjx3hVZfdD0_iI7B5pBKnxSvGnUKjTQYB0dPHvTehkwUPatPe5SCZVO3gbwYWKj.uXmxY.UTpOdnwTFke551rAfuNds8PqNINq4GwGC5M8js4xfXN10OdjeAwLz8kjxcCpD6YM.6G5DmR83cQIf6M4yCK9lju08lRCHR9U5b0EsrLsdDC382jtDaaLjlpwL6v5JPLs3Uje.Oh5Un3DnxOPOx4JO1qwDJSLZMNeUGb8WvW6WefIav31aZL.Fa0kH7.5CvDh2YjuIDjj1FreaIYebyg-- Received: from [75.158.17.63] by web51804.mail.re2.yahoo.com via HTTP; Tue, 03 Nov 2009 03:11:47 PST X-Mailer: YahooMailRC/211.6 YahooMailWebService/0.7.361.4 Date: Tue, 3 Nov 2009 03:11:47 -0800 (PST) From: PseudoCylon To: freebsd-current@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Wireless usb + wep = no usbd_do_request X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Nov 2009 11:38:28 -0000 Hi, I'm porting a wireless usb driver (if_run) to freebsd current, and I got stuck. Once I "ifconfig wlan0 wepkey 1:0x... weptxkey 1" I cannot call usbd_do_request() any more. Even ifconfig didn't exit. Chipset supports h/w en/decryption, so cannot write keys on chip. (It works without encryption, by the way.) So, I tried the same thing on another device, linksys wusb54gc with if_rum. It worked fine, but about 3 to 4 min later. (Just left it alone.) It started giving error rum0: could not multi read MAC register: USB_ERR_TIMEOUT and rum0: device timeout when ifconfig wlan0 down, rum0: could not multi write MAC register: USB_ERR_TIMEOUT which means failed on usbd_do_request() (This could be totally different issue.) Any ideas, patches, or walkaround? More info #uname -a FreeBSD 9.0-CURRENT FreeBSD 9.0-CURRENT #1 r198150M: Fri Oct 16 22:44:08 UTC 2009 amd64 ddb trace output 20+ minutes after "ifconfig wepkey" (using if_run) Tracing command ifconfig pid 1586 tid 100159 td 0xffffff000b3d3a80 sched_switch() at sched_switch+0x180 mi_switch() at mi_switch+0x21d sleepq_switch() at sleepq_switch+0x123 sleepq_wait() at sleepq_wait+0x4d _sleep() at _sleep+0x357 taskqueue_drain() at taskqueue_drain+0xc2 ieee80211_waitfor_parent() at ieee80211_waitfor_parent+0x3e ieee80211_ioctl() at ieee80211_ioctl+0x162 ifioctl() at ifioctl+0xde4 kern_ioctl() at kern_ioctl+0xc5 ioctl() at ioctl+0xfd syscall() at syscall+0x1af Xfast_syscall() at Xfast_syscall+0xe1 Also, sleep mutex became spin mutex. I get a panic panic: mtx_lock of spin mutex(null) It works fine before ifconfig wepkey. __________________________________________________________________ Yahoo! Canada Toolbar: Search from anywhere on the web, and bookmark your favourite sites. Download it now http://ca.toolbar.yahoo.com.