From owner-freebsd-current@FreeBSD.ORG Tue Jul 13 02:02:29 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 A4D07106566B for ; Tue, 13 Jul 2010 02:02:29 +0000 (UTC) (envelope-from moonlightakkiy@yahoo.ca) Received: from web51805.mail.re2.yahoo.com (web51805.mail.re2.yahoo.com [206.190.38.236]) by mx1.freebsd.org (Postfix) with SMTP id 5EF248FC16 for ; Tue, 13 Jul 2010 02:02:29 +0000 (UTC) Received: (qmail 54933 invoked by uid 60001); 13 Jul 2010 02:02:28 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.ca; s=s1024; t=1278986548; bh=TR943d6vndZOGRH63W8veJ06a9REdbubt842v9/fbjg=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:Cc:MIME-Version:Content-Type; b=Iy8gyeDFAl01k9WittjqRvs7i4Di7Jijs2Clv5yO57QT3Oygaqc1pCDqnFSeMZ+KCn9ZgICWayr0g2zfeFVYCTmYM7SXGA+BOl1fMSIErATA58EjFIzCk3sWkjhoBj+1bu/tpIv1/ZFdhNvyiVVX9VPWrcyWnAmoE9+wDflWilA= 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:Cc:MIME-Version:Content-Type; b=RD/ZLzWP7u+H+f5d3glxzULkTHpHUpVaVCaSLlIRMs8WJ0E7uKRftn/0U668T1M0vcw5YjLT7i+yMhcQlq20AyhRCSvinjPOMyjwS419gLNEBThd5mOU9XNz0t+WfsKA0sbuRdaktRZkoMUCKwcEa4KXPXbhPIT+q7cUvOZt3/M=; Message-ID: <597509.54869.qm@web51805.mail.re2.yahoo.com> X-YMail-OSG: g_ZgfLoVM1lbgAsI32pVsZDezIYUuqqEZ7RfhXxCSqZ_jSC TUlGLcQfu0g6k5ZXIY03lnjNBgrgmSphQKBT5X8kx1jiJgrZ_ZAnYkt6BzHy rM.Ug9_hAOg_8gRdnJkcvlqhNk.t3o0cqbDvuebg0Szf5bDP3dLzZ9.8Iu5f 4wLLt.zwVCCt7jkeVFdZOJsebuJUa5sc68eXWHkwO74_fld5JKqGTLKW5.JS neX2BbOHBPSZG8sj7fi3aRQUX9dMHw.448nNDzUADUO02p69fzweJcIp0YKc nJy7O2UHeQUGLLXd5jahP9V1p4IIJy.YcROBI0AeWFdlp9LI4 Received: from [173.183.132.20] by web51805.mail.re2.yahoo.com via HTTP; Mon, 12 Jul 2010 19:02:28 PDT X-Mailer: YahooMailRC/420.4 YahooMailWebService/0.8.104.276605 Date: Mon, 12 Jul 2010 19:02:28 -0700 (PDT) From: PseudoCylon To: Ganbold Tsagaankhuu 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, 13 Jul 2010 02:02:29 -0000 ----- Original Message ---- > From: PseudoCylon > To: Ganbold Tsagaankhuu > Cc: Ganbold ; freebsd-current@freebsd.org > Sent: Tue, July 6, 2010 12:26:58 AM > Subject: Re: CALL for TEST [HOSTAP] run(4) ralink usb wireless > > >>>>>> 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, Ganbold Is the latest patch working? AK > 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 -- > > > >