From owner-freebsd-current@FreeBSD.ORG Tue Jul 13 17:05:14 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 DC3061065674 for ; Tue, 13 Jul 2010 17:05:14 +0000 (UTC) (envelope-from ganbold@gmail.com) Received: from mail-pv0-f182.google.com (mail-pv0-f182.google.com [74.125.83.182]) by mx1.freebsd.org (Postfix) with ESMTP id AAD888FC0C for ; Tue, 13 Jul 2010 17:05:14 +0000 (UTC) Received: by pvh1 with SMTP id 1so2595194pvh.13 for ; Tue, 13 Jul 2010 10:05:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=bw92sl/AlFqy6PbhhdzIWe4sBEZaMXgWexI18n3Ua6M=; b=HVTY8T/7++LEFeKY34U5U9++SMg+2d0Mn6vIJo81bGGW14b3O68d62vDc3Z3zW0+os DGVdcHglPCzkcbgQijIOUWnCQUuM0v1Oov9Uttf43B0h+K98wfSdjuU6tLFcu/WFjHHS x90Ao2g28JjxduhMuFy8Vt74g1Rl9WJ+/iFsU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=vww7hTazgJZALZg/Rh607zo7Fy6mybNrtyNA6LrtGaiBbNDGji9FQJEWIbcNLeqx+d SFHzu1y0KFkbsONutE0rpjLd7l6xItC5jgt6T/yFJupAHNNL57Onnhx/H9FSm6eQFdZV T2M0jX3O0JnwN4xBLjIWgF9bbg0NI00PgxvlQ= Received: by 10.114.112.6 with SMTP id k6mr18597768wac.173.1279040713769; Tue, 13 Jul 2010 10:05:13 -0700 (PDT) Received: from beastie.micom.mng.net ([202.179.21.129]) by mx.google.com with ESMTPS id q6sm89095385waj.22.2010.07.13.10.05.06 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 13 Jul 2010 10:05:08 -0700 (PDT) Message-ID: <4C3C9CBB.7060103@gmail.com> Date: Wed, 14 Jul 2010 01:04:59 +0800 From: Ganbold User-Agent: Thunderbird 2.0.0.23 (X11/20091011) MIME-Version: 1.0 To: PseudoCylon References: <597509.54869.qm@web51805.mail.re2.yahoo.com> In-Reply-To: <597509.54869.qm@web51805.mail.re2.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Ganbold Tsagaankhuu , freebsd-current@freebsd.org 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 17:05:14 -0000 PseudoCylon wrote: > ----- 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-san, Only tested once, the patch works ok so far. thanks, Ganbold > > 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 -- >> >> >> >> >> > > > > -- My interest is in the future because I am going to spend the rest of my life there.