From owner-freebsd-current@FreeBSD.ORG Tue Jul 6 06:27:05 2010 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 A5AB3106566B for ; Tue, 6 Jul 2010 06:27:05 +0000 (UTC) (envelope-from moonlightakkiy@yahoo.ca) Received: from web51802.mail.re2.yahoo.com (web51802.mail.re2.yahoo.com [206.190.38.233]) by mx1.freebsd.org (Postfix) with SMTP id 484F58FC15 for ; Tue, 6 Jul 2010 06:27:05 +0000 (UTC) Received: (qmail 11017 invoked by uid 60001); 6 Jul 2010 06:26:58 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.ca; s=s1024; t=1278397618; bh=l8RtoUzS7DtMsaZ9HDFdXmGOA9FAdjkXZmLWvozm+eY=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:References:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type; b=iLBWl830tcBN424zVuTzXuzr+FldqBjQ1RaBSRGWbfapXDuSlFPb+WPETNBARTMkrvhm+EqOJB0rMlwJFP/0HGN4QRWvXS6xr8LXnTc/mmXG4kpenZ8MyFtg4OGcgZ/sc8szNkt6NR4Ssqd75cYZY5G2rGGAqONKCjWrsJh/UQ4= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.ca; h=Message-ID:X-YMail-OSG:Received:X-Mailer:References:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type; b=T8jb82y+of3EvT8AaIKU7MGag0JUSKC17vbehChQeV8TCo5Fn326lakIc1FulY1kblhtAi0UmVAP85yKUurnQ3keVJHD6FTmNpLjLTh5kbw3e+/4og0edTLkdVZj+vQrSo78Li6XeAj1IF4NJROX7JTL9OR1Bx61wbK7CVfuLwU=; Message-ID: <567305.11007.qm@web51802.mail.re2.yahoo.com> X-YMail-OSG: cIbTpboVM1lQuIpzvv7UZ94uLpiYFUMZy85V.G3Id77Elt6 2.yFOY7bJxiRveFYZM54GzYMhz8P7HcPjBhz47dpjGXAEpHiIb51zCZMYU_P WNnxDWCuPzoIXzHiNqddAr9Ly0wo_QaatSoDIYjWLCCMsaS.tD.5NGgiHQeA mg2zQ_lG0WsPgQD75JoUFNsfgShdCBFY8jw_vOEQ9FPwCEsNtDvU7VAwHGqH t7.UJ_kHcSKBgQPKrbuqcZZekBfBIbFeW1a0PJ1aCzdpb02a4zYRG9TojgUn rvrJhuFJfTH99Xb71WJwe67k.I_J_Pdor66LgguOtVLj_Dbgw Received: from [173.183.132.20] by web51802.mail.re2.yahoo.com via HTTP; Mon, 05 Jul 2010 23:26:58 PDT X-Mailer: YahooMailRC/397.8 YahooMailWebService/0.8.104.274457 References: <16641.96608.qm@web51806.mail.re2.yahoo.com> <4BBB372C.1060302@gmail.com> <665283.95271.qm@web51802.mail.re2.yahoo.com> <4BBDEC8F.9050803@gmail.com> <490521.32714.qm@web51804.mail.re2.yahoo.com> <4BD307DE.5080507@gmail.com> <332448.8676.qm@web51801.mail.re2.yahoo.com> <4BD3F2D4.8000007@gmail.com> <702632.81988.qm@web51803.mail.re2.yahoo.com> <4BDEE393.4080206@gmail.com> <660085.11669.qm@web51802.mail.re2.yahoo.com> <4BFD4806.8070001@gmail.com> <618770.37649.qm@web51807.mail.re2.yahoo.com> <4C0FAEA2.7010204@gmail.com> <94007.38072.qm@web51807.mail.re2.yahoo.com> <4C11188A.1040002@gmail.com> <447555.80295.qm@web51803.mail.re2.yahoo.com> <4C16499A.3050808@gmail.com> <337427.44900.qm@web51804.mail.re2.yahoo.com> <4C1787DA.2070308@gmail.com> <819523.41498.qm@web51805.mail.re2.yahoo.com> <4C18C4AB.6040205@gmail.com> <726063.68104.qm@web51802.mail.re2.yahoo.com> <4C1B827E.6000109@gmail.com> <565432.61672.qm@web51807.mail.re2.yahoo.com> <4C329D47.1010408@mobicom.mn> Date: Mon, 5 Jul 2010 23:26:58 -0700 (PDT) From: PseudoCylon To: Ganbold Tsagaankhuu In-Reply-To: <4C329D47.1010408@mobicom.mn> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: freebsd-current@freebsd.org, Ganbold Subject: Re: CALL for TEST [HOSTAP] run(4) ralink usb wireless 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, 06 Jul 2010 06:27:05 -0000 >>>>>> From: Ganbold >>>>>> To: PseudoCylon >>>>>> Cc: freebsd-current@freebsd.org; Ganbold Tsagaankhuu >>>>>> Sent: Wed, June 16, 2010 6:33:47 AM >>>>>> Subject: Re: CALL for TEST [HOSTAP] run(4) ralink usb wireless >>>>>> >>>>>> AK-san, >>>>>> >>>>>> >>>>> PseudoCylon wrote: >>>>> >>>>> Strange, looks like this time works as expected, but sometimes it >>>>> doesn't work. >>>>> >>>>> In some cases it doesn't work and you can find complete tcpdump output >>>>> from very beginning to the modem hang: >>>>> >>>>> >>>>> >>>> Hello, >>>> >>>> Are following true? >>>> When manually load/reload hostapd, works >>>> When loaded by rc.conf, doesn't work >>>> >>>> If so, please try attached patch. (patch to if_run.c only) Or, here is a patched file. >>>> http://gitorious.org/run/run/blobs/raw/cmdq_fix/dev/usb/wlan/if_run.c >>>> >>>> When auto-loading, the driver is brought up and down a few times. It might be the cause. >>>> >>> I will test it few more days and let you know. >>> >>> thanks, >>> >>> Ganbold >>> >> Hello, >> >> How is the patch doing on your rspro? Is it working well? >> > >Sorry for late response. Due to business trip I tested couple of times >only and it seems working relatively ok. 1-2 times ADSL modem hang, but >seemed like after 3-4 hours. >Tried couple of times again, but I couldn't reproduce it. I will try to >reproduce it and let you know the results. > >thanks a lot, > >Ganbold Hello, I say every one has a job. At least it's start up OK, right? Can you try attached patch? (patch to if_run.c you currently using) Or, here is a patched file http://gitorious.org/run/run/blobs/raw/cmdq_fix/dev/usb/wlan/if_run.c I encountered similar problem about 5 days ago. It kind of hard to reproduce. A couple of things have to happen at the right (or wrong) time. If the modem still hangs at the start up, please let me know. That means the last patch isn't working. AK -- begin patch -- diff --git a/dev/usb/wlan/if_run.c b/dev/usb/wlan/if_run.c index f302246..e5a2a4d 100644 --- a/dev/usb/wlan/if_run.c +++ b/dev/usb/wlan/if_run.c @@ -888,8 +888,7 @@ run_cmdq_cb(void *arg, int pending) /* call cmdq[].func locked */ RUN_LOCK(sc); -for(i = sc->cmdq_exec; sc->cmdq[i].func && pending; - i = sc->cmdq_exec, pending--){ +for(i = sc->cmdq_exec; sc->cmdq[i].func; i = sc->cmdq_exec){ DPRINTFN(6, "cmdq_exec=%d pending=%d\n", i, pending); if(sc->cmdq_run == RUN_CMDQ_GO || (sc->cmdq_key_set == RUN_CMDQ_GO && -- end patch --