Re: CALL for TEST [HOSTAP] run(4) ralink usb wireless

2010-07-14 Thread PseudoCylon
- Original Message 
 From: Ganbold ganb...@gmail.com
 To: PseudoCylon moonlightak...@yahoo.ca
 Cc: Ganbold Tsagaankhuu ganb...@mobicom.mn; freebsd-current@freebsd.org
 Sent: Tue, July 13, 2010 11:04:59 AM
 Subject: Re: CALL for TEST [HOSTAP] run(4) ralink usb wireless
 
 PseudoCylon wrote:
  - Original Message 
   
  From: PseudoCylon moonlightak...@yahoo.ca
   To: Ganbold Tsagaankhuu ganb...@mobicom.mn
  Cc:  Ganbold ganb...@gmail.com; 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 ganb...@gmail.com
To: PseudoCylon moonlightak...@yahoo.ca
Cc: freebsd-current@freebsd.org;   Ganbold Tsagaankhuu 
  
  ganb...@mobicom.mn
  
   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'twork.
 
  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
 


Good to hear.

If anything goes wrong please report.

Thanks for testing.


AK



___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: CALL for TEST [HOSTAP] run(4) ralink usb wireless

2010-07-13 Thread Ganbold
PseudoCylon wrote:
 - Original Message 
   
 From: PseudoCylon moonlightak...@yahoo.ca
 To: Ganbold Tsagaankhuu ganb...@mobicom.mn
 Cc: Ganbold ganb...@gmail.com; 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 ganb...@gmail.com
  To: PseudoCylon moonlightak...@yahoo.ca
  Cc: freebsd-current@freebsd.org;  Ganbold Tsagaankhuu 
 
 ganb...@mobicom.mn
 
  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.
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: CALL for TEST [HOSTAP] run(4) ralink usb wireless

2010-07-12 Thread PseudoCylon
- Original Message 
 From: PseudoCylon moonlightak...@yahoo.ca
 To: Ganbold Tsagaankhuu ganb...@mobicom.mn
 Cc: Ganbold ganb...@gmail.com; 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 ganb...@gmail.com
   To: PseudoCylon moonlightak...@yahoo.ca
   Cc: freebsd-current@freebsd.org;  Ganbold Tsagaankhuu 
ganb...@mobicom.mn
   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 --
 
 
 
 


___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: CALL for TEST [HOSTAP] run(4) ralink usb wireless

2010-07-07 Thread PseudoCylon
- Original Message 
 From: Hans Petter Selasky hsela...@c2i.net
 To: freebsd-current@freebsd.org
 Cc: PseudoCylon moonlightak...@yahoo.ca; Ganbold Tsagaankhuu 
ganb...@mobicom.mn; Ganbold ganb...@gmail.com
 Sent: Tue, July 6, 2010 12:54:31 AM
 Subject: Re: CALL for TEST [HOSTAP] run(4) ralink usb wireless
 
Hello

PseudoCylon is here.

Unfortunately it successfully associates without an error.
 Hi,
 
 PseudoCylon: Can you try to reproduce this:
 
 1) Setup OPEN HOST  AP (ssid = xxx).
 
 2) Configure WLAN client  with:
 
 ssid=xxx
 auth_alg=SHARED
 key_mgmt=NONE
 
 Wait until  wpa_cli announces that it tries to associate, but fails.
 
This didn't happen. wpa_cli didn't say anything, just keep re-scanning. There 
was a change in wpa. So, I'll rebuilt world and retry

 3) Then update  wpa_supplicant.conf:
 
 ssid=xxx
 auth_alg=OPEN
 key_mgmt=NONE
 
 4)  Enter: reconfigure in wpa_cli (panic should happen shortly due to 
 callback  from IEEE802.11 layer which appears to refer a NULL pointer).
 
 --HPS


For now, do you have any error message?

And, are you using committed version of the driver or testing the patch?


AK


___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: CALL for TEST [HOSTAP] run(4) ralink usb wireless

2010-07-07 Thread Hans Petter Selasky
On Wednesday 07 July 2010 12:49:37 PseudoCylon wrote:
 - Original Message 
 
  From: Hans Petter Selasky hsela...@c2i.net
  To: freebsd-current@freebsd.org
  Cc: PseudoCylon moonlightak...@yahoo.ca; Ganbold Tsagaankhuu
 ganb...@mobicom.mn; Ganbold ganb...@gmail.com
  Sent: Tue, July 6, 2010 12:54:31 AM
  Subject: Re: CALL for TEST [HOSTAP] run(4) ralink usb wireless
 
 Hello
 
 PseudoCylon is here.
 
 Unfortunately it successfully associates without an error.
 
  Hi,
 
  PseudoCylon: Can you try to reproduce this:
 
  1) Setup OPEN HOST  AP (ssid = xxx).
 
  2) Configure WLAN client  with:
 
  ssid=xxx
  auth_alg=SHARED
  key_mgmt=NONE
 
  Wait until  wpa_cli announces that it tries to associate, but fails.
 
 This didn't happen. wpa_cli didn't say anything, just keep re-scanning.
  There was a change in wpa. So, I'll rebuilt world and retry
 
  3) Then update  wpa_supplicant.conf:
 
  ssid=xxx
  auth_alg=OPEN
  key_mgmt=NONE
 
  4)  Enter: reconfigure in wpa_cli (panic should happen shortly due to
  callback  from IEEE802.11 layer which appears to refer a NULL pointer).
 
  --HPS
 
 For now, do you have any error message?
 
 And, are you using committed version of the driver or testing the patch?
 

Hi,

I tested using the RUM driver in 9-current. I will try to collect some more 
details on the panic. I think that RUN is also affected.

--HPS
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: CALL for TEST [HOSTAP] run(4) ralink usb wireless

2010-07-06 Thread PseudoCylon
 From: Ganbold ganb...@gmail.com
 To: PseudoCylon moonlightak...@yahoo.ca
 Cc: freebsd-current@freebsd.org; Ganbold Tsagaankhuu ganb...@mobicom.mn
 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 --



___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: CALL for TEST [HOSTAP] run(4) ralink usb wireless

2010-07-06 Thread Hans Petter Selasky
Hi,

PseudoCylon: Can you try to reproduce this:

1) Setup OPEN HOST AP (ssid = xxx).

2) Configure WLAN client with:

ssid=xxx
auth_alg=SHARED
key_mgmt=NONE

Wait until wpa_cli announces that it tries to associate, but fails.

3) Then update wpa_supplicant.conf:

ssid=xxx
auth_alg=OPEN
key_mgmt=NONE

4) Enter: reconfigure in wpa_cli (panic should happen shortly due to 
callback from IEEE802.11 layer which appears to refer a NULL pointer).

--HPS
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: CALL for TEST [HOSTAP] run(4) ralink usb wireless

2010-07-06 Thread Ganbold Tsagaankhuu
AK-san,

On 7/5/2010 4:10 PM, PseudoCylon wrote:
 From: Ganbold ganb...@gmail.com
 To: PseudoCylon moonlightak...@yahoo.ca
 Cc: freebsd-current@freebsd.org; Ganbold Tsagaankhuu ganb...@mobicom.mn
 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


 AK



   


-- 
She applies her lipstick in spite of its contents: greasy rouge,
containing crushed and dried insect corpses for coloring, beeswax for
stiffness, and olive oil to help it flow - the latter having the
unfortunate tendency to go rancid several hours after use. In 1924 the
New York Board of Health considered banning lipstick, not because it was
hazardous to the wearers but because of the worry that it might poison
the men who kissed the women who wore it. -- David Bodanis, The Secret
House
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: CALL for TEST [HOSTAP] run(4) ralink usb wireless

2010-07-05 Thread PseudoCylon
 From: Ganbold ganb...@gmail.com
 To: PseudoCylon moonlightak...@yahoo.ca
 Cc: freebsd-current@freebsd.org; Ganbold Tsagaankhuu ganb...@mobicom.mn
 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?

AK


___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: CALL for TEST [HOSTAP] run(4) ralink usb wireless

2010-06-18 Thread Ganbold
AK-san,

PseudoCylon wrote:
 - Original Message 
   
 From: Ganbold ganb...@gmail.com
 To: PseudoCylon moonlightak...@yahoo.ca
 Cc: freebsd-current@freebsd.org; Ganbold Tsagaankhuu ganb...@mobicom.mn
 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

  So, when you test, please reboot rspro and let rc.conf handle init process 
 rather than manually start driver/hostapd. And
 #arp -d -a
 on rspro, freebsd laptop. and macbook would help for testing. (If it works on 
 mac) So, that clients have to send arp request. If macbook receives who-has 
 192.168.1.50 arp request packets, it should work. If macbook supports
 # tcpdump -vv -xxx -i wlan0 'arp'
 and see if macbook gets this.
 19:34:30.469720 ARP, Ethernet (len 6), IPv4 (len 4), Request who-has 
 192.168.1.50 tell 192.168.1.1, length 46
 0x:     0030 5462 3d24 0806 0001
 0x0010:  0800 0604 0001 0030 5462 3d24 c0a8 0101
 0x0020:     c0a8 0132   
 0x0030:       


 AK

 -- begin patch --

 diff --git a/dev/usb/wlan/if_run.c b/dev/usb/wlan/if_run.c
 index e4fc8d2..f302246 100644
 --- a/dev/usb/wlan/if_run.c
 +++ b/dev/usb/wlan/if_run.c
 @@ -17,7 +17,7 @@
   */
  
  #include sys/cdefs.h
 -__FBSDID($FreeBSD: src/sys/dev/usb/wlan/if_run.c,v 1.11 2010/06/14 23:01:50 
 jkim Exp $);
 +__FBSDID($FreeBSD$);
  
  /*-
   * Ralink Technology RT2700U/RT2800U/RT3000U chipset driver.
 @@ -830,9 +830,6 @@ run_vap_create(struct ieee80211com *ic,
  if(sc-rvp_cnt++ == 0)
  ic-ic_opmode = opmode;
  
 -if(opmode == IEEE80211_M_HOSTAP)
 -sc-cmdq_run = RUN_CMDQ_GO;
 -
  DPRINTF(rvp_id=%d bmap=%x rvp_cnt=%d\n,
  rvp-rvp_id, sc-rvp_bmap, sc-rvp_cnt);
  
 @@ -894,7 +891,9 @@ run_cmdq_cb(void *arg, int pending)
  for(i = sc-cmdq_exec; sc-cmdq[i].func  pending;
  i = sc-cmdq_exec, pending--){
  DPRINTFN(6, cmdq_exec=%d pending=%d\n, i, pending);
 -if(sc-cmdq_run == RUN_CMDQ_GO){
 +if(sc-cmdq_run == RUN_CMDQ_GO ||
 +(sc-cmdq_key_set == RUN_CMDQ_GO 
 +sc-cmdq[i].func == run_key_set_cb)){
  /*
   * If arg0 is NULL, callback func needs more
   * than one arg. So, pass ptr to cmdq struct.
 @@ -4798,7 +4797,7 @@ run_stop(void *arg)
  ifp-if_drv_flags = ~(IFF_DRV_RUNNING | IFF_DRV_OACTIVE);
  
  sc-ratectl_run = RUN_RATECTL_OFF;
 -sc-cmdq_run = sc-cmdq_key_set;
 +sc-cmdq_run = RUN_CMDQ_ABORT;
  
  RUN_UNLOCK(sc);
  
 -- end patch --



   


-- 
She just came in, pounced around this thing with me for a few years,
enjoyed herself, gave it a sort of beautiful quality and left. Excited a
few men in the meantime. -- Patrick Macnee, reminiscing on Diana Rigg's
involvement in The Avengers.
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: CALL for TEST [HOSTAP] run(4) ralink usb wireless

2010-06-17 Thread PseudoCylon
- Original Message 
 From: Ganbold ganb...@gmail.com
 To: PseudoCylon moonlightak...@yahoo.ca
 Cc: freebsd-current@freebsd.org; Ganbold Tsagaankhuu ganb...@mobicom.mn
 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. So, when you test, please reboot rspro and let rc.conf handle init 
process rather than manually start driver/hostapd. And
#arp -d -a
on rspro, freebsd laptop. and macbook would help for testing. (If it works on 
mac) So, that clients have to send arp request. If macbook receives who-has 
192.168.1.50 arp request packets, it should work. If macbook supports
# tcpdump -vv -xxx -i wlan0 'arp'
and see if macbook gets this.
19:34:30.469720 ARP, Ethernet (len 6), IPv4 (len 4), Request who-has 
192.168.1.50 tell 192.168.1.1, length 46
0x:     0030 5462 3d24 0806 0001
0x0010:  0800 0604 0001 0030 5462 3d24 c0a8 0101
0x0020:     c0a8 0132   
0x0030:       


AK

-- begin patch --

diff --git a/dev/usb/wlan/if_run.c b/dev/usb/wlan/if_run.c
index e4fc8d2..f302246 100644
--- a/dev/usb/wlan/if_run.c
+++ b/dev/usb/wlan/if_run.c
@@ -17,7 +17,7 @@
  */
 
 #include sys/cdefs.h
-__FBSDID($FreeBSD: src/sys/dev/usb/wlan/if_run.c,v 1.11 2010/06/14 23:01:50 
jkim Exp $);
+__FBSDID($FreeBSD$);
 
 /*-
  * Ralink Technology RT2700U/RT2800U/RT3000U chipset driver.
@@ -830,9 +830,6 @@ run_vap_create(struct ieee80211com *ic,
 if(sc-rvp_cnt++ == 0)
 ic-ic_opmode = opmode;
 
-if(opmode == IEEE80211_M_HOSTAP)
-sc-cmdq_run = RUN_CMDQ_GO;
-
 DPRINTF(rvp_id=%d bmap=%x rvp_cnt=%d\n,
 rvp-rvp_id, sc-rvp_bmap, sc-rvp_cnt);
 
@@ -894,7 +891,9 @@ run_cmdq_cb(void *arg, int pending)
 for(i = sc-cmdq_exec; sc-cmdq[i].func  pending;
 i = sc-cmdq_exec, pending--){
 DPRINTFN(6, cmdq_exec=%d pending=%d\n, i, pending);
-if(sc-cmdq_run == RUN_CMDQ_GO){
+if(sc-cmdq_run == RUN_CMDQ_GO ||
+(sc-cmdq_key_set == RUN_CMDQ_GO 
+sc-cmdq[i].func == run_key_set_cb)){
 /*
  * If arg0 is NULL, callback func needs more
  * than one arg. So, pass ptr to cmdq struct.
@@ -4798,7 +4797,7 @@ run_stop(void *arg)
 ifp-if_drv_flags = ~(IFF_DRV_RUNNING | IFF_DRV_OACTIVE);
 
 sc-ratectl_run = RUN_RATECTL_OFF;
-sc-cmdq_run = sc-cmdq_key_set;
+sc-cmdq_run = RUN_CMDQ_ABORT;
 
 RUN_UNLOCK(sc);
 
-- end patch --


___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: CALL for TEST [HOSTAP] run(4) ralink usb wireless

2010-06-16 Thread PseudoCylon
- Original Message 
 From: Ganbold ganb...@gmail.com
 To: PseudoCylon moonlightak...@yahoo.ca
 Cc: freebsd-current@freebsd.org; Ganbold Tsagaankhuu ganb...@mobicom.mn
 Sent: Tue, June 15, 2010 8:02:02 AM
 Subject: Re: CALL for TEST [HOSTAP] run(4) ralink usb wireless
 
 AK-san,

PseudoCylon wrote:
 From: Ganbold ganb...@gmail.com
 To: PseudoCylon moonlightak...@yahoo.ca
 Cc: freebsd-current@freebsd.org; Ganbold Tsagaankhuu ganb...@mobicom.mn
 Sent: Thu, June 10, 2010 10:53:30 AM
 Subject: Re: CALL for TEST [HOSTAP] run(4) ralink usb wireless

 It seems like it is running without any problem so far, no more adsl
 modem problem.
 I can see arp packets in wlan0 interface as  well as in  macbook.
 I will continue testing and let you know if there comes any problem.

 thanks again,

 Ganbold


 Hello,

 Glad to hear. It was an encryption problem. A client was dropping packets..

 Please let me know if you find another bug. (Hope there won't be)
  
  
 Well, looks like I was too fast :(

 It seems like client is not receiving any arp packets when rspro doesn't
 first initiate ping (maybe arp request) to client.
 If I first ping to client from rspro, later on arp packets can be seen
 on client.
 When I ping from rspro to client, response is very different:

 # arp -a
 ? (192.168.1.43) at 8e:fd:59:d6:3a:50 on bridge0 permanent [bridge]
 ? (192.168.1.42) at 00:22:cf:03:e0:30 on wlan0 permanent [ethernet]
 ? (192.168.1.41) at 00:15:6d:c1:c7:77 on arge0 permanent [ethernet]
 ? (192.168.1.1) at 00:30:54:62:3d:24 on arge0 expires in 1200 seconds
 [ethernet]
 ? (192.168.1.7) at 00:1c:25:9d:36:1d on arge0 expires in 824 seconds
 [ethernet]
 # ping 192.168.1.50
 PING 192.168.1.50 (192.168.1.50): 56 data bytes
 64 bytes from 192.168.1.50: icmp_seq=0 ttl=64 time=2.694 ms
 64 bytes from 192.168.1.50: icmp_seq=1 ttl=64 time=302.177 ms
 64 bytes from 192.168.1.50: icmp_seq=2 ttl=64 time=1.041 ms
 64 bytes from 192.168.1.50: icmp_seq=4 ttl=64 time=5234.417 ms
 64 bytes from 192.168.1.50: icmp_seq=5 ttl=64 time=4225.060 ms
 64 bytes from 192.168.1.50: icmp_seq=6 ttl=64 time=3214.908 ms
 64 bytes from 192.168.1.50: icmp_seq=7 ttl=64 time=2207.241 ms
 64 bytes from 192.168.1.50: icmp_seq=8 ttl=64 time=1197.061 ms
 64 bytes from 192.168.1.50: icmp_seq=9 ttl=64 time=186.833 ms
 ^C
 --- 192.168.1.50 ping statistics ---
 11 packets transmitted, 9 packets received, 18.2% packet loss
 round-trip min/avg/max/stddev = 1.041/1841.270/5234.417/1870.962 ms
 # arp -a  
 ? (192.168.1.43) at 8e:fd:59:d6:3a:50 on bridge0 permanent [bridge]
 ? (192.168.1.42) at 00:22:cf:03:e0:30 on wlan0 permanent [ethernet]
 ? (192.168.1.41) at 00:15:6d:c1:c7:77 on arge0 permanent [ethernet]
 ? (192.168.1.1) at 00:30:54:62:3d:24 on arge0 expires in 1183 seconds
 [ethernet]
 ? (192.168.1.7) at 00:1c:25:9d:36:1d on arge0 expires in 805 seconds
 [ethernet]
 ? (192.168.1.50) at 00:26:bb:17:f6:61 on arge0 expires in 1186 seconds
 [ethernet]
 # ping 192.168.1.50
 PING 192.168.1.50 (192.168.1.50): 56 data bytes
 64 bytes from 192.168.1.50: icmp_seq=2 ttl=64 time=1590.035 ms
 64 bytes from 192.168.1.50: icmp_seq=3 ttl=64 time=580.201 ms
 64 bytes from 192.168.1.50: icmp_seq=4 ttl=64 time=528.019 ms
 ^C
 --- 192.168.1.50 ping statistics ---
 5 packets transmitted, 3 packets received, 40.0% packet loss
 round-trip min/avg/max/stddev = 528.019/899.418/1590.035/488.804 ms



 Well, the patch is working (sort of). Old driver wouldn't let you ping 
 anywhere.

 Replies are taking awfully long. One of them took 5 sec. This could be a 
 different issue.

 Can you try a few thing? (Unfortunately, everything is working on my side.)
 * Before ping from rspro, does ping from macbook to 192.168.1.42 (wlan0) 
 work?
  

No. I will check again and let you know.

 * If you give IP address to only bridge0, does it make any difference?
  

I will let you know after testing.

 * Does it make any difference if use rspro without 192.168.1.7 (if possible)?
  

192.168.1.7 is just my freebsd laptop.


Hello,

More questions.

Is freebsd laptop working fine with wlan, or is it connected to ethernet port?

Does adsl modem still freeze?

Normally, when you ping from macbook to modem, there will be arp pakets
'who-has modem tell macbook' and
'modem is-at xx:xx...'
Do you see these at wlan0 on rspro?

If rspro can ping patch should be working, but let's make sure it is. Please 
before starting hostapd,
sysctl hw.usb.run.debug=1
(If the driver is not compiled with kernel, please apply a patch attached.)
When hostapd is started, it will print out

Starting hostapd.
Configuration file: /etc/hostapd.conf
Using interface wlan0 with hwaddr 00:22:cf:03:e0:30 and ssid 'bsd'
run_key_set: cmdq_store=0
run_key_set_cb: associd=0, keyix=1, mode=3, type=group, tx=on, rx=off
run_stop: All Tx cleared
run_newstate: INIT - INIT
run_newstate: INIT - SCAN
... omit some lines ...

Please confirm there is
run_key_set_cb: associd=0, mode=3, ...
And, associd is '0

Re: CALL for TEST [HOSTAP] run(4) ralink usb wireless

2010-06-16 Thread Ganbold
PseudoCylon wrote:
 - Original Message 
   

 
 Well, the patch is working (sort of). Old driver wouldn't let you ping 
 anywhere.

 Replies are taking awfully long. One of them took 5 sec. This could be a 
 different issue.

 Can you try a few thing? (Unfortunately, everything is working on my side.)
 * Before ping from rspro, does ping from macbook to 192.168.1.42 (wlan0) 
 work?
  
   
 No. I will check again and let you know.

 
 * If you give IP address to only bridge0, does it make any difference?
  
   
 I will let you know after testing.

 
 * Does it make any difference if use rspro without 192.168.1.7 (if 
 possible)?
  
   
 192.168.1.7 is just my freebsd laptop.

 

 Hello,

 More questions.

 Is freebsd laptop working fine with wlan, or is it connected to ethernet port?
   

Connected to ethernet port.

 Does adsl modem still freeze?
   

Yes.

 Normally, when you ping from macbook to modem, there will be arp pakets
 'who-has modem tell macbook' and
 'modem is-at xx:xx...'
 Do you see these at wlan0 on rspro?
   
I see it.
...
19:02:52.519830 ARP, Ethernet (len 6), IPv4 (len 4), Request who-has
192.168.1.1 tell 192.168.1.50, length 28
0x:     0026 bb17 f661 0806 0001
0x0010:  0800 0604 0001 0026 bb17 f661 c0a8 0132
0x0020:     c0a8 0101
19:02:52.520118 ARP, Ethernet (len 6), IPv4 (len 4), Reply 192.168.1.1
is-at 00:30:54:62:3d:24 (oui Unknown), length 46
0x:  0026 bb17 f661 0030 5462 3d24 0806 0001
0x0010:  0800 0604 0002 0030 5462 3d24 c0a8 0101
0x0020:  0026 bb17 f661 c0a8 0132   
0x0030:       

I will test the rest and let you know.

Ganbold
 If rspro can ping patch should be working, but let's make sure it is. Please 
 before starting hostapd,
 sysctl hw.usb.run.debug=1
 (If the driver is not compiled with kernel, please apply a patch attached.)
 When hostapd is started, it will print out

 Starting hostapd.
 Configuration file: /etc/hostapd.conf
 Using interface wlan0 with hwaddr 00:22:cf:03:e0:30 and ssid 'bsd'
 run_key_set: cmdq_store=0
 run_key_set_cb: associd=0, keyix=1, mode=3, type=group, tx=on, rx=off
 run_stop: All Tx cleared
 run_newstate: INIT - INIT
 run_newstate: INIT - SCAN
 ... omit some lines ...

 Please confirm there is
 run_key_set_cb: associd=0, mode=3, ...
 And, associd is '0' (This was the problem before. So, encryption with group 
 key failed.)

 When macbook associates with AP, it will print

 run_newassoc: cmdq_store=2
 run_newassoc: new assoc isnew=1 associd=c001 addr=00:26:bb:17:f6:61
 run_newassoc: rate=0x82 ridx=0 ctl_ridx=0
 ... omit some lines ...
 run_newassoc: rate=0x6c ridx=11 ctl_ridx=8
 run_newassoc: rate=2, mgmt_ridx=0
 run_key_set: cmdq_store=3
 run_key_set_cb: associd=c001, keyix=0, mode=4, type=pairwise, tx=on, rx=on

 Please confirm there is
 run_key_set_cb: associd=c001, mode=4, ...
 And associd isn't '0'.

 If not, I need to fix the driver. If things go accordingly, please compare 
 the mode. With your config, group key uses TKIP (mode 3) and pairwise key 
 uses CCMP (mode 4). And very first arp who-has packet uses group key and 
 other use pairwise key. Maybe, macbook doesn't like mixing the mode. So, 
 please
 tcpdump -vvv -xxx -i wlan0 'arp'
 and check if any packet with address of all 'ff'. is sent/received alright. 
 All 'ff 'means using group key. Others use pairwise key. All 'ff  is easy to 
 see in output of tcpdump. Or, you can chose one of them, CCMP or TKIP for 
 'wpa_pairwise=' and see if it makes any difference.


 Sorry for too many questions. It is working fine here, again.
 AK

 --patch Only needed if the driver is not compiled with the kernel--

 diff --git a/dev/usb/wlan/if_run.c b/dev/usb/wlan/if_run.c
 index e4fc8d2..65c1dab 100644
 --- a/dev/usb/wlan/if_run.c
 +++ b/dev/usb/wlan/if_run.c
 @@ -69,6 +69,7 @@ __FBSDID($FreeBSD: src/sys/dev/usb/wlan/if_run.c,v 1.11 
 2010/06/14 23:01:50 jki
  #include usbdevs.h
  
  #define USB_DEBUG_VAR run_debug
 +#define USB_DEBUG
  #include dev/usb/usb_debug.h
  
  #include if_runreg.h

 --end patch--
 only one line to add




   


-- 
I disagree with what you say, but will defend to the death your right to
tell such LIES!
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: CALL for TEST [HOSTAP] run(4) ralink usb wireless

2010-06-16 Thread Ganbold
AK-san,

PseudoCylon wrote:



 Hello,

 More questions.

 Is freebsd laptop working fine with wlan, or is it connected to ethernet port?

 Does adsl modem still freeze?

 Normally, when you ping from macbook to modem, there will be arp pakets
 'who-has modem tell macbook' and
 'modem is-at xx:xx...'
 Do you see these at wlan0 on rspro?

 If rspro can ping patch should be working, but let's make sure it is. Please 
 before starting hostapd,
 sysctl hw.usb.run.debug=1
 (If the driver is not compiled with kernel, please apply a patch attached.)
 When hostapd is started, it will print out

 Starting hostapd.
 Configuration file: /etc/hostapd.conf
 Using interface wlan0 with hwaddr 00:22:cf:03:e0:30 and ssid 'bsd'
 run_key_set: cmdq_store=0
 run_key_set_cb: associd=0, keyix=1, mode=3, type=group, tx=on, rx=off
 run_stop: All Tx cleared
 run_newstate: INIT - INIT
 run_newstate: INIT - SCAN
 ... omit some lines ...

 Please confirm there is
 run_key_set_cb: associd=0, mode=3, ...
 And, associd is '0' (This was the problem before. So, encryption with group 
 key failed.)
   

It prints:
...
run_key_set_cb: associd=0, keyix=1, mode=3, type=group, tx=on, rx=off
...

 When macbook associates with AP, it will print

 run_newassoc: cmdq_store=2
 run_newassoc: new assoc isnew=1 associd=c001 addr=00:26:bb:17:f6:61
 run_newassoc: rate=0x82 ridx=0 ctl_ridx=0
 ... omit some lines ...
 run_newassoc: rate=0x6c ridx=11 ctl_ridx=8
 run_newassoc: rate=2, mgmt_ridx=0
 run_key_set: cmdq_store=3
 run_key_set_cb: associd=c001, keyix=0, mode=4, type=pairwise, tx=on, rx=on

 Please confirm there is
 run_key_set_cb: associd=c001, mode=4, ...
 And associd isn't '0'.
   

It prints:

run_newassoc: cmdq_store=3
run_newassoc: new assoc isnew=1 associd=c001 addr=00:26:bb:17:f6:61
...
run_newassoc: rate=2, mgmt_ridx=0
wlan0: STA 00:26:bb:17:f6:61 IEEE 802.11: associated
run_key_set: cmdq_store=5
run_key_set_cb: associd=c001, keyix=0, mode=4, type=pairwise, tx=on, rx=on
wlan0: STA 00:26:bb:17:f6:61 RADIUS: starting accounting session
4C18B4C8-
wlan0: STA 00:26:bb:17:f6:61 WPA: pairwise key handshake completed (RSN)



 If not, I need to fix the driver. If things go accordingly, please compare 
 the mode. With your config, group key uses TKIP (mode 3) and pairwise key 
 uses CCMP (mode 4). And very first arp who-has packet uses group key and 
 other use pairwise key. Maybe, macbook doesn't like mixing the mode. So, 
 please
 tcpdump -vvv -xxx -i wlan0 'arp'
   

19:34:27.188281 ARP, Ethernet (len 6), IPv4 (len 4), Request who-has
192.168.1.50 tell 0.0.0.0, length 28
0x:     0026 bb17 f661 0806 0001
0x0010:  0800 0604 0001 0026 bb17 f661  
0x0020:     c0a8 0132
19:34:27.188326 ARP, Ethernet (len 6), IPv4 (len 4), Request who-has
192.168.1.50 tell 0.0.0.0, length 28
0x:     0026 bb17 f661 0806 0001
0x0010:  0800 0604 0001 0026 bb17 f661  
0x0020:     c0a8 0132
19:34:27.586863 ARP, Ethernet (len 6), IPv4 (len 4), Request who-has
192.168.1.50 tell 0.0.0.0, length 28
0x:     0026 bb17 f661 0806 0001
0x0010:  0800 0604 0001 0026 bb17 f661  
0x0020:     c0a8 0132
19:34:27.586903 ARP, Ethernet (len 6), IPv4 (len 4), Request who-has
192.168.1.50 tell 0.0.0.0, length 28
0x:     0026 bb17 f661 0806 0001
0x0010:  0800 0604 0001 0026 bb17 f661  
0x0020:     c0a8 0132
19:34:27.989517 ARP, Ethernet (len 6), IPv4 (len 4), Request who-has
192.168.1.50 tell 192.168.1.50, length 28
0x:     0026 bb17 f661 0806 0001
0x0010:  0800 0604 0001 0026 bb17 f661 c0a8 0132
0x0020:     c0a8 0132
19:34:27.989561 ARP, Ethernet (len 6), IPv4 (len 4), Request who-has
192.168.1.50 tell 192.168.1.50, length 28
0x:     0026 bb17 f661 0806 0001
0x0010:  0800 0604 0001 0026 bb17 f661 c0a8 0132
0x0020:     c0a8 0132
19:34:28.389609 ARP, Ethernet (len 6), IPv4 (len 4), Request who-has
192.168.1.50 tell 192.168.1.50, length 28
0x:     0026 bb17 f661 0806 0001
0x0010:  0800 0604 0001 0026 bb17 f661 c0a8 0132
0x0020:     c0a8 0132
19:34:28.389638 ARP, Ethernet (len 6), IPv4 (len 4), Request who-has
192.168.1.50 tell 192.168.1.50, length 28
0x:     0026 bb17 f661 0806 0001
0x0010:  0800 0604 0001 0026 bb17 f661 c0a8 0132
0x0020:     c0a8 0132
19:34:28.389761 ARP, Ethernet (len 6), IPv4 (len 4), Request who-has
192.168.1.1 tell 192.168.1.50, length 28
0x:     0026 bb17 f661 0806 0001
0x0010:  0800 0604 0001 0026 bb17 f661 c0a8 0132
0x0020:     c0a8 0101
19:34:28.389790 ARP, Ethernet (len 6), IPv4 (len 4), Request who-has
192.168.1.1 tell 192.168.1.50, length 28
0x:     0026 bb17 f661 0806 0001
0x0010:  0800 0604 0001 0026 bb17 f661 c0a8 0132
0x0020:     

Re: CALL for TEST [HOSTAP] run(4) ralink usb wireless

2010-06-16 Thread Ganbold
AK-san,

PseudoCylon wrote:
 Hello,

 More questions.

 Is freebsd laptop working fine with wlan, or is it connected to ethernet port?

 Does adsl modem still freeze?

 Normally, when you ping from macbook to modem, there will be arp pakets
 'who-has modem tell macbook' and
 'modem is-at xx:xx...'
 Do you see these at wlan0 on rspro?

 If rspro can ping patch should be working, but let's make sure it is. Please 
 before starting hostapd,
 sysctl hw.usb.run.debug=1
 (If the driver is not compiled with kernel, please apply a patch attached.)
 When hostapd is started, it will print out

 Starting hostapd.
 Configuration file: /etc/hostapd.conf
 Using interface wlan0 with hwaddr 00:22:cf:03:e0:30 and ssid 'bsd'
 run_key_set: cmdq_store=0
 run_key_set_cb: associd=0, keyix=1, mode=3, type=group, tx=on, rx=off
 run_stop: All Tx cleared
 run_newstate: INIT - INIT
 run_newstate: INIT - SCAN
 ... omit some lines ...

 Please confirm there is
 run_key_set_cb: associd=0, mode=3, ...
 And, associd is '0' (This was the problem before. So, encryption with group 
 key failed.)

 When macbook associates with AP, it will print

 run_newassoc: cmdq_store=2
 run_newassoc: new assoc isnew=1 associd=c001 addr=00:26:bb:17:f6:61
 run_newassoc: rate=0x82 ridx=0 ctl_ridx=0
 ... omit some lines ...
 run_newassoc: rate=0x6c ridx=11 ctl_ridx=8
 run_newassoc: rate=2, mgmt_ridx=0
 run_key_set: cmdq_store=3
 run_key_set_cb: associd=c001, keyix=0, mode=4, type=pairwise, tx=on, rx=on

 Please confirm there is
 run_key_set_cb: associd=c001, mode=4, ...
 And associd isn't '0'.

 If not, I need to fix the driver. If things go accordingly, please compare 
 the mode. With your config, group key uses TKIP (mode 3) and pairwise key 
 uses CCMP (mode 4). And very first arp who-has packet uses group key and 
 other use pairwise key. Maybe, macbook doesn't like mixing the mode. So, 
 please
 tcpdump -vvv -xxx -i wlan0 'arp'
 and check if any packet with address of all 'ff'. is sent/received alright. 
 All 'ff 'means using group key. Others use pairwise key. All 'ff  is easy to 
 see in output of tcpdump. Or, you can chose one of them, CCMP or TKIP for 
 'wpa_pairwise=' and see if it makes any difference.
   

I tried both wpa_pairwise=CCMP and wpa_pairwise=TKIP, and it is same as
before, modem hangs.

Ganbold


 Sorry for too many questions. It is working fine here, again.
 AK

 --patch Only needed if the driver is not compiled with the kernel--

 diff --git a/dev/usb/wlan/if_run.c b/dev/usb/wlan/if_run.c
 index e4fc8d2..65c1dab 100644
 --- a/dev/usb/wlan/if_run.c
 +++ b/dev/usb/wlan/if_run.c
 @@ -69,6 +69,7 @@ __FBSDID($FreeBSD: src/sys/dev/usb/wlan/if_run.c,v 1.11 
 2010/06/14 23:01:50 jki
  #include usbdevs.h
  
  #define USB_DEBUG_VAR run_debug
 +#define USB_DEBUG
  #include dev/usb/usb_debug.h
  
  #include if_runreg.h

 --end patch--
 only one line to add




   


-- 
I never killed a man that didn't deserve it. -- Mickey Cohen
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: CALL for TEST [HOSTAP] run(4) ralink usb wireless

2010-06-15 Thread PseudoCylon
 From: Ganbold ganb...@gmail.com
 To: PseudoCylon moonlightak...@yahoo.ca
 Cc: freebsd-current@freebsd.org; Ganbold Tsagaankhuu ganb...@mobicom.mn
 Sent: Thu, June 10, 2010 10:53:30 AM
 Subject: Re: CALL for TEST [HOSTAP] run(4) ralink usb wireless

 It seems like it is running without any problem so far, no more adsl
 modem problem.
 I can see arp packets in wlan0 interface as  well as in  macbook.
 I will continue testing and let you know if there comes any problem.

 thanks again,

 Ganbold


 Hello,

 Glad to hear. It was an encryption problem. A client was dropping packets..

 Please let me know if you find another bug. (Hope there won't be)
  

Well, looks like I was too fast :(

It seems like client is not receiving any arp packets when rspro doesn't
first initiate ping (maybe arp request) to client.
If I first ping to client from rspro, later on arp packets can be seen
on client.
When I ping from rspro to client, response is very different:

# arp -a
? (192.168.1.43) at 8e:fd:59:d6:3a:50 on bridge0 permanent [bridge]
? (192.168.1.42) at 00:22:cf:03:e0:30 on wlan0 permanent [ethernet]
? (192.168.1.41) at 00:15:6d:c1:c7:77 on arge0 permanent [ethernet]
? (192.168.1.1) at 00:30:54:62:3d:24 on arge0 expires in 1200 seconds
[ethernet]
? (192.168.1.7) at 00:1c:25:9d:36:1d on arge0 expires in 824 seconds
[ethernet]
# ping 192.168.1.50
PING 192.168.1.50 (192.168.1.50): 56 data bytes
64 bytes from 192.168.1.50: icmp_seq=0 ttl=64 time=2.694 ms
64 bytes from 192.168.1.50: icmp_seq=1 ttl=64 time=302.177 ms
64 bytes from 192.168.1.50: icmp_seq=2 ttl=64 time=1.041 ms
64 bytes from 192.168.1.50: icmp_seq=4 ttl=64 time=5234.417 ms
64 bytes from 192.168.1.50: icmp_seq=5 ttl=64 time=4225.060 ms
64 bytes from 192.168.1.50: icmp_seq=6 ttl=64 time=3214.908 ms
64 bytes from 192.168.1.50: icmp_seq=7 ttl=64 time=2207.241 ms
64 bytes from 192.168.1.50: icmp_seq=8 ttl=64 time=1197.061 ms
64 bytes from 192.168.1.50: icmp_seq=9 ttl=64 time=186.833 ms
^C
--- 192.168.1.50 ping statistics ---
11 packets transmitted, 9 packets received, 18.2% packet loss
round-trip min/avg/max/stddev = 1.041/1841.270/5234.417/1870.962 ms
# arp -a  
? (192.168.1.43) at 8e:fd:59:d6:3a:50 on bridge0 permanent [bridge]
? (192.168.1.42) at 00:22:cf:03:e0:30 on wlan0 permanent [ethernet]
? (192.168.1.41) at 00:15:6d:c1:c7:77 on arge0 permanent [ethernet]
? (192.168.1.1) at 00:30:54:62:3d:24 on arge0 expires in 1183 seconds
[ethernet]
? (192.168.1.7) at 00:1c:25:9d:36:1d on arge0 expires in 805 seconds
[ethernet]
? (192.168.1.50) at 00:26:bb:17:f6:61 on arge0 expires in 1186 seconds
[ethernet]
# ping 192.168.1.50
PING 192.168.1.50 (192.168.1.50): 56 data bytes
64 bytes from 192.168.1.50: icmp_seq=2 ttl=64 time=1590.035 ms
64 bytes from 192.168.1.50: icmp_seq=3 ttl=64 time=580.201 ms
64 bytes from 192.168.1.50: icmp_seq=4 ttl=64 time=528.019 ms
^C
--- 192.168.1.50 ping statistics ---
5 packets transmitted, 3 packets received, 40.0% packet loss
round-trip min/avg/max/stddev = 528.019/899.418/1590.035/488.804 ms


Well, the patch is working (sort of). Old driver wouldn't let you ping anywhere.

Replies are taking awfully long. One of them took 5 sec. This could be a 
different issue.

Can you try a few thing? (Unfortunately, everything is working on my side.)
* Before ping from rspro, does ping from macbook to 192.168.1.42 (wlan0) work?
* If you give IP address to only bridge0, does it make any difference?
* Does it make any difference if use rspro without 192.168.1.7 (if possible)?

wlandebug doesn't work on macbook, does it?

Can you show me your hostapd.conf (minus password, of course). I'll try with 
the same config.

And, if you ping from macbook, would it take that long?


AK

Any idea?

thanks,

Ganbold



___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: CALL for TEST [HOSTAP] run(4) ralink usb wireless

2010-06-15 Thread Ganbold
AK-san,

PseudoCylon wrote:
 From: Ganbold ganb...@gmail.com
 To: PseudoCylon moonlightak...@yahoo.ca
 Cc: freebsd-current@freebsd.org; Ganbold Tsagaankhuu ganb...@mobicom.mn
 Sent: Thu, June 10, 2010 10:53:30 AM
 Subject: Re: CALL for TEST [HOSTAP] run(4) ralink usb wireless

 It seems like it is running without any problem so far, no more adsl
 modem problem.
 I can see arp packets in wlan0 interface as  well as in  macbook.
 I will continue testing and let you know if there comes any problem.

 thanks again,

 Ganbold

 
 Hello,

 Glad to hear. It was an encryption problem. A client was dropping packets..

 Please let me know if you find another bug. (Hope there won't be)
  
   
 Well, looks like I was too fast :(

 It seems like client is not receiving any arp packets when rspro doesn't
 first initiate ping (maybe arp request) to client.
 If I first ping to client from rspro, later on arp packets can be seen
 on client.
 When I ping from rspro to client, response is very different:

 # arp -a
 ? (192.168.1.43) at 8e:fd:59:d6:3a:50 on bridge0 permanent [bridge]
 ? (192.168.1.42) at 00:22:cf:03:e0:30 on wlan0 permanent [ethernet]
 ? (192.168.1.41) at 00:15:6d:c1:c7:77 on arge0 permanent [ethernet]
 ? (192.168.1.1) at 00:30:54:62:3d:24 on arge0 expires in 1200 seconds
 [ethernet]
 ? (192.168.1.7) at 00:1c:25:9d:36:1d on arge0 expires in 824 seconds
 [ethernet]
 # ping 192.168.1.50
 PING 192.168.1.50 (192.168.1.50): 56 data bytes
 64 bytes from 192.168.1.50: icmp_seq=0 ttl=64 time=2.694 ms
 64 bytes from 192.168.1.50: icmp_seq=1 ttl=64 time=302.177 ms
 64 bytes from 192.168.1.50: icmp_seq=2 ttl=64 time=1.041 ms
 64 bytes from 192.168.1.50: icmp_seq=4 ttl=64 time=5234.417 ms
 64 bytes from 192.168.1.50: icmp_seq=5 ttl=64 time=4225.060 ms
 64 bytes from 192.168.1.50: icmp_seq=6 ttl=64 time=3214.908 ms
 64 bytes from 192.168.1.50: icmp_seq=7 ttl=64 time=2207.241 ms
 64 bytes from 192.168.1.50: icmp_seq=8 ttl=64 time=1197.061 ms
 64 bytes from 192.168.1.50: icmp_seq=9 ttl=64 time=186.833 ms
 ^C
 --- 192.168.1.50 ping statistics ---
 11 packets transmitted, 9 packets received, 18.2% packet loss
 round-trip min/avg/max/stddev = 1.041/1841.270/5234.417/1870.962 ms
 # arp -a  
 ? (192.168.1.43) at 8e:fd:59:d6:3a:50 on bridge0 permanent [bridge]
 ? (192.168.1.42) at 00:22:cf:03:e0:30 on wlan0 permanent [ethernet]
 ? (192.168.1.41) at 00:15:6d:c1:c7:77 on arge0 permanent [ethernet]
 ? (192.168.1.1) at 00:30:54:62:3d:24 on arge0 expires in 1183 seconds
 [ethernet]
 ? (192.168.1.7) at 00:1c:25:9d:36:1d on arge0 expires in 805 seconds
 [ethernet]
 ? (192.168.1.50) at 00:26:bb:17:f6:61 on arge0 expires in 1186 seconds
 [ethernet]
 # ping 192.168.1.50
 PING 192.168.1.50 (192.168.1.50): 56 data bytes
 64 bytes from 192.168.1.50: icmp_seq=2 ttl=64 time=1590.035 ms
 64 bytes from 192.168.1.50: icmp_seq=3 ttl=64 time=580.201 ms
 64 bytes from 192.168.1.50: icmp_seq=4 ttl=64 time=528.019 ms
 ^C
 --- 192.168.1.50 ping statistics ---
 5 packets transmitted, 3 packets received, 40.0% packet loss
 round-trip min/avg/max/stddev = 528.019/899.418/1590.035/488.804 ms

 

 Well, the patch is working (sort of). Old driver wouldn't let you ping 
 anywhere.

 Replies are taking awfully long. One of them took 5 sec. This could be a 
 different issue.

 Can you try a few thing? (Unfortunately, everything is working on my side.)
 * Before ping from rspro, does ping from macbook to 192.168.1.42 (wlan0) work?
   

No. I will check again and let you know.

 * If you give IP address to only bridge0, does it make any difference?
   

I will let you know after testing.

 * Does it make any difference if use rspro without 192.168.1.7 (if possible)?
   

192.168.1.7 is just my freebsd laptop.

 wlandebug doesn't work on macbook, does it?
   

I don't know yet how to debug wlan in macbook, will look for it.

 Can you show me your hostapd.conf (minus password, of course). I'll try with 
 the same config.
   
Ok, here it is:

interface=wlan0
debug=1
logger_syslog=-1
logger_syslog_level=1
ctrl_interface=/var/run/hostapd
ctrl_interface_group=wheel
ssid=bsd
wpa=3
wpa_passphrase=test
wpa_key_mgmt=WPA-PSK
wpa_pairwise=CCMP TKIP



 And, if you ping from macbook, would it take that long?
   

After ping from rspro, from Macbook it doesn't take long, usually around
3-4ms.

Ganbold


 AK

   
 Any idea?

 thanks,

 Ganbold
 




   


-- 
Experience is a good teacher, but she sends in terrific bills. -- Minna
Antrim, Naked Truth and Veiled Allusions
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: CALL for TEST [HOSTAP] run(4) ralink usb wireless

2010-06-15 Thread Ganbold
AK-san,

PseudoCylon wrote:
 From: Ganbold ganb...@gmail.com
 To: PseudoCylon moonlightak...@yahoo.ca
 Cc: freebsd-current@freebsd.org; Ganbold Tsagaankhuu ganb...@mobicom.mn
 Sent: Thu, June 10, 2010 10:53:30 AM
 Subject: Re: CALL for TEST [HOSTAP] run(4) ralink usb wireless

 It seems like it is running without any problem so far, no more adsl
 modem problem.
 I can see arp packets in wlan0 interface as  well as in  macbook.
 I will continue testing and let you know if there comes any problem.

 thanks again,

 Ganbold

 
 Hello,

 Glad to hear. It was an encryption problem. A client was dropping packets..

 Please let me know if you find another bug. (Hope there won't be)
  
   
 Well, looks like I was too fast :(

 It seems like client is not receiving any arp packets when rspro doesn't
 first initiate ping (maybe arp request) to client.
 If I first ping to client from rspro, later on arp packets can be seen
 on client.
 When I ping from rspro to client, response is very different:

 # arp -a
 ? (192.168.1.43) at 8e:fd:59:d6:3a:50 on bridge0 permanent [bridge]
 ? (192.168.1.42) at 00:22:cf:03:e0:30 on wlan0 permanent [ethernet]
 ? (192.168.1.41) at 00:15:6d:c1:c7:77 on arge0 permanent [ethernet]
 ? (192.168.1.1) at 00:30:54:62:3d:24 on arge0 expires in 1200 seconds
 [ethernet]
 ? (192.168.1.7) at 00:1c:25:9d:36:1d on arge0 expires in 824 seconds
 [ethernet]
 # ping 192.168.1.50
 PING 192.168.1.50 (192.168.1.50): 56 data bytes
 64 bytes from 192.168.1.50: icmp_seq=0 ttl=64 time=2.694 ms
 64 bytes from 192.168.1.50: icmp_seq=1 ttl=64 time=302.177 ms
 64 bytes from 192.168.1.50: icmp_seq=2 ttl=64 time=1.041 ms
 64 bytes from 192.168.1.50: icmp_seq=4 ttl=64 time=5234.417 ms
 64 bytes from 192.168.1.50: icmp_seq=5 ttl=64 time=4225.060 ms
 64 bytes from 192.168.1.50: icmp_seq=6 ttl=64 time=3214.908 ms
 64 bytes from 192.168.1.50: icmp_seq=7 ttl=64 time=2207.241 ms
 64 bytes from 192.168.1.50: icmp_seq=8 ttl=64 time=1197.061 ms
 64 bytes from 192.168.1.50: icmp_seq=9 ttl=64 time=186.833 ms
 ^C
 --- 192.168.1.50 ping statistics ---
 11 packets transmitted, 9 packets received, 18.2% packet loss
 round-trip min/avg/max/stddev = 1.041/1841.270/5234.417/1870.962 ms
 # arp -a  
 ? (192.168.1.43) at 8e:fd:59:d6:3a:50 on bridge0 permanent [bridge]
 ? (192.168.1.42) at 00:22:cf:03:e0:30 on wlan0 permanent [ethernet]
 ? (192.168.1.41) at 00:15:6d:c1:c7:77 on arge0 permanent [ethernet]
 ? (192.168.1.1) at 00:30:54:62:3d:24 on arge0 expires in 1183 seconds
 [ethernet]
 ? (192.168.1.7) at 00:1c:25:9d:36:1d on arge0 expires in 805 seconds
 [ethernet]
 ? (192.168.1.50) at 00:26:bb:17:f6:61 on arge0 expires in 1186 seconds
 [ethernet]
 # ping 192.168.1.50
 PING 192.168.1.50 (192.168.1.50): 56 data bytes
 64 bytes from 192.168.1.50: icmp_seq=2 ttl=64 time=1590.035 ms
 64 bytes from 192.168.1.50: icmp_seq=3 ttl=64 time=580.201 ms
 64 bytes from 192.168.1.50: icmp_seq=4 ttl=64 time=528.019 ms
 ^C
 --- 192.168.1.50 ping statistics ---
 5 packets transmitted, 3 packets received, 40.0% packet loss
 round-trip min/avg/max/stddev = 528.019/899.418/1590.035/488.804 ms

 

 Well, the patch is working (sort of). Old driver wouldn't let you ping 
 anywhere.

 Replies are taking awfully long. One of them took 5 sec. This could be a 
 different issue.

 Can you try a few thing? (Unfortunately, everything is working on my side.)
 * Before ping from rspro, does ping from macbook to 192.168.1.42 (wlan0) work?
   

Just tested again, it doesn't work from macbook.

 * If you give IP address to only bridge0, does it make any difference?
   

It makes no difference.

Ganbold


 * Does it make any difference if use rspro without 192.168.1.7 (if possible)?

 wlandebug doesn't work on macbook, does it?

 Can you show me your hostapd.conf (minus password, of course). I'll try with 
 the same config.

 And, if you ping from macbook, would it take that long?


 AK

   
 Any idea?

 thanks,

 Ganbold
 




   


-- 
Optimist, n.: A bagpiper with a beeper.
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: CALL for TEST [HOSTAP] run(4) ralink usb wireless

2010-06-14 Thread Ganbold
AK-san,

PseudoCylon wrote:
 - Original Message 
   
 From: Ganbold ganb...@gmail.com
 To: PseudoCylon moonlightak...@yahoo.ca
 Cc: freebsd-current@freebsd.org; Ganbold Tsagaankhuu ganb...@mobicom.mn
 Sent: Thu, June 10, 2010 10:53:30 AM
 Subject: Re: CALL for TEST [HOSTAP] run(4) ralink usb wireless

 It seems like it is running without any problem so far, no more adsl
 modem problem.
 I can see arp packets in wlan0 interface as  well as in  macbook.
 I will continue testing and let you know if there comes any problem.

 thanks again,

 Ganbold
 

 Hello,

 Glad to hear. It was an encryption problem. A client was dropping packets..

 Please let me know if you find another bug. (Hope there won't be)
   

Well, looks like I was too fast :(

It seems like client is not receiving any arp packets when rspro doesn't
first initiate ping (maybe arp request) to client.
If I first ping to client from rspro, later on arp packets can be seen
on client.
When I ping from rspro to client, response is very different:

# arp -a
? (192.168.1.43) at 8e:fd:59:d6:3a:50 on bridge0 permanent [bridge]
? (192.168.1.42) at 00:22:cf:03:e0:30 on wlan0 permanent [ethernet]
? (192.168.1.41) at 00:15:6d:c1:c7:77 on arge0 permanent [ethernet]
? (192.168.1.1) at 00:30:54:62:3d:24 on arge0 expires in 1200 seconds
[ethernet]
? (192.168.1.7) at 00:1c:25:9d:36:1d on arge0 expires in 824 seconds
[ethernet]
# ping 192.168.1.50
PING 192.168.1.50 (192.168.1.50): 56 data bytes
64 bytes from 192.168.1.50: icmp_seq=0 ttl=64 time=2.694 ms
64 bytes from 192.168.1.50: icmp_seq=1 ttl=64 time=302.177 ms
64 bytes from 192.168.1.50: icmp_seq=2 ttl=64 time=1.041 ms
64 bytes from 192.168.1.50: icmp_seq=4 ttl=64 time=5234.417 ms
64 bytes from 192.168.1.50: icmp_seq=5 ttl=64 time=4225.060 ms
64 bytes from 192.168.1.50: icmp_seq=6 ttl=64 time=3214.908 ms
64 bytes from 192.168.1.50: icmp_seq=7 ttl=64 time=2207.241 ms
64 bytes from 192.168.1.50: icmp_seq=8 ttl=64 time=1197.061 ms
64 bytes from 192.168.1.50: icmp_seq=9 ttl=64 time=186.833 ms
^C
--- 192.168.1.50 ping statistics ---
11 packets transmitted, 9 packets received, 18.2% packet loss
round-trip min/avg/max/stddev = 1.041/1841.270/5234.417/1870.962 ms
# arp -a  
? (192.168.1.43) at 8e:fd:59:d6:3a:50 on bridge0 permanent [bridge]
? (192.168.1.42) at 00:22:cf:03:e0:30 on wlan0 permanent [ethernet]
? (192.168.1.41) at 00:15:6d:c1:c7:77 on arge0 permanent [ethernet]
? (192.168.1.1) at 00:30:54:62:3d:24 on arge0 expires in 1183 seconds
[ethernet]
? (192.168.1.7) at 00:1c:25:9d:36:1d on arge0 expires in 805 seconds
[ethernet]
? (192.168.1.50) at 00:26:bb:17:f6:61 on arge0 expires in 1186 seconds
[ethernet]
# ping 192.168.1.50
PING 192.168.1.50 (192.168.1.50): 56 data bytes
64 bytes from 192.168.1.50: icmp_seq=2 ttl=64 time=1590.035 ms
64 bytes from 192.168.1.50: icmp_seq=3 ttl=64 time=580.201 ms
64 bytes from 192.168.1.50: icmp_seq=4 ttl=64 time=528.019 ms
^C
--- 192.168.1.50 ping statistics ---
5 packets transmitted, 3 packets received, 40.0% packet loss
round-trip min/avg/max/stddev = 528.019/899.418/1590.035/488.804 ms

Any idea?

thanks,

Ganbold

 Thank you for testing

 AK




   


-- 
Computer programmers never die, they just get lost in the processing.
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: CALL for TEST [HOSTAP] run(4) ralink usb wireless

2010-06-10 Thread Ganbold
AK-san,

PseudoCylon wrote:
 Hello,

 Sorry for taking long.

 But, please try following update (if_run.c and if_runvar.h)
 http://gitorious.org/run/run/blobs/raw/a74fa9ba5a16f1d1f058efa724261351e267a474/dev/usb/wlan/if_run.c
 http://gitorious.org/run/run/blobs/raw/a74fa9ba5a16f1d1f058efa724261351e267a474/dev/usb/wlan/if_runvar.h

 If any of client running 8.0-RELEASE please apply this patch
 http://svn.freebsd.org/viewvc/base/stable/8/sys/net80211/ieee80211_crypto_tkip.c?r1=199583r2=204215
 Otherwise TKIP might not work. (That was the last piece of puzzle I had.)

 

 Oops, please use this if_run.c instead.
 http://gitorious.org/run/run/blobs/raw/b1976c8333721f88368a32dbf04f04e19ef487fc/dev/usb/wlan/if_run.c

   

It seems like it is running without any problem so far, no more adsl
modem problem.
I can see arp packets in wlan0 interface as  well as in  macbook.
I will continue testing and let you know if there comes any problem.

thanks again,

Ganbold


 AK



   


-- 
Let us treat men and women well; Treat them as if they were real;
Perhaps they are. -- Ralph Waldo Emerson
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: CALL for TEST [HOSTAP] run(4) ralink usb wireless

2010-06-10 Thread PseudoCylon
- Original Message 
 From: Ganbold ganb...@gmail.com
 To: PseudoCylon moonlightak...@yahoo.ca
 Cc: freebsd-current@freebsd.org; Ganbold Tsagaankhuu ganb...@mobicom.mn
 Sent: Thu, June 10, 2010 10:53:30 AM
 Subject: Re: CALL for TEST [HOSTAP] run(4) ralink usb wireless
 
 It seems like it is running without any problem so far, no more adsl
 modem problem.
 I can see arp packets in wlan0 interface as  well as in  macbook.
 I will continue testing and let you know if there comes any problem.

 thanks again,

 Ganbold

Hello,

Glad to hear. It was an encryption problem. A client was dropping packets..

Please let me know if you find another bug. (Hope there won't be)

Thank you for testing

AK



___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: CALL for TEST [HOSTAP] run(4) ralink usb wireless

2010-06-09 Thread Ganbold
AK-san,

PseudoCylon wrote:
 - Original Message 
   
 From: Ganbold ganb...@gmail.com
 To: PseudoCylon moonlightak...@yahoo.ca
 Cc: freebsd-current@freebsd.org; Ganbold Tsagaankhuu ganb...@mobicom.mn
 Sent: Wed, May 26, 2010 10:10:46 AM
 Subject: Re: CALL for TEST [HOSTAP] run(4) ralink usb wireless

 It looks like either bridge or wlan/run driver is not
 forwarding/allowing incoming arp request for wireless client behind this
 access point.
 Wireless client is not getting any arp request and after sending several
 arp request to wireless client ADSL modem stops responding (had to
 restart modem).
 Any idea?

 thanks,

 Ganbold
 


 Hello again Ganbold,

 This time I can reproduce the problem on my computer. Please try attached 
 patch. (patch to if_run.c) I suppose arp is for during dhcp negotiation. So, 
 client does associate but cannot get IP address.

 The device won't talk with other devices until 2-way handshake has happens. I 
 thought it happens after 4-way handshake, but hostapd with -d option shows it 
 happens several minutes later. I added code to set some registers ahead of 
 it. So, no need to wait renegotiation happens.
   

 -- patch begin --

 diff --git a/dev/usb/wlan/if_run.c b/dev/usb/wlan/if_run.c
 index 61784d9..9beb582 100644
 --- a/dev/usb/wlan/if_run.c
 +++ b/dev/usb/wlan/if_run.c
 @@ -2053,6 +2053,17 @@ run_key_set_cb(void *arg)
  attr = (attr  ~0xf) | (mode  1) | RT2860_RX_PKEY_EN;
  if(run_write(sc, RT2860_WCID_ATTR(wcid), attr))
  return;
 +
 +if(vap-iv_opmode == IEEE80211_M_HOSTAP){
 +if(run_read(sc, RT2860_SKEY_MODE_0_7, attr))
 +return;
 +attr = ~(0xf  (1 * 4));
 +attr = ~(0xf  (2 * 4));
 +attr |= mode  (1 * 4);
 +attr |= mode  (2 * 4);
 +if(run_write(sc, RT2860_SKEY_MODE_0_7, attr))
 +return;
 +}
  }
  
  /* TODO create a pass-thru key entry? */

 -- patch end --



   

Any update on driver side?
Please let me know.

thanks,

Ganbold

-- 
Gray's Law of Programming:
'n+1' trivial tasks are expected to be
accomplished in the same time as 'n' tasks.

Logg's Rebuttal to Gray's Law:
'n+1' trivial tasks take twice as long as 'n' trivial tasks.
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: CALL for TEST [HOSTAP] run(4) ralink usb wireless

2010-06-09 Thread PseudoCylon
- Original Message 
 From: Ganbold ganb...@gmail.com
 To: PseudoCylon moonlightak...@yahoo.ca
 Cc: freebsd-current@freebsd.org; Ganbold Tsagaankhuu ganb...@mobicom.mn
 Sent: Wed, June 9, 2010 9:09:22 AM
 Subject: Re: CALL for TEST [HOSTAP] run(4) ralink usb wireless
 
 Any update on driver side?
 Please let me know.

 thanks,

 Ganbold

Hello,

Sorry for taking long.

But, please try following update (if_run.c and if_runvar.h)
http://gitorious.org/run/run/blobs/raw/a74fa9ba5a16f1d1f058efa724261351e267a474/dev/usb/wlan/if_run.c
http://gitorious.org/run/run/blobs/raw/a74fa9ba5a16f1d1f058efa724261351e267a474/dev/usb/wlan/if_runvar.h

If any of client running 8.0-RELEASE please apply this patch
http://svn.freebsd.org/viewvc/base/stable/8/sys/net80211/ieee80211_crypto_tkip.c?r1=199583r2=204215
Otherwise TKIP might not work. (That was the last piece of puzzle I had.)


___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: CALL for TEST [HOSTAP] run(4) ralink usb wireless

2010-06-09 Thread PseudoCylon
 Hello,

 Sorry for taking long.

 But, please try following update (if_run.c and if_runvar.h)
 http://gitorious.org/run/run/blobs/raw/a74fa9ba5a16f1d1f058efa724261351e267a474/dev/usb/wlan/if_run.c
 http://gitorious.org/run/run/blobs/raw/a74fa9ba5a16f1d1f058efa724261351e267a474/dev/usb/wlan/if_runvar.h

 If any of client running 8.0-RELEASE please apply this patch
 http://svn.freebsd.org/viewvc/base/stable/8/sys/net80211/ieee80211_crypto_tkip.c?r1=199583r2=204215
 Otherwise TKIP might not work. (That was the last piece of puzzle I had.)


Oops, please use this if_run.c instead.
http://gitorious.org/run/run/blobs/raw/b1976c8333721f88368a32dbf04f04e19ef487fc/dev/usb/wlan/if_run.c

AK


___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: CALL for TEST [HOSTAP] run(4) ralink usb wireless

2010-05-27 Thread PseudoCylon
- Original Message 
 From: Ganbold ganb...@gmail.com
 To: PseudoCylon moonlightak...@yahoo.ca
 Cc: freebsd-current@freebsd.org; Ganbold Tsagaankhuu ganb...@mobicom.mn
 Sent: Wed, May 26, 2010 10:10:46 AM
 Subject: Re: CALL for TEST [HOSTAP] run(4) ralink usb wireless
 
 It looks like either bridge or wlan/run driver is not
 forwarding/allowing incoming arp request for wireless client behind this
 access point.
 Wireless client is not getting any arp request and after sending several
 arp request to wireless client ADSL modem stops responding (had to
 restart modem).
 Any idea?

 thanks,

 Ganbold


Hello again Ganbold,

This time I can reproduce the problem on my computer. Please try attached 
patch. (patch to if_run.c) I suppose arp is for during dhcp negotiation. So, 
client does associate but cannot get IP address.

The device won't talk with other devices until 2-way handshake has happens. I 
thought it happens after 4-way handshake, but hostapd with -d option shows it 
happens several minutes later. I added code to set some registers ahead of it. 
So, no need to wait renegotiation happens.


-- patch begin --

diff --git a/dev/usb/wlan/if_run.c b/dev/usb/wlan/if_run.c
index 61784d9..9beb582 100644
--- a/dev/usb/wlan/if_run.c
+++ b/dev/usb/wlan/if_run.c
@@ -2053,6 +2053,17 @@ run_key_set_cb(void *arg)
 attr = (attr  ~0xf) | (mode  1) | RT2860_RX_PKEY_EN;
 if(run_write(sc, RT2860_WCID_ATTR(wcid), attr))
 return;
+
+if(vap-iv_opmode == IEEE80211_M_HOSTAP){
+if(run_read(sc, RT2860_SKEY_MODE_0_7, attr))
+return;
+attr = ~(0xf  (1 * 4));
+attr = ~(0xf  (2 * 4));
+attr |= mode  (1 * 4);
+attr |= mode  (2 * 4);
+if(run_write(sc, RT2860_SKEY_MODE_0_7, attr))
+return;
+}
 }
 
 /* TODO create a pass-thru key entry? */

-- patch end --


___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: CALL for TEST [HOSTAP] run(4) ralink usb wireless

2010-05-27 Thread Ganbold
AK-san,

PseudoCylon wrote:
 - Original Message 
   
 From: Ganbold ganb...@gmail.com
 To: PseudoCylon moonlightak...@yahoo.ca
 Cc: freebsd-current@freebsd.org; Ganbold Tsagaankhuu ganb...@mobicom.mn
 Sent: Wed, May 26, 2010 10:10:46 AM
 Subject: Re: CALL for TEST [HOSTAP] run(4) ralink usb wireless

 It looks like either bridge or wlan/run driver is not
 forwarding/allowing incoming arp request for wireless client behind this
 access point.
 Wireless client is not getting any arp request and after sending several
 arp request to wireless client ADSL modem stops responding (had to
 restart modem).
 Any idea?

 thanks,

 Ganbold
 


 Hello again Ganbold,

 This time I can reproduce the problem on my computer. Please try attached 
 patch. (patch to if_run.c) I suppose arp is for during dhcp negotiation. So, 
 client does associate but cannot get IP address.

 The device won't talk with other devices until 2-way handshake has happens. I 
 thought it happens after 4-way handshake, but hostapd with -d option shows it 
 happens several minutes later. I added code to set some registers ahead of 
 it. So, no need to wait renegotiation happens.
   

Just tested the patch, still it has same problem.
(FreeBSD rspro 9.0-CURRENT FreeBSD 9.0-CURRENT #67 r208541M: Thu May 27
22:46:36 ULAT 2010
ts...@beastie:/usr/obj/mips/usr/mysrc/sys/RSPRO_AR71XX  mips)

thanks,

Ganbold


 -- patch begin --

 diff --git a/dev/usb/wlan/if_run.c b/dev/usb/wlan/if_run.c
 index 61784d9..9beb582 100644
 --- a/dev/usb/wlan/if_run.c
 +++ b/dev/usb/wlan/if_run.c
 @@ -2053,6 +2053,17 @@ run_key_set_cb(void *arg)
  attr = (attr  ~0xf) | (mode  1) | RT2860_RX_PKEY_EN;
  if(run_write(sc, RT2860_WCID_ATTR(wcid), attr))
  return;
 +
 +if(vap-iv_opmode == IEEE80211_M_HOSTAP){
 +if(run_read(sc, RT2860_SKEY_MODE_0_7, attr))
 +return;
 +attr = ~(0xf  (1 * 4));
 +attr = ~(0xf  (2 * 4));
 +attr |= mode  (1 * 4);
 +attr |= mode  (2 * 4);
 +if(run_write(sc, RT2860_SKEY_MODE_0_7, attr))
 +return;
 +}
  }
  
  /* TODO create a pass-thru key entry? */

 -- patch end --



   


-- 
A pessimist is a man who has been compelled to live with an optimist. --
Elbert Hubbard
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: CALL for TEST [HOSTAP] run(4) ralink usb wireless

2010-05-26 Thread Ganbold
AK-san,

Did you test run driver in bridge mode?

I have following setup:

# ifconfig
arge0: flags=8943UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST metric
0 mtu 1500
options=8LINKSTATE
ether 00:15:6d:c1:c7:77
inet 192.168.1.41 netmask 0xff00 broadcast 192.168.1.255
media: Ethernet autoselect (100baseTX full-duplex)
status: active
run0: flags=8a43UP,BROADCAST,RUNNING,ALLMULTI,SIMPLEX,MULTICAST metric
0 mtu 2290
ether 00:22:cf:03:e0:30
media: IEEE 802.11 Wireless Ethernet autoselect mode 11g hostap
status: running
wlan0: flags=8943UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST metric
0 mtu 1500
ether 00:22:cf:03:e0:30
inet 192.168.1.42 netmask 0xff00 broadcast 192.168.1.255
media: IEEE 802.11 Wireless Ethernet autoselect mode 11g hostap
status: running
ssid bsd channel 6 (2437 MHz 11g) bssid 00:22:cf:03:e0:30
country US authmode WPA1+WPA2/802.11i privacy MIXED deftxkey 3
TKIP 2:128-bit TKIP 3:128-bit txpower 0 scanvalid 60 protmode
CTS wme
dtimperiod 1 -dfs
bridge0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu
1500
ether 36:7d:f9:e1:56:c9
inet 192.168.1.43 netmask 0xff00 broadcast 192.168.1.255
id 00:15:6d:c1:c7:77 priority 32768 hellotime 2 fwddelay 15
maxage 20 holdcnt 6 proto rstp maxaddr 100 timeout 1200
root id 00:15:6d:c1:c7:77 priority 32768 ifcost 0 port 0
member: arge0
flags=1e7LEARNING,DISCOVER,STP,EDGE,AUTOEDGE,PTP,AUTOPTP
ifmaxaddr 0 port 1 priority 128 path cost 20 proto rstp
role designated state forwarding
member: wlan0 flags=167LEARNING,DISCOVER,STP,EDGE,AUTOEDGE,AUTOPTP
ifmaxaddr 0 port 9 priority 128 path cost 370370 proto rstp
role designated state forwarding

It looks like either bridge or wlan/run driver is not
forwarding/allowing incoming arp request for wireless client behind this
access point.
Wireless client is not getting any arp request and after sending several
arp request to wireless client ADSL modem stops responding (had to
restart modem).
Any idea?

thanks,

Ganbold


PseudoCylon wrote:
 - Original Message 
   
 From: Ganbold ganb...@gmail.com
 To: PseudoCylon moonlightak...@yahoo.ca
 Cc: freebsd-current@freebsd.org; Ganbold Tsagaankhuu ganb...@mobicom.mn
 Sent: Mon, May 3, 2010 8:54:11 AM
 Subject: Re: CALL for TEST [HOSTAP] run(4) ralink usb wireless

 Thanks a lot, works no problem so far here with bridge  (no
 auth/hostapd/WPA2).
 

   
 rspro# uname -an FreeBSD rspro 9.0-CURRENT  FreeBSD 9.0-CURRENT #64 
 r207140M: Mon May  3
 21:49:50 ULAT 2010   
 ts...@beastie:/usr/obj/mips/usr/mysrc/sys/RSPRO_AR71XX  mips
 


 Yes! finally. I'm so happy to hear.

 If there are any other bugs, please report. I'll wait a few days before 
 submit the changes just to make sure every thing is fine on your 
 routerstation.

 Thank you for testing the driver several times and your patient.

 AK




   


-- 
I wouldn't be so paranoid if you weren't all out to get me!!
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: CALL for TEST [HOSTAP] run(4) ralink usb wireless

2010-05-05 Thread Hans Petter Selasky
Hi,

Can you check if I've integrated correctly?
 
http://p4web.freebsd.org/@@17?ac=10

Who is taking this code into -current?

--HPS
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: CALL for TEST [HOSTAP] run(4) ralink usb wireless

2010-05-05 Thread PseudoCylon
- Original Message 
 From: Hans Petter Selasky hsela...@c2i.net
 To: freebsd-current@freebsd.org
 Cc: Ganbold ganb...@gmail.com; PseudoCylon moonlightak...@yahoo.ca; 
 Ganbold Tsagaankhuu ganb...@mobicom.mn
 Sent: Wed, May 5, 2010 2:00:02 PM
 Subject: Re: CALL for TEST [HOSTAP] run(4) ralink usb wireless
 
 Hi,

 Can you check if I've integrated correctly?

 http://p4web.freebsd.org/@@17?ac=10

Hello,

Thank you for promptly applying changes.

Yes, you did correctly. But, I missed r207554 and removing some meaningless 
debug messages i.e. DPRINTF(called\n). I will send you patch with change 
summary.

 Who is taking this code into -current?
Please drop me a line. I also have new firmware to submit.

Best,
AK


 --HPS


___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: CALL for TEST [HOSTAP] run(4) ralink usb wireless

2010-05-04 Thread Ganbold
PseudoCylon wrote:
 - Original Message 
   
 From: Ganbold ganb...@gmail.com
 To: PseudoCylon moonlightak...@yahoo.ca
 Cc: freebsd-current@freebsd.org; Ganbold Tsagaankhuu ganb...@mobicom.mn
 Sent: Mon, May 3, 2010 8:54:11 AM
 Subject: Re: CALL for TEST [HOSTAP] run(4) ralink usb wireless

 Thanks a lot, works no problem so far here with bridge  (no
 auth/hostapd/WPA2).
 

   
 rspro# uname -an FreeBSD rspro 9.0-CURRENT  FreeBSD 9.0-CURRENT #64 
 r207140M: Mon May  3
 21:49:50 ULAT 2010   
 ts...@beastie:/usr/obj/mips/usr/mysrc/sys/RSPRO_AR71XX  mips
 


 Yes! finally. I'm so happy to hear.

 If there are any other bugs, please report. I'll wait a few days before 
 submit the changes just to make sure every thing is fine on your 
 routerstation.

 Thank you for testing the driver several times and your patient.
   

Thank you again for your support, works fine here with
INVARIANTS/WITNESS enabled kernel :)
Now I need to find out the reason where sometimes adsl modem hangs when
wifi client connects to internet through this routerstation pro board.

thanks a lot,

Ganbold


 AK




   


-- 
The difference between a good haircut and a bad one is seven days.
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: CALL for TEST [HOSTAP] run(4) ralink usb wireless

2010-05-03 Thread Ganbold
AK-san,

PseudoCylon wrote:
 Thank you very much.
 However it  still panics when I tried to use bridge.
 


 Please try this.
 http://gitorious.org/run/run/trees/master/dev/usb/wlan
 (if_run.c and if_runvar.h have been updated.)

 Sorry I haven't test on bridge (only with nat). It did panic with bridge. 
 This should work. But, please
 #sysctl hw.usb.run.debug=1
 just in case.
   

Thanks a lot, works no problem so far here with bridge (no
auth/hostapd/WPA2).

rspro# uname -an
FreeBSD rspro 9.0-CURRENT FreeBSD 9.0-CURRENT #64 r207140M: Mon May  3
21:49:50 ULAT 2010
ts...@beastie:/usr/obj/mips/usr/mysrc/sys/RSPRO_AR71XX  mips

...
wlan0: STA 00:26:bb:17:f6:61 IEEE 802.11: associated
  New STA
wlan0: STA 00:26:bb:17:f6:61 WPA: event 1 notification
bsd_del_key: addr=00:26:bb:17:f6:61 key_idx=0

wlan0: STA 00:26:bb:17:f6:61 WPA: start authentication
WPA: 00:26:bb:17:f6:61 WPA_PTK entering state INITIALIZE
bsd_del_key: addr=00:26:bb:17:f6:61 key_idx=0

bsd_set_sta_authorized: addr=00:26:bb:17:f6:61 authorized=0

wlan0: STA 00:26:bb:17:f6:61 IEEE 802.1X: unauthorizing port
WPA: 00:26:bb:17:f6:61 WPA_PTK_GROUP entering state IDLE
WPA: 00:26:bb:17:f6:61 WPA_PTK entering state AUTHENTICATION
WPA: 00:26:bb:17:f6:61 WPA_PTK entering state AUTHENTICATION2
WPA: 00:26:bb:17:f6:61 WPA_PTK entering state INITPSK
WPA: 00:26:bb:17:f6:61 WPA_PTK entering state PTKSTART
wlan0: STA 00:26:bb:17:f6:61 WPA: sending 1/4 msg of 4-Way Handshake
WPA: Send EAPOL(version=2 secure=0 mic=0 ack=1 install=0 pairwise=8
kde_len=0 keyidx=0 encr=0)
IEEE 802.1X: 121 bytes from 00:26:bb:17:f6:61
   IEEE 802.1X: version=1 type=3 length=117
wlan0: STA 00:26:bb:17:f6:61 WPA: received EAPOL-Key frame (2/4 Pairwise)
WPA: 00:26:bb:17:f6:61 WPA_PTK entering state PTKCALCNEGOTIATING
WPA: PTK derivation - A1=00:22:cf:03:e0:30 A2=00:26:bb:17:f6:61
WPA: PMK - hexdump(len=32): [REMOVED]
WPA: PTK - hexdump(len=64): [REMOVED]
WPA: 00:26:bb:17:f6:61 WPA_PTK entering state PTKCALCNEGOTIATING2
WPA: 00:26:bb:17:f6:61 WPA_PTK entering state PTKINITNEGOTIATING
bsd_get_seqnum: addr=00:00:00:00:00:00 idx=1

wlan0: STA 00:26:bb:17:f6:61 WPA: sending 3/4 msg of 4-Way Handshake
WPA: Send EAPOL(version=2 secure=1 mic=1 ack=1 install=1 pairwise=8
kde_len=94 keyidx=1 encr=1)
Plaintext EAPOL-Key Key Data - hexdump(len=104): [REMOVED]
IEEE 802.1X: 99 bytes from 00:26:bb:17:f6:61
   IEEE 802.1X: version=1 type=3 length=95
wlan0: STA 00:26:bb:17:f6:61 WPA: received EAPOL-Key frame (4/4 Pairwise)
WPA: 00:26:bb:17:f6:61 WPA_PTK entering state PTKINITDONE
bsd_set_key: alg=CCMP addr=00:26:bb:17:f6:61 key_idx=0

bsd_set_sta_authorized: addr=00:26:bb:17:f6:61 authorized=1

wlan0: STA 00:26:bb:17:f6:61 IEEE 802.1X: authorizing port
wlan0: STA 00:26:bb:17:f6:61 RADIUS: starting accounting session
4BDEE104-
bsd_sta_clear_stats: addr=00:26:bb:17:f6:61

wlan0: STA 00:26:bb:17:f6:61 WPA: pairwise key handshake completed (RSN)
...

thanks a bunch again,

Ganbold


 Thanks.
 AK



   


-- 
Every Horse has an Infinite Number of Legs (proof by intimidation):
Horses have an even number of legs. Behind they have two legs, and in
front they have fore-legs. This makes six legs, which is certainly an
odd number of legs for a horse. But the only number that is both even
and odd is infinity. Therefore, horses have an infinite number of legs.
Now to show this for the general case, suppose that somewhere, there is
a horse that has a finite number of legs. But that is a horse of another
color, and by the [above] lemma [All horses are the same color], that
does not exist.
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: CALL for TEST [HOSTAP] run(4) ralink usb wireless

2010-05-03 Thread PseudoCylon
- Original Message 
 From: Ganbold ganb...@gmail.com
 To: PseudoCylon moonlightak...@yahoo.ca
 Cc: freebsd-current@freebsd.org; Ganbold Tsagaankhuu ganb...@mobicom.mn
 Sent: Mon, May 3, 2010 8:54:11 AM
 Subject: Re: CALL for TEST [HOSTAP] run(4) ralink usb wireless
 
 Thanks a lot, works no problem so far here with bridge  (no
 auth/hostapd/WPA2).

 rspro# uname -an FreeBSD rspro 9.0-CURRENT  FreeBSD 9.0-CURRENT #64 r207140M: 
 Mon May  3
 21:49:50 ULAT 2010   
 ts...@beastie:/usr/obj/mips/usr/mysrc/sys/RSPRO_AR71XX  mips


Yes! finally. I'm so happy to hear.

If there are any other bugs, please report. I'll wait a few days before submit 
the changes just to make sure every thing is fine on your routerstation.

Thank you for testing the driver several times and your patient.

AK



___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: CALL for TEST [HOSTAP] run(4) ralink usb wireless

2010-05-03 Thread Ganbold
PseudoCylon wrote:
 - Original Message 
   
 From: Ganbold ganb...@gmail.com
 To: PseudoCylon moonlightak...@yahoo.ca
 Cc: freebsd-current@freebsd.org; Ganbold Tsagaankhuu ganb...@mobicom.mn
 Sent: Sun, April 25, 2010 1:44:20 AM
 Subject: Re: CALL for TEST [HOSTAP] run(4) ralink usb wireless

 

   
 Thank you very much.
 However it  still panics when I tried to use bridge.
 


 Please try this.
 http://gitorious.org/run/run/trees/master/dev/usb/wlan
 (if_run.c and if_runvar.h have been updated.)

 Sorry I haven't test on bridge (only with nat). It did panic with bridge. 
 This should work. But, please
 #sysctl hw.usb.run.debug=1
 just in case.
   

AK-san,

Sorry, I was maybe too fast, kernel was built without INVARIANTS/WITNESS
options.
I will test it later today with those options enabled and let you know
the result.

thanks a lot,

Ganbold

 Thanks.
 AK



   


-- 
Shame is an improper emotion invented by pietists to oppress the human
race. -- Robert Preston, Toddy, Victor/Victoria
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: CALL for TEST [HOSTAP] run(4) ralink usb wireless

2010-05-01 Thread PseudoCylon
- Original Message 
 From: Ganbold ganb...@gmail.com
 To: PseudoCylon moonlightak...@yahoo.ca
 Cc: freebsd-current@freebsd.org; Ganbold Tsagaankhuu ganb...@mobicom.mn
 Sent: Sun, April 25, 2010 1:44:20 AM
 Subject: Re: CALL for TEST [HOSTAP] run(4) ralink usb wireless
 

 Thank you very much.
 However it  still panics when I tried to use bridge.


Please try this.
http://gitorious.org/run/run/trees/master/dev/usb/wlan
(if_run.c and if_runvar.h have been updated.)

Sorry I haven't test on bridge (only with nat). It did panic with bridge. This 
should work. But, please
#sysctl hw.usb.run.debug=1
just in case.

Thanks.
AK


___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: CALL for TEST [HOSTAP] run(4) ralink usb wireless

2010-04-25 Thread Ganbold
AK-san,

PseudoCylon wrote:
 Hello,

 Thank you for all the info.
 This one shall work.
 http://projects.nasreddine.com/projects/run/repository/revisions/mips_fix/show/dev/usb/wlan
 Please update if_run.c and if_runvar.h (2 files).

 Just in case, after kldload, please issue
 # sysctl hw.usb.run.debug=1
 Now it prints out very little messages, and no need to issue wlandebug.

   

Thank you very much.
However it still panics when I tried to use bridge.
...
run0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 2290
ether 00:22:cf:03:e0:30
media: IEEE 802.11 Wireless Ethernet autoselect mode 11g hostap
status: running
wlan0: flags=8943UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST metric
0 mtu 1500
ether 00:22:cf:03:e0:30
media: IEEE 802.11 Wireless Ethernet autoselect mode 11g hostap
status: running
ssid bsd channel 6 (2437 MHz 11g) bssid 00:22:cf:03:e0:30
country US authmode OPEN privacy OFF txpower 0 scanvalid 60
protmode CTS wme dtimperiod 1 -dfs
bridge0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu
1500
ether 06:ba:f8:33:07:6d
id 00:00:00:00:00:00 priority 32768 hellotime 2 fwddelay 15
maxage 20 holdcnt 6 proto rstp maxaddr 100 timeout 1200
root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0
member: arge0 flags=143LEARNING,DISCOVER,AUTOEDGE,AUTOPTP
ifmaxaddr 0 port 1 priority 128 path cost 20
member: wlan0 flags=143LEARNING,DISCOVER,AUTOEDGE,AUTOPTP
ifmaxaddr 0 port 9 priority 128 path cost 370370

...
wlan0: Ethernet address: 00:22:cf:03:e0:30
run_vap_create: rvp_id=0 bmap=1 rvp_cnt=1
run_media_change: called
run_init_locked: called
run_stop: All Tx cleared
run_newstate: INIT - INIT
run_newstate: INIT - SCAN
run_newstate: SCAN - RUN
run_enable_tsf_sync: rvp_id=0 ic_opmode=4
bridge0: Ethernet address: 06:ba:f8:33:07:6d
panic: Trying sleep, but thread marked as sleeping prohibited
KDB: enter: panic
[ thread pid 11 tid 100031 ]
Stopped at  kdb_enter+0x50: lui at,0x8054
db bt
Tracing pid 11 tid 100031 td 0xc0c96720
db_trace_thread+30 (?,?,?,?) ra 800ac688 sp c7967558 sz 24
800ac56c+11c (0,?,,?) ra 800abd30 sp c7967570 sz 32
800ab99c+394 (?,?,?,?) ra 800abec0 sp c7967590 sz 168
db_command_loop+78 (?,?,?,?) ra 800ae4d8 sp c7967638 sz 24
800ae3d0+108 (?,?,?,?) ra 80208060 sp c7967650 sz 424
kdb_trap+108 (?,?,?,?) ra 80407380 sp c79677f8 sz 32
trap+d50 (?,?,?,?) ra 803ff090 sp c7967818 sz 168
MipsKernGenException+134 (0,a,806c8fe4,109) ra 802082e8 sp c79678c0 sz 200
kdb_enter+50 (?,?,?,?) ra 801d1a04 sp c7967988 sz 24
panic+f8 (?,4,80480eb8,120) ra 80212f10 sp c79679a0 sz 40
sleepq_add+120 (?,?,?,?) ra 8018f174 sp c79679c8 sz 56
_cv_wait+1f0 (?,?,?,?) ra 80147ba8 sp c7967a00 sz 64
usbd_do_request_flags+540 (?,?,?,?) ra c7e56358 sp c7967a40 sz 104
PC 0xc7e56358: not in kernel
0+c7e56358 (?,?,?,?) ra 0 sp c7967aa8 sz 0
pid 11
db

thanks,

Ganbold

 Thanks
 AK

   
 Got another panic. Maybe it is 
 something else.

 run_rx_frame: rx done
 run_rx_frame: rx done
 run_rx_frame: rx done
 run_rx_frame: rx done
 run_rx_frame: rx  done
 Trap cause = 2 (TLB miss (load or instr. fetch) - kernel mode)
 [  thread pid 0 tid 100062 ]
 Stopped at   run_drain_fifo+0xd8:lw  v0,6444(a1)
 db  bt
 Tracing pid 0 tid 100062 td 0xc0f88be0
 db_trace_thread+30 (?,?,?,?) ra 800ac688 sp c7e83970 sz 24
 800ac56c+11c (0,?,,?) ra 800abd30 sp c7e83988 sz 32
 800ab99c+394 (?,?,?,?) ra 800abec0 sp c7e839a8 sz 168
 db_command_loop+78 (?,?,?,?) ra 800ae4d8 sp c7e83a50 sz 24
 800ae3d0+108 (?,?,?,?) ra 80208060 sp c7e83a68 sz 424
 kdb_trap+108 (?,?,?,?) ra 80407624 sp c7e83c10 sz 32
 trap+ff4 (?,?,?,?) ra 803ff090 sp c7e83c30 sz 168
 MipsKernGenException+134 (1a3,0,0,21c) ra c7e5bd24 sp c7e83cd8 sz 200
 PC 0xc7e5bd24: not in kernel
 0+c7e5bd24 (?,?,?,?) ra 0 sp c7e83da0 sz 0
 pid 0
 db

 Ganbold
 



   


-- 
As an adolescent I aspired to lasting fame, I craved factual certainty,
and I thirsted for a meaningful vision of human life -- so I became a
scientist. This is like becoming an archbishop so you can meet girls. --
Matt Cartmill
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: CALL for TEST [HOSTAP] run(4) ralink usb wireless

2010-04-24 Thread Ganbold
PseudoCylon wrote:
 Hello,

 Can you try this? (all 3 files has been updated)
 http://projects.nasreddine.com/projects/run/repository/revisions/mips_fix/show/dev/usb/wlan

 This is for rev 207077 or newer.
 If you are using older rev, please let me know with rev #, I'll change the 
 code accordingly.

 If it isn't too much trouble, can you run the driver with following debug 
 option on?
 # wlandebug -i wlan0 0x6930
 (after wlan create)
 To make this work, kernel need to be compiled with IEEE80211_DEBUG option 
 which is enabled in generic AR71XX conf file by default.

 And, maybe with INVARIANTS option? the bug has been fixed in rev 206400
 http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/mips/atheros/if_arge.c

 Sorry for asking too much. The driver is causing the trouble, but something 
 goes wrong outside the driver.
   

AK-san,

Thanks a lot, looks like no more crash.

rspro# uname -an
FreeBSD rspro.micom.mng.net 9.0-CURRENT FreeBSD 9.0-CURRENT #58
r207140M: Sat Apr 24 17:55:13 ULAT 2010
ts...@beastie.micom.mng.net:/usr/obj/mips/usr/mysrc/sys/RSPRO_AR71XX  mips

http://pastebin.com/jsV5L7St

ping response is varying. 192.168.2.2 is Macbook Pro client.

rspro# ping 192.168.2.2
PING 192.168.2.2 (192.168.2.2): 56 data bytes
64 bytes from 192.168.2.2: icmp_seq=3 ttl=64 time=22.091 ms
64 bytes from 192.168.2.2: icmp_seq=4 ttl=64 time=2.232 ms
64 bytes from 192.168.2.2: icmp_seq=6 ttl=64 time=9.329 ms
64 bytes from 192.168.2.2: icmp_seq=7 ttl=64 time=20.691 ms
64 bytes from 192.168.2.2: icmp_seq=8 ttl=64 time=9.867 ms
64 bytes from 192.168.2.2: icmp_seq=9 ttl=64 time=8.592 ms
64 bytes from 192.168.2.2: icmp_seq=10 ttl=64 time=10.942 ms
64 bytes from 192.168.2.2: icmp_seq=11 ttl=64 time=15.398 ms
64 bytes from 192.168.2.2: icmp_seq=12 ttl=64 time=5.582 ms
64 bytes from 192.168.2.2: icmp_seq=13 ttl=64 time=2.199 ms
64 bytes from 192.168.2.2: icmp_seq=15 ttl=64 time=2.266 ms
64 bytes from 192.168.2.2: icmp_seq=16 ttl=64 time=777.052 ms
64 bytes from 192.168.2.2: icmp_seq=17 ttl=64 time=764.368 ms
64 bytes from 192.168.2.2: icmp_seq=19 ttl=64 time=777.076 ms
64 bytes from 192.168.2.2: icmp_seq=20 ttl=64 time=741.912 ms
64 bytes from 192.168.2.2: icmp_seq=21 ttl=64 time=721.712 ms
64 bytes from 192.168.2.2: icmp_seq=22 ttl=64 time=741.264 ms
64 bytes from 192.168.2.2: icmp_seq=24 ttl=64 time=732.831 ms
64 bytes from 192.168.2.2: icmp_seq=25 ttl=64 time=1692.815 ms
64 bytes from 192.168.2.2: icmp_seq=26 ttl=64 time=685.253 ms
64 bytes from 192.168.2.2: icmp_seq=27 ttl=64 time=665.590 ms
64 bytes from 192.168.2.2: icmp_seq=28 ttl=64 time=26.029 ms
64 bytes from 192.168.2.2: icmp_seq=29 ttl=64 time=20.515 ms
64 bytes from 192.168.2.2: icmp_seq=30 ttl=64 time=1034.232 ms
...

run0: flags=8a43UP,BROADCAST,RUNNING,ALLMULTI,SIMPLEX,MULTICAST metric
0 mtu 2290
ether 00:22:cf:03:e0:30
media: IEEE 802.11 Wireless Ethernet autoselect mode 11g hostap
status: running
wlan0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 1500
ether 00:22:cf:03:e0:30
inet 192.168.2.1 netmask 0xff00 broadcast 192.168.2.255
media: IEEE 802.11 Wireless Ethernet autoselect mode 11g hostap
status: running
ssid bsd channel 1 (2412 MHz 11g) bssid 00:22:cf:03:e0:30
country US authmode OPEN privacy OFF txpower 0 scanvalid 60
protmode CTS wme dtimperiod 1 -dfs
rspro#

I will observe more and let you know if there is anything.
Please let me know if you need any more information.

thanks a lot,

Ganbold

 Thanks
 AK

   
 Is your kernel compiled with INVARIANTS 
 option?
  
   

   
 Tried, but if_arge panics at boot with INVARIANTS 
 option.
 

   
 arge0: Atheros AR71xx built-in ethernet interface at 
 mem 0x1900-0x19000fff irq 2 on nexus0 panic: mtx_lock() of spin mutex 
 arge mii lock 
 @ /usr/mysrc/sys/mips/atheros/if_arge.c:554
 


   
 thanks,
 

   
 Ganbold 
 



   


-- 
What do you give a man who has everything? Penicillin. -- Jerry Lester
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: CALL for TEST [HOSTAP] run(4) ralink usb wireless

2010-04-24 Thread Ganbold
PseudoCylon wrote:
 Hello,

 Can you try this? (all 3 files has been updated)
 http://projects.nasreddine.com/projects/run/repository/revisions/mips_fix/show/dev/usb/wlan

 This is for rev 207077 or newer.
 If you are using older rev, please let me know with rev #, I'll change the 
 code accordingly.

 If it isn't too much trouble, can you run the driver with following debug 
 option on?
 # wlandebug -i wlan0 0x6930
 (after wlan create)
 To make this work, kernel need to be compiled with IEEE80211_DEBUG option 
 which is enabled in generic AR71XX conf file by default.

 And, maybe with INVARIANTS option? the bug has been fixed in rev 206400
 http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/mips/atheros/if_arge.c

 Sorry for asking too much. The driver is causing the trouble, but something 
 goes wrong outside the driver.
   

AK-san,

Just got panic when destroying.
...
run_rx_frame: rx done
run_vap_delete: vap=0xc1002000 rvp_id=0 bmap=0 rvp_cnt=0
run_newstate: RUN - INIT
run_raw_xmit: ic=0xc0fb2000 run_raw_xmit: ifp=0xc0caa000 run_raw_xmit:
sc=0xc0fa8000
Trap cause = 4 (address error (load or I-fetch) - kernel mode)
[ thread pid 14 tid 100028 ]
Stopped at  ieee80211_node_attach+0x400:lw  v0,24(v0)
db
...

Ganbold


 Thanks
 AK

   
 Is your kernel compiled with INVARIANTS 
 option?
  
   

   
 Tried, but if_arge panics at boot with INVARIANTS 
 option.
 

   
 arge0: Atheros AR71xx built-in ethernet interface at 
 mem 0x1900-0x19000fff irq 2 on nexus0 panic: mtx_lock() of spin mutex 
 arge mii lock 
 @ /usr/mysrc/sys/mips/atheros/if_arge.c:554
 


   
 thanks,
 

   
 Ganbold 
 



   


-- 
Time is the most valuable thing a man can spend. -- Theophrastus
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: CALL for TEST [HOSTAP] run(4) ralink usb wireless

2010-04-24 Thread Ganbold
PseudoCylon wrote:
 Hello,

 Can you try this? (all 3 files has been updated)
 http://projects.nasreddine.com/projects/run/repository/revisions/mips_fix/show/dev/usb/wlan

 This is for rev 207077 or newer.
 If you are using older rev, please let me know with rev #, I'll change the 
 code accordingly.

 If it isn't too much trouble, can you run the driver with following debug 
 option on?
 # wlandebug -i wlan0 0x6930
 (after wlan create)
 To make this work, kernel need to be compiled with IEEE80211_DEBUG option 
 which is enabled in generic AR71XX conf file by default.

 And, maybe with INVARIANTS option? the bug has been fixed in rev 206400
 http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/mips/atheros/if_arge.c

 Sorry for asking too much. The driver is causing the trouble, but something 
 goes wrong outside the driver.

   

More crash, but I think it might be related to usb.

panic: Trying sleep, but thread marked as sleeping prohibited
KDB: enter: panic
[ thread pid 11 tid 100031 ]
Stopped at  kdb_enter+0x50: lui at,0x8054
db bt
Tracing pid 11 tid 100031 td 0xc0c96720
db_trace_thread+30 (?,?,?,?) ra 800ac688 sp c7967558 sz 24
800ac56c+11c (0,?,,?) ra 800abd30 sp c7967570 sz 32
800ab99c+394 (?,?,?,?) ra 800abec0 sp c7967590 sz 168
db_command_loop+78 (?,?,?,?) ra 800ae4d8 sp c7967638 sz 24
800ae3d0+108 (?,?,?,?) ra 80208060 sp c7967650 sz 424
kdb_trap+108 (?,?,?,?) ra 80407380 sp c79677f8 sz 32
trap+d50 (?,?,?,?) ra 803ff090 sp c7967818 sz 168
MipsKernGenException+134 (0,a,806c8fe4,109) ra 802082e8 sp c79678c0 sz 200
kdb_enter+50 (?,?,?,?) ra 801d1a04 sp c7967988 sz 24
panic+f8 (?,4,80480eb8,120) ra 80212f10 sp c79679a0 sz 40
sleepq_add+120 (?,?,?,?) ra 8018f174 sp c79679c8 sz 56
_cv_wait+1f0 (?,?,?,?) ra 80147ba8 sp c7967a00 sz 64
usbd_do_request_flags+540 (?,?,?,?) ra c7e5629c sp c7967a40 sz 104
PC 0xc7e5629c: not in kernel
0+c7e5629c (?,?,?,?) ra 0 sp c7967aa8 sz 0
pid 11
db

Ganbold
 Thanks
 AK

   
 Is your kernel compiled with INVARIANTS 
 option?
  
   

   
 Tried, but if_arge panics at boot with INVARIANTS 
 option.
 

   
 arge0: Atheros AR71xx built-in ethernet interface at 
 mem 0x1900-0x19000fff irq 2 on nexus0 panic: mtx_lock() of spin mutex 
 arge mii lock 
 @ /usr/mysrc/sys/mips/atheros/if_arge.c:554
 


   
 thanks,
 

   
 Ganbold 
 



   


-- 
Everybody has something to conceal. -- Humphrey Bogart
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: CALL for TEST [HOSTAP] run(4) ralink usb wireless

2010-04-24 Thread Hans Petter Selasky
On Saturday 24 April 2010 13:06:19 Ganbold wrote:
 PseudoCylon wrote:
  Hello,
 
  Can you try this? (all 3 files has been updated)
  http://projects.nasreddine.com/projects/run/repository/revisions/mips_fix
 /show/dev/usb/wlan
 
  This is for rev 207077 or newer.
  If you are using older rev, please let me know with rev #, I'll change
  the code accordingly.
 
  If it isn't too much trouble, can you run the driver with following debug
  option on? # wlandebug -i wlan0 0x6930
  (after wlan create)
  To make this work, kernel need to be compiled with IEEE80211_DEBUG option
  which is enabled in generic AR71XX conf file by default.
 
  And, maybe with INVARIANTS option? the bug has been fixed in rev 206400
  http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/mips/atheros/if_arge.c
 
  Sorry for asking too much. The driver is causing the trouble, but
  something goes wrong outside the driver.
 
 More crash, but I think it might be related to usb.
 
 panic: Trying sleep, but thread marked as sleeping prohibited
 KDB: enter: panic
 [ thread pid 11 tid 100031 ]
 Stopped at  kdb_enter+0x50: lui at,0x8054
Hi,

This is not an USB issue. Please make sure usbd_do_request() is only called 
from thread context.

--HPS
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: CALL for TEST [HOSTAP] run(4) ralink usb wireless

2010-04-24 Thread Ganbold
PseudoCylon wrote:
 Hello,

 Can you try this? (all 3 files has been updated)
 http://projects.nasreddine.com/projects/run/repository/revisions/mips_fix/show/dev/usb/wlan

 This is for rev 207077 or newer.
 If you are using older rev, please let me know with rev #, I'll change the 
 code accordingly.

 If it isn't too much trouble, can you run the driver with following debug 
 option on?
 # wlandebug -i wlan0 0x6930
 (after wlan create)
 To make this work, kernel need to be compiled with IEEE80211_DEBUG option 
 which is enabled in generic AR71XX conf file by default.

 And, maybe with INVARIANTS option? the bug has been fixed in rev 206400
 http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/mips/atheros/if_arge.c

 Sorry for asking too much. The driver is causing the trouble, but something 
 goes wrong outside the driver.
   

Got another panic. Maybe it is something else.

run_rx_frame: rx done
run_rx_frame: rx done
run_rx_frame: rx done
run_rx_frame: rx done
run_rx_frame: rx done
Trap cause = 2 (TLB miss (load or instr. fetch) - kernel mode)
[ thread pid 0 tid 100062 ]
Stopped at  run_drain_fifo+0xd8:lw  v0,6444(a1)
db bt
Tracing pid 0 tid 100062 td 0xc0f88be0
db_trace_thread+30 (?,?,?,?) ra 800ac688 sp c7e83970 sz 24
800ac56c+11c (0,?,,?) ra 800abd30 sp c7e83988 sz 32
800ab99c+394 (?,?,?,?) ra 800abec0 sp c7e839a8 sz 168
db_command_loop+78 (?,?,?,?) ra 800ae4d8 sp c7e83a50 sz 24
800ae3d0+108 (?,?,?,?) ra 80208060 sp c7e83a68 sz 424
kdb_trap+108 (?,?,?,?) ra 80407624 sp c7e83c10 sz 32
trap+ff4 (?,?,?,?) ra 803ff090 sp c7e83c30 sz 168
MipsKernGenException+134 (1a3,0,0,21c) ra c7e5bd24 sp c7e83cd8 sz 200
PC 0xc7e5bd24: not in kernel
0+c7e5bd24 (?,?,?,?) ra 0 sp c7e83da0 sz 0
pid 0
db

Ganbold

 Thanks
 AK

   
 Is your kernel compiled with INVARIANTS 
 option?
  
   

   
 Tried, but if_arge panics at boot with INVARIANTS 
 option.
 

   
 arge0: Atheros AR71xx built-in ethernet interface at 
 mem 0x1900-0x19000fff irq 2 on nexus0 panic: mtx_lock() of spin mutex 
 arge mii lock 
 @ /usr/mysrc/sys/mips/atheros/if_arge.c:554
 


   
 thanks,
 

   
 Ganbold 
 



   


-- 
A pipe gives a wise man time to think and a fool something to stick in
his mouth.
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: CALL for TEST [HOSTAP] run(4) ralink usb wireless

2010-04-24 Thread PseudoCylon
Hello,

Thank you for all the info.
This one shall work.
http://projects.nasreddine.com/projects/run/repository/revisions/mips_fix/show/dev/usb/wlan
Please update if_run.c and if_runvar.h (2 files).

Just in case, after kldload, please issue
# sysctl hw.usb.run.debug=1
Now it prints out very little messages, and no need to issue wlandebug.

Thanks
AK

 Got another panic. Maybe it is 
 something else.

 run_rx_frame: rx done
 run_rx_frame: rx done
 run_rx_frame: rx done
 run_rx_frame: rx done
 run_rx_frame: rx  done
 Trap cause = 2 (TLB miss (load or instr. fetch) - kernel mode)
 [  thread pid 0 tid 100062 ]
 Stopped at   run_drain_fifo+0xd8:lw  v0,6444(a1)
 db  bt
 Tracing pid 0 tid 100062 td 0xc0f88be0
 db_trace_thread+30 (?,?,?,?) ra 800ac688 sp c7e83970 sz 24
 800ac56c+11c (0,?,,?) ra 800abd30 sp c7e83988 sz 32
 800ab99c+394 (?,?,?,?) ra 800abec0 sp c7e839a8 sz 168
 db_command_loop+78 (?,?,?,?) ra 800ae4d8 sp c7e83a50 sz 24
 800ae3d0+108 (?,?,?,?) ra 80208060 sp c7e83a68 sz 424
 kdb_trap+108 (?,?,?,?) ra 80407624 sp c7e83c10 sz 32
 trap+ff4 (?,?,?,?) ra 803ff090 sp c7e83c30 sz 168
 MipsKernGenException+134 (1a3,0,0,21c) ra c7e5bd24 sp c7e83cd8 sz 200
 PC 0xc7e5bd24: not in kernel
 0+c7e5bd24 (?,?,?,?) ra 0 sp c7e83da0 sz 0
 pid 0
 db

 Ganbold


___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: CALL for TEST [HOSTAP] run(4) ralink usb wireless

2010-04-23 Thread PseudoCylon
Hello,

Can you try this? (all 3 files has been updated)
http://projects.nasreddine.com/projects/run/repository/revisions/mips_fix/show/dev/usb/wlan

This is for rev 207077 or newer.
If you are using older rev, please let me know with rev #, I'll change the code 
accordingly.

If it isn't too much trouble, can you run the driver with following debug 
option on?
# wlandebug -i wlan0 0x6930
(after wlan create)
To make this work, kernel need to be compiled with IEEE80211_DEBUG option which 
is enabled in generic AR71XX conf file by default.

And, maybe with INVARIANTS option? the bug has been fixed in rev 206400
http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/mips/atheros/if_arge.c

Sorry for asking too much. The driver is causing the trouble, but something 
goes wrong outside the driver.

Thanks
AK


 Is your kernel compiled with INVARIANTS 
 option?
  

 Tried, but if_arge panics at boot with INVARIANTS 
 option.

 arge0: Atheros AR71xx built-in ethernet interface at 
 mem 0x1900-0x19000fff irq 2 on nexus0 panic: mtx_lock() of spin mutex 
 arge mii lock 
 @ /usr/mysrc/sys/mips/atheros/if_arge.c:554


 thanks,

 Ganbold 


___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: CALL for TEST [HOSTAP] run(4) ralink usb wireless

2010-04-08 Thread PseudoCylon
Hi,

Sorry for taking long to fix. Here is another patch.

**But before trying it out, please check rev. of your system.**

If you are using r206358 (15:29 UTC Apr. 7) or newer, the driver won't work. If 
you are using older system, please try this patch.
http://projects.nasreddine.com/projects/run/repository/revisions/mips1_fix/show/dev/usb/wlan
Only if_run.c is patched since last time. (click file name, then click 
download)

If you are using r206358 or newer, please give me some time to fix. I'm stating 
it now.

Is your kernel compiled with INVARIANTS option?

AK



- Original Message 
 From: Ganbold ganb...@gmail.com
 To: PseudoCylon moonlightak...@yahoo.ca
 Cc: freebsd-current@freebsd.org
 Sent: Tue, April 6, 2010 7:29:16 AM
 Subject: Re: CALL for TEST [HOSTAP] run(4) ralink usb wireless
 
 PseudoCylon wrote:
 - Original Message 
  
 
 From: Ganbold 
 href=mailto:ganb...@gmail.com;ganb...@gmail.com
 To: 
 PseudoCylon 
 href=mailto:moonlightak...@yahoo.ca;moonlightak...@yahoo.ca
 
 Cc: 
 href=mailto:freebsd-current@freebsd.org;freebsd-current@freebsd.org
 
 Sent: Wed, March 31, 2010 8:08:29 AM
 Subject: Re: CALL for TEST 
 [HOSTAP] run(4) ralink usb wireless

 Does stock run(4) 
 support hostap mode yet?


 No. There 
 were some bugs and I thought I fixed them. So, I called for test. It seems 
 the 
 driver is working on x86, but not on mips. hostap mode should work on your 
 other 
 computer with i386.

 I'm still working on patch. It panics where 
 there wasn't any changes made. Strange...
  
 

Hi,

Sorry, it looks like I missed some of your emails.
Please 
 let me know if you need any info from my 
 side.

thanks,

Ganbold


 
 AK




  __
Looking for the perfect gift? Give the gift of Flickr! 

http://www.flickr.com/gift/
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: CALL for TEST [HOSTAP] run(4) ralink usb wireless

2010-04-08 Thread Ganbold
Hi,

PseudoCylon wrote:
 Hi,

 Sorry for taking long to fix. Here is another patch.

 **But before trying it out, please check rev. of your system.**

 If you are using r206358 (15:29 UTC Apr. 7) or newer, the driver won't work. 
 If you are using older system, please try this patch.
 http://projects.nasreddine.com/projects/run/repository/revisions/mips1_fix/show/dev/usb/wlan
 Only if_run.c is patched since last time. (click file name, then click 
 download)

   

Ok, here it is:

http://freebsd.pastebin.com/g2YBBDeG



 If you are using r206358 or newer, please give me some time to fix. I'm 
 stating it now.

 Is your kernel compiled with INVARIANTS option?
   

Tried, but if_arge panics at boot with INVARIANTS option.

arge0: Atheros AR71xx built-in ethernet interface at mem
0x1900-0x19000fff irq 2 on nexus0
panic: mtx_lock() of spin mutex arge mii lock @
/usr/mysrc/sys/mips/atheros/if_arge.c:554


thanks,

Ganbold Ts

 AK



 - Original Message 
   
 From: Ganbold ganb...@gmail.com
 To: PseudoCylon moonlightak...@yahoo.ca
 Cc: freebsd-current@freebsd.org
 Sent: Tue, April 6, 2010 7:29:16 AM
 Subject: Re: CALL for TEST [HOSTAP] run(4) ralink usb wireless

 PseudoCylon wrote:
 - Original Message 
  

 
 From: Ganbold 
   
 href=mailto:ganb...@gmail.com;ganb...@gmail.com
 
 To: 
   
 PseudoCylon 
 href=mailto:moonlightak...@yahoo.ca;moonlightak...@yahoo.ca
 
 Cc: 
 href=mailto:freebsd-current@freebsd.org;freebsd-current@freebsd.org
 
 Sent: Wed, March 31, 2010 8:08:29 AM
 
 Subject: Re: CALL for TEST 
   
 [HOSTAP] run(4) ralink usb wireless
 
 Does stock run(4) 
   
 support hostap mode yet?
 

   
 No. There 
 were some bugs and I thought I fixed them. So, I called for test. It seems 
 the 
 driver is working on x86, but not on mips. hostap mode should work on your 
 other 
 computer with i386.

 I'm still working on patch. It panics where 
 there wasn't any changes made. Strange...
  

 

 Hi,

 Sorry, it looks like I missed some of your emails.
 Please 
   
 let me know if you need any info from my 
 side.
 

 thanks,

 Ganbold

   
 AK


 


   __
 Looking for the perfect gift? Give the gift of Flickr! 

 http://www.flickr.com/gift/

   


-- 
MONTANA: Where forty-three below keeps out the riff-raff.
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: CALL for TEST [HOSTAP] run(4) ralink usb wireless

2010-04-06 Thread Ganbold
PseudoCylon wrote:
 - Original Message 
   
 From: Ganbold ganb...@gmail.com
 To: PseudoCylon moonlightak...@yahoo.ca
 Cc: freebsd-current@freebsd.org
 Sent: Wed, March 31, 2010 8:08:29 AM
 Subject: Re: CALL for TEST [HOSTAP] run(4) ralink usb wireless

 Does stock run(4) support hostap mode yet?
 

 No. There were some bugs and I thought I fixed them. So, I called for test. 
 It seems the driver is working on x86, but not on mips. hostap mode should 
 work on your other computer with i386.

 I'm still working on patch. It panics where there wasn't any changes made. 
 Strange...
   

Hi,

Sorry, it looks like I missed some of your emails.
Please let me know if you need any info from my side.

thanks,

Ganbold


 AK


   __
 Yahoo! Canada Toolbar: Search from anywhere on the web, and bookmark your 
 favourite sites. Download it now
 http://ca.toolbar.yahoo.com.

   


-- 
It turned out that the worm exploited three or four different holes in
the system. From this, and the fact that we were able to capture and
examine some of the source code, we realized that we were dealing with
someone very sharp, probably not someone here on campus. -- Dr. Richard
LeBlanc, associate professor of ICS, in Georgia Tech's campus newspaper
after the Internet worm.
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: CALL for TEST [HOSTAP] run(4) ralink usb wireless

2010-04-01 Thread PseudoCylon
- Original Message 
 From: Ganbold ganb...@gmail.com
 To: PseudoCylon moonlightak...@yahoo.ca
 Cc: freebsd-current@freebsd.org
 Sent: Wed, March 31, 2010 8:08:29 AM
 Subject: Re: CALL for TEST [HOSTAP] run(4) ralink usb wireless

 Does stock run(4) support hostap mode yet?

No. There were some bugs and I thought I fixed them. So, I called for test. It 
seems the driver is working on x86, but not on mips. hostap mode should work on 
your other computer with i386.

I'm still working on patch. It panics where there wasn't any changes made. 
Strange...


AK


  __
Yahoo! Canada Toolbar: Search from anywhere on the web, and bookmark your 
favourite sites. Download it now
http://ca.toolbar.yahoo.com.
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: CALL for TEST [HOSTAP] run(4) ralink usb wireless

2010-03-31 Thread Ganbold
PseudoCylon wrote:
 - Original Message 

   
 From: Ganbold ganb...@gmail.com
 To: PseudoCylon moonlightak...@yahoo.ca
 Cc: freebsd-current@freebsd.org
 Sent: Sat, March 27, 2010 7:01:32 AM
 Subject: Re: CALL for TEST [HOSTAP] run(4) ralink usb wireless

 JFYI, I have just tested if_run and works fine on HEAD (i386).
 But on RouterStation Pro it still has problem with your patch.
 

   
 Ganbold
 

 Thank you for taking extra time to test the driver.

 Yes, it works on x86. It's hard to find bugs if everything is working on my 
 computers (core2 and atom 330).

 Here is patch.
 http://dev.nasreddine.com/gitweb/?p=run.git;a=tree;f=dev/usb/wlan;h=695689599706b01ed9ef0f1be8dfc5790076e1ae;hb=bdc7558bfbd4f3b1c4491cb56853de24580a5434
 Please download if_run.c and if_runvar.h (click raw to download)

 It will print out lots of messages. Please show me last 5 or so messages if 
 it still panics.

   

Ok, here it is:

rspro# ifconfig wlan0 up
run_stop: All Tx cleared
run_set_rx_antenna: called
run_rt3070_set_chan: called
run_bulk_rx_callback: called
run_newstate: INIT - SCAN
run_scan_start: called
run_set_bssid: called
run_set_channel: called
run_rt3070_set_chan: called
rspro# Trap cause = 5 (address error (store) - kernel mode)
[ thread pid 0 tid 100068 ]
Stopped at  ieee80211_radiotap_vdetach+0x70:sh  v1,0(a0)
db


 Does stock run(4) still works on RouterStation? There were some update 
 (r205042). Yours (r205084) has it.
   

Stock version worked when issued ifconfig wlan0 up once I tried.

wlan0: flags=8802BROADCAST,SIMPLEX,MULTICAST metric 0 mtu 1500
ether 00:22:cf:03:e0:30
media: IEEE 802.11 Wireless Ethernet autoselect (autoselect)
status: no carrier
ssid  channel 1 (2412 MHz 11b)
regdomain FCC country US authmode OPEN privacy OFF txpower 30
bmiss 7
scanvalid 60 wme bintval 0
rspro# ifconfig wlan0 up
run_stop: All Tx cleared
run_newstate: INIT - SCAN
rspro# ifconfig -a
run0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 2290
ether 00:22:cf:03:e0:30
media: IEEE 802.11 Wireless Ethernet autoselect mode 11g
status: associated
wlan0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 1500
ether 00:22:cf:03:e0:30
media: IEEE 802.11 Wireless Ethernet autoselect (autoselect)
status: no carrier
ssid  channel 11 (2462 MHz 11g)
regdomain FCC country US authmode OPEN privacy OFF txpower 30
bmiss 7
scanvalid 60 protmode CTS wme bintval 0


Ganbold
 AK


   __
 Yahoo! Canada Toolbar: Search from anywhere on the web, and bookmark your 
 favourite sites. Download it now
 http://ca.toolbar.yahoo.com.

   


-- 
Oprah Winfrey has an incredible talent for getting the wierdest people
to talk to. And you just HAVE to watch it. Blind, masochistic minority,
crippled, depressed, government latrine diggers, and the women who love
them too much on the next Oprah Winfrey.
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: CALL for TEST [HOSTAP] run(4) ralink usb wireless

2010-03-31 Thread Ganbold
PseudoCylon wrote:
 - Original Message 

   
 From: Ganbold ganb...@gmail.com
 To: PseudoCylon moonlightak...@yahoo.ca
 Cc: freebsd-current@freebsd.org
 Sent: Sat, March 27, 2010 7:01:32 AM
 Subject: Re: CALL for TEST [HOSTAP] run(4) ralink usb wireless

 JFYI, I have just tested if_run and works fine on HEAD (i386).
 But on RouterStation Pro it still has problem with your patch.
 

   
 Ganbold
 

 Thank you for taking extra time to test the driver.

 Yes, it works on x86. It's hard to find bugs if everything is working on my 
 computers (core2 and atom 330).

 Here is patch.
 http://dev.nasreddine.com/gitweb/?p=run.git;a=tree;f=dev/usb/wlan;h=695689599706b01ed9ef0f1be8dfc5790076e1ae;hb=bdc7558bfbd4f3b1c4491cb56853de24580a5434
 Please download if_run.c and if_runvar.h (click raw to download)

 It will print out lots of messages. Please show me last 5 or so messages if 
 it still panics.

 Does stock run(4) still works on RouterStation? There were some update 
 (r205042). Yours (r205084) has it.
   

Does stock run(4) support hostap mode yet?

rspro# sysctl net.wlan.debug=1
net.wlan.debug: 0 - 1
rspro# ifconfig wlan0 create wlandev run0 wlanmode hostap ssid bsd mode 11g
wlan0: Ethernet address: 00:22:cf:03:e0:30
Trap cause = 2 (TLB miss (load or instr. fetch) - kernel mode)
[ thread pid 1213 tid 100051 ]
Stopped at  strlcpy+0x14:   lb  v0,0(a1)
db bt
Tracing pid 1213 tid 100051 td 0xc0f1d720
db_trace_thread+30 (?,?,?,?) ra 80071160 sp c7ed7450 sz 24
80071044+11c (0,?,,?) ra 80070b54 sp c7ed7468 sz 32
800707c0+394 (?,?,?,?) ra 80070ce4 sp c7ed7488 sz 168
db_command_loop+78 (?,?,?,?) ra 800733b8 sp c7ed7530 sz 24
800732b0+108 (?,?,?,?) ra 801d8d4c sp c7ed7548 sz 424
kdb_trap+10c (?,?,?,?) ra 803c37f0 sp c7ed76f0 sz 32
trap+134c (?,?,?,?) ra 803baa58 sp c7ed7710 sz 176
MipsKernGenException+10c (c7ed7a66,0,8,c7ed7a54) ra 8025e6e4 sp c7ed77c0
sz 200
strlcpy+14 (?,?,?,?) ra 0 sp c7ed7888 sz 0
pid 1213
db

Ganbold

 AK


   __
 Yahoo! Canada Toolbar: Search from anywhere on the web, and bookmark your 
 favourite sites. Download it now
 http://ca.toolbar.yahoo.com.

   


-- 
The temperature of Heaven can be rather accurately computed from
available data. Our authority is Isaiah 30:26, Moreover, the light of
the Moon shall be as the light of the Sun and the light of the Sun shall
be sevenfold, as the light of seven days. Thus Heaven receives from the
Moon as much radiation as we do from the Sun, and in addition seven
times seven (49) times as much as the Earth does from the Sun, or fifty
times in all. The light we receive from the Moon is one ten-thousandth
of the light we receive from the Sun, so we can ignore that. With these
data we can compute the temperature of Heaven. The radiation falling on
Heaven will heat it to the point where the heat lost by radiation is
just equal to the heat received by radiation, i.e., Heaven loses fifty
times as much heat as the Earth by radiation. Using the Stefan-Boltzmann
law for radiation, (H/E)^4 = 50, where E is the absolute temperature of
the earth (~300K), gives H as 798K (525C). The exact temperature of Hell
cannot be computed, but it must be less than 444.6C, the temperature at
which brimstone or sulphur changes from a liquid to a gas. Revelations
21:8 says But the fearful, and unbelieving ... shall have their part in
the lake which burneth with fire and brimstone. A lake of molten
brimstone means that its temperature must be at or below the boiling
point, or 444.6C (Above this point it would be a vapor, not a lake.) We
have, then, that Heaven, at 525C is hotter than Hell at 445C. --
Applied Optics, vol. 11, A14, 1972
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: CALL for TEST [HOSTAP] run(4) ralink usb wireless

2010-03-30 Thread PseudoCylon
- Original Message 

 From: Ganbold ganb...@gmail.com
 To: PseudoCylon moonlightak...@yahoo.ca
 Cc: freebsd-current@freebsd.org
 Sent: Sat, March 27, 2010 7:01:32 AM
 Subject: Re: CALL for TEST [HOSTAP] run(4) ralink usb wireless
 
 JFYI, I have just tested if_run and works fine on HEAD (i386).
 But on RouterStation Pro it still has problem with your patch.

 Ganbold

Thank you for taking extra time to test the driver.

Yes, it works on x86. It's hard to find bugs if everything is working on my 
computers (core2 and atom 330).

Here is patch.
http://dev.nasreddine.com/gitweb/?p=run.git;a=tree;f=dev/usb/wlan;h=695689599706b01ed9ef0f1be8dfc5790076e1ae;hb=bdc7558bfbd4f3b1c4491cb56853de24580a5434
Please download if_run.c and if_runvar.h (click raw to download)

It will print out lots of messages. Please show me last 5 or so messages if it 
still panics.

Does stock run(4) still works on RouterStation? There were some update 
(r205042). Yours (r205084) has it.

AK


  __
Yahoo! Canada Toolbar: Search from anywhere on the web, and bookmark your 
favourite sites. Download it now
http://ca.toolbar.yahoo.com.
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: CALL for TEST [HOSTAP] run(4) ralink usb wireless

2010-03-27 Thread PseudoCylon
 Same.


 rspro# ifconfig wlan0 up

 rspro# Trap cause = 5 (address error (store) - kernel 
 mode)
 [ thread pid 0 tid 100047 ]
 Stopped at  
 ieee80211_radiotap_vdetach+0x70:
 sh  v1,0(a0)
 db bt
 Tracing pid 0 
 tid 100047 td 0xc0f1f260
 db_trace_thread+30 (?,?,?,?) ra 80071160 sp 
 c7ec9948 sz 24
 80071044+11c (0,?,,?) ra 80070b54 sp c7ec9960 
 sz 32
 800707c0+394 (?,?,?,?) ra 80070ce4 sp c7ec9980 sz 
 168
 db_command_loop+78 (?,?,?,?) ra 800733b8 sp c7ec9a28 sz 
 24
 800732b0+108 (?,?,?,?) ra 801d8b1c sp c7ec9a40 sz 424
 
 kdb_trap+10c (?,?,?,?) ra 803c2690 sp c7ec9be8 sz 32
 trap+134c 
 (?,?,?,?) ra 803b97c8 sp c7ec9c08 sz 176
 MipsKernGenException+10c 
 (c0f6a637,c0f721c8,c7ea7c04,e51) ra 802c95b8 sp
 c7ec9cb8 sz 
 200
 802c95a8+10 (?,?,?,?) ra 0 sp c7ec9d80 sz 0
 pid 
 0
 db

 Ganbold


Hi,

Can you try this patch? (Patch is for if_run.c)

Before ifconfig wlan0 up, please run
sysctl hw.usb.run.debug=1
This will give me more clues.

Does it panic right after wlan up, or are there some seconds before panic?

Regards,
AK

-- begin patch --

*** old_if_run.c2010-03-27 02:44:20.0 -0600
--- new_if_run.c2010-03-27 02:47:28.0 -0600
***
*** 414,416 
  static const struct {
! uint32_treg;
  uint32_tval;
--- 414,416 
  static const struct {
! uint16_treg;
  uint32_tval;
***
*** 1225,1227 
  
! *val = tmp  0xff;
  return 0;
--- 1225,1227 
  
! *val = (uint8_t)(tmp  0xff);
  return 0;


  __
The new Internet Explorer® 8 - Faster, safer, easier.  Optimized for Yahoo!  
Get it Now for Free! at http://downloads.yahoo.com/ca/internetexplorer/
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: CALL for TEST [HOSTAP] run(4) ralink usb wireless

2010-03-27 Thread Ganbold
PseudoCylon wrote:
 Same.
   
 Hi,

 Can you try this patch? (Patch is for if_run.c)

 Before ifconfig wlan0 up, please run
 sysctl hw.usb.run.debug=1
 This will give me more clues.

 Does it panic right after wlan up, or are there some seconds before panic?
   

Same, it panics right after issuing wlan up. I used this patch and also
if_runvar.h patch also.
...
run0: flags=8802BROADCAST,SIMPLEX,MULTICAST metric 0 mtu 2290
ether 00:22:cf:03:e0:30
media: IEEE 802.11 Wireless Ethernet autoselect (autoselect)
status: no carrier
wlan0: flags=8802BROADCAST,SIMPLEX,MULTICAST metric 0 mtu 1500
ether 00:22:cf:03:e0:30
media: IEEE 802.11 Wireless Ethernet autoselect (autoselect)
status: no carrier
ssid bsd channel 1 (2412 MHz 11b)
country US authmode OPEN privacy OFF txpower 0 bmiss 7 scanvalid 60
wme bintval 0
rspro# ifconfig wlan0 up 
run_stop: All Tx cleared
run_newstate: INIT - SCAN
rspro# Trap cause = 5 (address error (store) - kernel mode)
[ thread pid 0 tid 100047 ]
Stopped at  ieee80211_radiotap_vdetach+0x70:sh  v1,0(a0)
db

Ganbold

 Regards,
 AK

 -- begin patch --

 *** old_if_run.c2010-03-27 02:44:20.0 -0600
 --- new_if_run.c2010-03-27 02:47:28.0 -0600
 ***
 *** 414,416 
   static const struct {
 ! uint32_treg;
   uint32_tval;
 --- 414,416 
   static const struct {
 ! uint16_treg;
   uint32_tval;
 ***
 *** 1225,1227 
   
 ! *val = tmp  0xff;
   return 0;
 --- 1225,1227 
   
 ! *val = (uint8_t)(tmp  0xff);
   return 0;


   __
 The new Internet Explorer® 8 - Faster, safer, easier.  Optimized for Yahoo!  
 Get it Now for Free! at http://downloads.yahoo.com/ca/internetexplorer/
 ___
 freebsd-current@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-current
 To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org

   


-- 
The worst cliques are those which consist of one man. -- George Bernard
Shaw
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: CALL for TEST [HOSTAP] run(4) ralink usb wireless

2010-03-27 Thread Ganbold
PseudoCylon wrote:
 Same.
   

   

JFYI, I have just tested if_run and works fine on HEAD (i386).
But on RouterStation Pro it still has problem with your patch.

Ganbold


 rspro# ifconfig wlan0 up

 rspro# Trap cause = 5 (address error (store) - kernel 
   
 mode)
 
 [ thread pid 0 tid 100047 ]
 Stopped at  
   
 ieee80211_radiotap_vdetach+0x70:
 sh  v1,0(a0)
 
 db bt
 Tracing pid 0 
   
 tid 100047 td 0xc0f1f260
 
 db_trace_thread+30 (?,?,?,?) ra 80071160 sp 
   
 c7ec9948 sz 24
 
 80071044+11c (0,?,,?) ra 80070b54 sp c7ec9960 
   
 sz 32
 
 800707c0+394 (?,?,?,?) ra 80070ce4 sp c7ec9980 sz 
   
 168
 
 db_command_loop+78 (?,?,?,?) ra 800733b8 sp c7ec9a28 sz 
   
 24
 
 800732b0+108 (?,?,?,?) ra 801d8b1c sp c7ec9a40 sz 424

   
 kdb_trap+10c (?,?,?,?) ra 803c2690 sp c7ec9be8 sz 32
 
 trap+134c 
   
 (?,?,?,?) ra 803b97c8 sp c7ec9c08 sz 176
 
 MipsKernGenException+10c 
   
 (c0f6a637,c0f721c8,c7ea7c04,e51) ra 802c95b8 sp
 
 c7ec9cb8 sz 
   
 200
 
 802c95a8+10 (?,?,?,?) ra 0 sp c7ec9d80 sz 0
 pid 
   
 0
 
 db

 Ganbold

   

 Hi,

 Can you try this patch? (Patch is for if_run.c)

 Before ifconfig wlan0 up, please run
 sysctl hw.usb.run.debug=1
 This will give me more clues.

 Does it panic right after wlan up, or are there some seconds before panic?

 Regards,
 AK

 -- begin patch --

 *** old_if_run.c2010-03-27 02:44:20.0 -0600
 --- new_if_run.c2010-03-27 02:47:28.0 -0600
 ***
 *** 414,416 
   static const struct {
 ! uint32_treg;
   uint32_tval;
 --- 414,416 
   static const struct {
 ! uint16_treg;
   uint32_tval;
 ***
 *** 1225,1227 
   
 ! *val = tmp  0xff;
   return 0;
 --- 1225,1227 
   
 ! *val = (uint8_t)(tmp  0xff);
   return 0;


   __
 The new Internet Explorer® 8 - Faster, safer, easier.  Optimized for Yahoo!  
 Get it Now for Free! at http://downloads.yahoo.com/ca/internetexplorer/
 ___
 freebsd-current@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-current
 To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org

   


-- 
The Bible is not my Book and Christianity is not my religion. I could
never give assent to the long complicated statements of Christian dogma.
-- Abraham Lincoln
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: CALL for TEST [HOSTAP] run(4) ralink usb wireless

2010-03-19 Thread Ganbold
PseudoCylon wrote:
 Can you show me output of followings? (I have only intel chips.)

 #kldstat | grep if_run (after loading the driver. no need to run it)
 #objdump -h /boot/kernel/if_run.ko | grep text
 #objdump --source /boot/kernel/if_run.ko | grep \:
   

Here it is:

rspro# uname -an
FreeBSD rspro.micom.mng.net 9.0-CURRENT FreeBSD 9.0-CURRENT #15
r205084M: Thu Mar 18 21:23:45 ULAT 2010
ts...@beastie.micom.mng.net:/usr/obj/mips/usr/mysrc/sys/RSPRO_AR71XX  mips
rspro# kldstat | grep if_run
 31 0xc7e9c000 d338 if_run.ko
rspro# objdump -h /boot/kernel/if_run.ko | grep text
  1 .text a0b0      0050  2**4
rspro# objdump --source /boot/kernel/if_run.ko | grep \:
 run_key_update_begin:
0008 run_key_update_end:
0010 run_unsetup_tx_list:
00c0 run_detach:
01d8 run_set_tx_desc:
0398 run_rssi2dbm:
0460 run_rx_frame:
0a40 run_bulk_rx_callback:
0f94 run_tx_free:
107c run_amrr_to:
10ac run_eeprom_read_2:
1160 run_delay:
11c4 run_do_request:
12d0 run_write_2:
1330 run_write_region_1:
13dc run_write:
144c run_set_bssid:
14d4 run_wme_update:
179c run_set_region_4:
183c run_read_region_1:
1894 run_read:
1914 run_updateslot_locked:
1998 run_updateslot_cb:
1a18 run_enable_tsf_sync:
1b24 run_scan_end:
1bb8 run_update_promisc_locked:
1c84 run_update_promisc:
1d10 run_reset_livelock:
1e08 run_scan_start:
1ecc run_drain_fifo:
207c run_mcu_cmd:
215c run_set_leds:
2190 run_bbp_write:
2264 run_bbp_read:
239c run_rt3070_rf_write:
2470 run_rt3070_rf_read:
25a8 run_rt3070_filter_calib:
2844 run_rt2870_rf_write:
2924 run_set_chan:
3980 run_set_channel:
3a10 run_efuse_read_2:
3ba8 run_attach:
51b8 run_node_alloc:
51e8 run_vap_create:
5488 run_usb_timeout_cb:
55b4 run_key_delete:
59e0 run_key_delete_cb:
5ac4 run_iter_func:
5d38 run_amrr_cb:
5e5c run_start:
64a0 run_bulk_tx_callbackN:
6a00 run_bulk_tx_callback5:
6a24 run_bulk_tx_callback4:
6a48 run_bulk_tx_callback3:
6a6c run_bulk_tx_callback2:
6a90 run_bulk_tx_callback1:
6ab4 run_bulk_tx_callback0:
6ad8 run_raw_xmit:
725c run_newassoc:
7540 run_stop:
7888 run_match:
78f8 run_vap_delete:
7a28 run_updateslot:
7c00 run_key_set:
80dc run_init_locked:
960c run_init:
96c0 run_ioctl:
9850 run_update_beacon_locked:
997c run_update_beacon_cb:
9a08 run_update_beacon:
9bf4 run_newstate:
rspro#


Ganbold




 AK

   
 Same.
 

   
 rspro# ifconfig wlan0 up

 rspro# Trap cause = 5 (address error (store) - kernel mode)
 [ thread pid 0 tid 100047 ]
 Stopped at  ieee80211_radiotap_vdetach+0x70:sh  v1,0(a0)
 db bt
 Tracing pid 0 tid 100047 td 0xc0f1f260
 db_trace_thread+30 (?,?,?,?) ra 80071160 sp c7ec9948 sz 24
 80071044+11c (0,?,,?) ra 80070b54 sp c7ec9960 sz 32
 800707c0+394 (?,?,?,?) ra 80070ce4 sp c7ec9980 sz 168
 db_command_loop+78 (?,?,?,?) ra 800733b8 sp c7ec9a28 sz 24
 800732b0+108 (?,?,?,?) ra 801d8b1c sp c7ec9a40 sz 424
 kdb_trap+10c (?,?,?,?) ra 803c2690 sp c7ec9be8 sz 32
 trap+134c (?,?,?,?) ra 803b97c8 sp c7ec9c08 sz 176
 MipsKernGenException+10c (c0f6a637,c0f721c8,c7ea7c04,e51) ra 802c95b8 sp
 c7ec9cb8 sz 200
 802c95a8+10 (?,?,?,?) ra 0 sp c7ec9d80 sz 0
 pid 0
 db
 

   
 Ganbold
 


   __
 Yahoo! Canada Toolbar: Search from anywhere on the web, and bookmark your 
 favourite sites. Download it now
 http://ca.toolbar.yahoo.com.
 ___
 freebsd-current@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-current
 To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org



   


-- 
Her locks an ancient lady gave Her loving husband's life to save; And
men -- they honored so the dame -- Upon some stars bestowed her name.
But to our modern married fair, Who'd give their lords to save their
hair, No stellar recognition's given. There are not stars enough in heaven.
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: CALL for TEST [HOSTAP] run(4) ralink usb wireless

2010-03-18 Thread Ganbold
Hi,

PseudoCylon wrote:
 Hello, again.

 Can you try this patch? Patch is for if_runvar.h

 --begin patch--

 *** old_if_runvar.h2010-03-16 19:14:25.0 -0600
 --- new_if_runvar.h2010-03-16 19:15:51.0 -0600
 ***
 *** 184,186 
   uint8_tval;
 ! }bbp[8], rf[10];
   uint8_tleds;
 --- 184,186 
   uint8_tval;
 ! }bbp[10], rf[10];
   uint8_tleds;

 --end patch--
   

Same.

wlan0: flags=8802BROADCAST,SIMPLEX,MULTICAST metric 0 mtu 1500
ether 00:22:cf:03:e0:30
media: IEEE 802.11 Wireless Ethernet autoselect (autoselect)
status: no carrier
ssid bsd channel 1 (2412 MHz 11b)
country US authmode OPEN privacy OFF txpower 0 bmiss 7 scanvalid 60
wme bintval 0
rspro# ifconfig wlan0 up 
rspro# Trap cause = 5 (address error (store) - kernel mode)
[ thread pid 0 tid 100047 ]
Stopped at  ieee80211_radiotap_vdetach+0x70:sh  v1,0(a0)
db bt
Tracing pid 0 tid 100047 td 0xc0f1f260
db_trace_thread+30 (?,?,?,?) ra 80071160 sp c7ec9948 sz 24
80071044+11c (0,?,,?) ra 80070b54 sp c7ec9960 sz 32
800707c0+394 (?,?,?,?) ra 80070ce4 sp c7ec9980 sz 168
db_command_loop+78 (?,?,?,?) ra 800733b8 sp c7ec9a28 sz 24
800732b0+108 (?,?,?,?) ra 801d8b1c sp c7ec9a40 sz 424
kdb_trap+10c (?,?,?,?) ra 803c2690 sp c7ec9be8 sz 32
trap+134c (?,?,?,?) ra 803b97c8 sp c7ec9c08 sz 176
MipsKernGenException+10c (c0f6a637,c0f721c8,c7ea7c04,e51) ra 802c95b8 sp
c7ec9cb8 sz 200
802c95a8+10 (?,?,?,?) ra 0 sp c7ec9d80 sz 0
pid 0
db

Ganbold

 Does your mips use big endian?

 AK



 Tried this version on routerstation pro (mips) board. Root fs is in 
   
 NFS.
 
 (FreeBSD 9.0-CURRENT #13 r205084M: Tue Mar 16 22:35:25 ULAT 
   
 2010).
 

 ..
 run0: 1.0 on usbus0
 run0: MAC/BBP RT3070 (rev 
   
 0x0200), RF RT3020 (MIMO 1T1R), address
 
 00:22:cf:03:e0:30
 Updating 
   
 motd:run0: firmware RT2870 loaded
 
 _
 ..

 run0: 
   
 flags=8802BROADCAST,SIMPLEX,MULTICAST metric 0 mtu 2290
 
 
   
 ether 00:22:cf:03:e0:30
 
 media: IEEE 
   
 802.11 Wireless Ethernet autoselect (autoselect)
 
 
   
 status: no carrier
 
 wlan0: flags=8802BROADCAST,SIMPLEX,MULTICAST 
   
 metric 0 mtu 1500
 
 ether 
   
 00:22:cf:03:e0:30
 
 media: IEEE 802.11 Wireless 
   
 Ethernet autoselect mode 11g
 
 status: no 
   
 carrier
 
 ssid bsd channel 6 (2437 MHz 
   
 11g)
 
 country US authmode OPEN privacy OFF txpower 
   
 0 bmiss 7 scanvalid 60
 
 protmode CTS wme bintval 
   
 0
 
 rspro# ifconfig wlan0 up
 rspro# Trap cause = 5 (address 
   
 error (store) - kernel mode)
 
 [ thread pid 0 tid 100047 ]
 Stopped at  
   
 ieee80211_radiotap_vdetach+0x70:
 sh  v1,0(a0)
 
 db c
 panic: trap
 KDB: enter: 
   
 panic
 
 [ thread pid 0 tid 100047 ]
 Stopped at  
   
 kdb_enter+0x50: lui at,0x804c
 
 db bt
 Tracing pid 0 tid 
   
 100047 td 0xc0f1f260
 
 db_trace_thread+30 (?,?,?,?) ra 80071160 sp c7ec9790 sz 
   
 24
 
 80071044+11c (0,?,,?) ra 80070b54 sp c7ec97a8 sz 
   
 32
 
 800707c0+394 (?,?,?,?) ra 80070ce4 sp c7ec97c8 sz 
   
 168
 
 db_command_loop+78 (?,?,?,?) ra 800733b8 sp c7ec9870 sz 
   
 24
 
 800732b0+108 (?,?,?,?) ra 801d8b1c sp c7ec9888 sz 424
 kdb_trap+10c 
   
 (?,?,?,?) ra 803c2440 sp c7ec9a30 sz 32
 
 trap+10fc (?,?,?,?) ra 803b97c8 sp 
   
 c7ec9a50 sz 176
 
 MipsKernGenException+10c (0,a,804e0fe4,2) ra 801d8d74 sp 
   
 c7ec9b00 sz 200
 
 kdb_enter+50 (?,?,?,?) ra 8019ccc0 sp c7ec9bc8 sz 
   
 24
 
 panic+f8 (?,802c95b8,,c7ec9990) ra 803c26a0 sp c7ec9be0 sz 
   
 40
 
 trap+135c (?,?,?,?) ra 803b97c8 sp c7ec9c08 sz 
   
 176
 
 MipsKernGenException+10c (c0f6a62f,c0f72268,c7ea7c14,e51) ra 802c95b8 
   
 sp
 
 c7ec9cb8 sz 200
 802c95a8+10 (?,?,?,?) ra 0 sp c7ec9d80 sz 0
 pid 
   
 0
 
 db


 Btw, ifconfig wlan0 up works on with stock run(4) which 
   
 was committed to
 
 HEAD end of Jan.
 Please let me know if you need any more 
   
 information.
 

 Ganbold

   
 Best,
 AK

  
 
 FreeBSD and all other open source projects are the Tower of Babel 
 in computer era. --me
 So, join me @ 
 git://dev.nasreddine.com/run.git
 (or 
 href=http://dev.nasreddine.com/gitweb/?p=run.git;a=summary; target=_blank 
 
 http://dev.nasreddine.com/gitweb/?p=run.git;a=summary )
   
 Just work 
 on any of *_dev branches.



  
 __

 Looking for the perfect gift? Give the gift of Flickr! 


 href=http://www.flickr.com/gift/; target=_blank 
 
 http://www.flickr.com/gift/
   
 ___

 ymailto=mailto:freebsd-current@freebsd.org; 
 href=mailto:freebsd-current@freebsd.org;freebsd-current@freebsd.org 
 

Re: CALL for TEST [HOSTAP] run(4) ralink usb wireless

2010-03-18 Thread Rui Paulo

On 17 Mar 2010, at 01:23, PseudoCylon wrote:

 
 Does your mips use big endian?

Yes, the routerstation pros are big endian.

--
Rui Paulo

___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: CALL for TEST [HOSTAP] run(4) ralink usb wireless

2010-03-18 Thread PseudoCylon
Can you show me output of followings? (I have only intel chips.)

#kldstat | grep if_run (after loading the driver. no need to run it)
#objdump -h /boot/kernel/if_run.ko | grep text
#objdump --source /boot/kernel/if_run.ko | grep \:



AK

 Same.

 rspro# ifconfig wlan0 up

 rspro# Trap cause = 5 (address error (store) - kernel mode)
 [ thread pid 0 tid 100047 ]
 Stopped at  ieee80211_radiotap_vdetach+0x70:sh  v1,0(a0)
 db bt
 Tracing pid 0 tid 100047 td 0xc0f1f260
 db_trace_thread+30 (?,?,?,?) ra 80071160 sp c7ec9948 sz 24
 80071044+11c (0,?,,?) ra 80070b54 sp c7ec9960 sz 32
 800707c0+394 (?,?,?,?) ra 80070ce4 sp c7ec9980 sz 168
 db_command_loop+78 (?,?,?,?) ra 800733b8 sp c7ec9a28 sz 24
 800732b0+108 (?,?,?,?) ra 801d8b1c sp c7ec9a40 sz 424
 kdb_trap+10c (?,?,?,?) ra 803c2690 sp c7ec9be8 sz 32
 trap+134c (?,?,?,?) ra 803b97c8 sp c7ec9c08 sz 176
 MipsKernGenException+10c (c0f6a637,c0f721c8,c7ea7c04,e51) ra 802c95b8 sp
 c7ec9cb8 sz 200
 802c95a8+10 (?,?,?,?) ra 0 sp c7ec9d80 sz 0
 pid 0
 db

 Ganbold


  __
Yahoo! Canada Toolbar: Search from anywhere on the web, and bookmark your 
favourite sites. Download it now
http://ca.toolbar.yahoo.com.
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: CALL for TEST [HOSTAP] run(4) ralink usb wireless

2010-03-16 Thread Ganbold
Hi,

PseudoCylon wrote:
 Hello,

 Finally, I have fixed mysterious device lock out and run(4) works fine in 
 HOSTAP mode. Up time is 80 hours and counting. I even filed tax though it.

 The device supports up to 253 stations. I only tested with 2 station. If you 
 have resources, please hit it with bunch of STAs.

 As usual codes are posted at my git repository
 git://dev.nasreddine.com/run.git
 http://dev.nasreddine.com/gitweb/?p=run.git;a=summary
 Please fetch 'hostap_rc' branch not 'master' this time.

 or freebsd forums
 http://forums.freebsd.org/showthread.php?s=1d3b01fbed80c61ff508e12e9805146et=7562
   

Tried this version on routerstation pro (mips) board. Root fs is in NFS.
(FreeBSD 9.0-CURRENT #13 r205084M: Tue Mar 16 22:35:25 ULAT 2010).

...
run0: 1.0 on usbus0
run0: MAC/BBP RT3070 (rev 0x0200), RF RT3020 (MIMO 1T1R), address
00:22:cf:03:e0:30
Updating motd:run0: firmware RT2870 loaded
.
...

run0: flags=8802BROADCAST,SIMPLEX,MULTICAST metric 0 mtu 2290
ether 00:22:cf:03:e0:30
media: IEEE 802.11 Wireless Ethernet autoselect (autoselect)
status: no carrier
wlan0: flags=8802BROADCAST,SIMPLEX,MULTICAST metric 0 mtu 1500
ether 00:22:cf:03:e0:30
media: IEEE 802.11 Wireless Ethernet autoselect mode 11g
status: no carrier
ssid bsd channel 6 (2437 MHz 11g)
country US authmode OPEN privacy OFF txpower 0 bmiss 7 scanvalid 60
protmode CTS wme bintval 0
rspro# ifconfig wlan0 up 
rspro# Trap cause = 5 (address error (store) - kernel mode)
[ thread pid 0 tid 100047 ]
Stopped at  ieee80211_radiotap_vdetach+0x70:sh  v1,0(a0)
db c
panic: trap
KDB: enter: panic
[ thread pid 0 tid 100047 ]
Stopped at  kdb_enter+0x50: lui at,0x804c
db bt
Tracing pid 0 tid 100047 td 0xc0f1f260
db_trace_thread+30 (?,?,?,?) ra 80071160 sp c7ec9790 sz 24
80071044+11c (0,?,,?) ra 80070b54 sp c7ec97a8 sz 32
800707c0+394 (?,?,?,?) ra 80070ce4 sp c7ec97c8 sz 168
db_command_loop+78 (?,?,?,?) ra 800733b8 sp c7ec9870 sz 24
800732b0+108 (?,?,?,?) ra 801d8b1c sp c7ec9888 sz 424
kdb_trap+10c (?,?,?,?) ra 803c2440 sp c7ec9a30 sz 32
trap+10fc (?,?,?,?) ra 803b97c8 sp c7ec9a50 sz 176
MipsKernGenException+10c (0,a,804e0fe4,2) ra 801d8d74 sp c7ec9b00 sz 200
kdb_enter+50 (?,?,?,?) ra 8019ccc0 sp c7ec9bc8 sz 24
panic+f8 (?,802c95b8,,c7ec9990) ra 803c26a0 sp c7ec9be0 sz 40
trap+135c (?,?,?,?) ra 803b97c8 sp c7ec9c08 sz 176
MipsKernGenException+10c (c0f6a62f,c0f72268,c7ea7c14,e51) ra 802c95b8 sp
c7ec9cb8 sz 200
802c95a8+10 (?,?,?,?) ra 0 sp c7ec9d80 sz 0
pid 0
db


Btw, ifconfig wlan0 up works on with stock run(4) which was committed to
HEAD end of Jan.
Please let me know if you need any more information.

Ganbold

 Best,
 AK

  
 FreeBSD and all other open source projects are the Tower of Babel in 
 computer era. --me
 So, join me @ git://dev.nasreddine.com/run.git
 (or http://dev.nasreddine.com/gitweb/?p=run.git;a=summary )
 Just work on any of *_dev branches.



   __
 Looking for the perfect gift? Give the gift of Flickr! 

 http://www.flickr.com/gift/
 ___
 freebsd-current@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-current
 To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org



   


-- 
One thing about the past. It's likely to last. -- Ogden Nash
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: CALL for TEST [HOSTAP] run(4) ralink usb wireless

2010-03-16 Thread PseudoCylon
Hello,

Can you check version of firmware for me?

At the end of ralink's license (before the actual code) in rt2870.fw.uu, if it 
says
RT2870 v. 0.11
RT3071 v. 0.11
it's the latest. If there is no version info, it is old version.

Your chipset, rt3070 + rf3020 uses mcu command to select the antenna available 
in new firmware.

Best,
AK

Tried this version on routerstation pro (mips) board. Root fs is in 
 NFS.
(FreeBSD 9.0-CURRENT #13 r205084M: Tue Mar 16 22:35:25 ULAT 
 2010).

...
run0: 1.0 on usbus0
run0: MAC/BBP RT3070 (rev 
 0x0200), RF RT3020 (MIMO 1T1R), address
00:22:cf:03:e0:30
Updating 
 motd:run0: firmware RT2870 loaded
.
...

run0: 
 flags=8802BROADCAST,SIMPLEX,MULTICAST metric 0 mtu 2290

 ether 00:22:cf:03:e0:30
media: IEEE 
 802.11 Wireless Ethernet autoselect (autoselect)

 status: no carrier
wlan0: flags=8802BROADCAST,SIMPLEX,MULTICAST 
 metric 0 mtu 1500
ether 
 00:22:cf:03:e0:30
media: IEEE 802.11 Wireless 
 Ethernet autoselect mode 11g
status: no 
 carrier
ssid bsd channel 6 (2437 MHz 
 11g)
country US authmode OPEN privacy OFF txpower 
 0 bmiss 7 scanvalid 60
protmode CTS wme bintval 
 0
rspro# ifconfig wlan0 up
rspro# Trap cause = 5 (address 
 error (store) - kernel mode)
[ thread pid 0 tid 100047 ]
Stopped at  
 ieee80211_radiotap_vdetach+0x70:
 sh  v1,0(a0)
db c
panic: trap
KDB: enter: 
 panic
[ thread pid 0 tid 100047 ]
Stopped at  
 kdb_enter+0x50: lui at,0x804c
db bt
Tracing pid 0 tid 
 100047 td 0xc0f1f260
db_trace_thread+30 (?,?,?,?) ra 80071160 sp c7ec9790 sz 
 24
80071044+11c (0,?,,?) ra 80070b54 sp c7ec97a8 sz 
 32
800707c0+394 (?,?,?,?) ra 80070ce4 sp c7ec97c8 sz 
 168
db_command_loop+78 (?,?,?,?) ra 800733b8 sp c7ec9870 sz 
 24
800732b0+108 (?,?,?,?) ra 801d8b1c sp c7ec9888 sz 424
kdb_trap+10c 
 (?,?,?,?) ra 803c2440 sp c7ec9a30 sz 32
trap+10fc (?,?,?,?) ra 803b97c8 sp 
 c7ec9a50 sz 176
MipsKernGenException+10c (0,a,804e0fe4,2) ra 801d8d74 sp 
 c7ec9b00 sz 200
kdb_enter+50 (?,?,?,?) ra 8019ccc0 sp c7ec9bc8 sz 
 24
panic+f8 (?,802c95b8,,c7ec9990) ra 803c26a0 sp c7ec9be0 sz 
 40
trap+135c (?,?,?,?) ra 803b97c8 sp c7ec9c08 sz 
 176
MipsKernGenException+10c (c0f6a62f,c0f72268,c7ea7c14,e51) ra 802c95b8 
 sp
c7ec9cb8 sz 200
802c95a8+10 (?,?,?,?) ra 0 sp c7ec9d80 sz 0
pid 
 0
db


Btw, ifconfig wlan0 up works on with stock run(4) which 
 was committed to
HEAD end of Jan.
Please let me know if you need any more 
 information.

Ganbold

 Best,
 AK

  
 
 FreeBSD and all other open source projects are the Tower of Babel 
 in computer era. --me
 So, join me @ 
 git://dev.nasreddine.com/run.git
 (or 
 href=http://dev.nasreddine.com/gitweb/?p=run.git;a=summary;; target=_blank 
 http://dev.nasreddine.com/gitweb/?p=run.git;a=summary )
 Just work 
 on any of *_dev branches.



  
 __
 
 Looking for the perfect gift? Give the gift of Flickr! 

 
 href=http://www.flickr.com/gift/;; target=_blank 
 http://www.flickr.com/gift/
 
 ___
 
 ymailto=mailto:freebsd-current@freebsd.org; 
 href=mailto:freebsd-current@freebsd.org;freebsd-current@freebsd.org 
 mailing list
 
 href=http://lists.freebsd.org/mailman/listinfo/freebsd-current;; 
 target=_blank 
 http://lists.freebsd.org/mailman/listinfo/freebsd-current
 To 
 unsubscribe, send any mail to 
 ymailto=mailto:freebsd-current-unsubscr...@freebsd.org; 
 href=mailto:freebsd-current-unsubscr...@freebsd.org;freebsd-current-unsubscr...@freebsd.org



  
 


-- 
One thing about the past. It's likely to last. -- Ogden 
 Nash


  __
Looking for the perfect gift? Give the gift of Flickr! 

http://www.flickr.com/gift/
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: CALL for TEST [HOSTAP] run(4) ralink usb wireless

2010-03-16 Thread PseudoCylon
Hello, again.

Can you try this patch? Patch is for if_runvar.h

--begin patch--

*** old_if_runvar.h2010-03-16 19:14:25.0 -0600
--- new_if_runvar.h2010-03-16 19:15:51.0 -0600
***
*** 184,186 
  uint8_tval;
! }bbp[8], rf[10];
  uint8_tleds;
--- 184,186 
  uint8_tval;
! }bbp[10], rf[10];
  uint8_tleds;

--end patch--

Does your mips use big endian?

AK



Tried this version on routerstation pro (mips) board. Root fs is in 
 NFS.
(FreeBSD 9.0-CURRENT #13 r205084M: Tue Mar 16 22:35:25 ULAT 
 2010).

...
run0: 1.0 on usbus0
run0: MAC/BBP RT3070 (rev 
 0x0200), RF RT3020 (MIMO 1T1R), address
00:22:cf:03:e0:30
Updating 
 motd:run0: firmware RT2870 loaded
.
...

run0: 
 flags=8802BROADCAST,SIMPLEX,MULTICAST metric 0 mtu 2290

 ether 00:22:cf:03:e0:30
media: IEEE 
 802.11 Wireless Ethernet autoselect (autoselect)

 status: no carrier
wlan0: flags=8802BROADCAST,SIMPLEX,MULTICAST 
 metric 0 mtu 1500
ether 
 00:22:cf:03:e0:30
media: IEEE 802.11 Wireless 
 Ethernet autoselect mode 11g
status: no 
 carrier
ssid bsd channel 6 (2437 MHz 
 11g)
country US authmode OPEN privacy OFF txpower 
 0 bmiss 7 scanvalid 60
protmode CTS wme bintval 
 0
rspro# ifconfig wlan0 up
rspro# Trap cause = 5 (address 
 error (store) - kernel mode)
[ thread pid 0 tid 100047 ]
Stopped at  
 ieee80211_radiotap_vdetach+0x70:
 sh  v1,0(a0)
db c
panic: trap
KDB: enter: 
 panic
[ thread pid 0 tid 100047 ]
Stopped at  
 kdb_enter+0x50: lui at,0x804c
db bt
Tracing pid 0 tid 
 100047 td 0xc0f1f260
db_trace_thread+30 (?,?,?,?) ra 80071160 sp c7ec9790 sz 
 24
80071044+11c (0,?,,?) ra 80070b54 sp c7ec97a8 sz 
 32
800707c0+394 (?,?,?,?) ra 80070ce4 sp c7ec97c8 sz 
 168
db_command_loop+78 (?,?,?,?) ra 800733b8 sp c7ec9870 sz 
 24
800732b0+108 (?,?,?,?) ra 801d8b1c sp c7ec9888 sz 424
kdb_trap+10c 
 (?,?,?,?) ra 803c2440 sp c7ec9a30 sz 32
trap+10fc (?,?,?,?) ra 803b97c8 sp 
 c7ec9a50 sz 176
MipsKernGenException+10c (0,a,804e0fe4,2) ra 801d8d74 sp 
 c7ec9b00 sz 200
kdb_enter+50 (?,?,?,?) ra 8019ccc0 sp c7ec9bc8 sz 
 24
panic+f8 (?,802c95b8,,c7ec9990) ra 803c26a0 sp c7ec9be0 sz 
 40
trap+135c (?,?,?,?) ra 803b97c8 sp c7ec9c08 sz 
 176
MipsKernGenException+10c (c0f6a62f,c0f72268,c7ea7c14,e51) ra 802c95b8 
 sp
c7ec9cb8 sz 200
802c95a8+10 (?,?,?,?) ra 0 sp c7ec9d80 sz 0
pid 
 0
db


Btw, ifconfig wlan0 up works on with stock run(4) which 
 was committed to
HEAD end of Jan.
Please let me know if you need any more 
 information.

Ganbold

 Best,
 AK

  
 
 FreeBSD and all other open source projects are the Tower of Babel 
 in computer era. --me
 So, join me @ 
 git://dev.nasreddine.com/run.git
 (or 
 href=http://dev.nasreddine.com/gitweb/?p=run.git;a=summary; target=_blank 
 http://dev.nasreddine.com/gitweb/?p=run.git;a=summary )
 Just work 
 on any of *_dev branches.



  
 __
 
 Looking for the perfect gift? Give the gift of Flickr! 

 
 href=http://www.flickr.com/gift/; target=_blank 
 http://www.flickr.com/gift/
 
 ___
 
 ymailto=mailto:freebsd-current@freebsd.org; 
 href=mailto:freebsd-current@freebsd.org;freebsd-current@freebsd.org 
 mailing list
 
 href=http://lists.freebsd.org/mailman/listinfo/freebsd-current; 
 target=_blank 
 http://lists.freebsd.org/mailman/listinfo/freebsd-current
 To 
 unsubscribe, send any mail to 
 ymailto=mailto:freebsd-current-unsubscr...@freebsd.org; 
 href=mailto:freebsd-current-unsubscr...@freebsd.org;freebsd-current-unsubscr...@freebsd.org



  
 


-- 
One thing about the past. It's likely to last. -- Ogden 
 Nash


  __
Looking for the perfect gift? Give the gift of Flickr! 

http://www.flickr.com/gift/
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


RE: CALL for TEST [HOSTAP] run(4) ralink usb wireless

2010-03-16 Thread Ganbold.TS
Hi,

 Hello,
 
 Can you check version of firmware for me?
 
 At the end of ralink's license (before the actual
 code) in rt2870.fw.uu, if it says
 RT2870 v. 0.11
 RT3071 v. 0.11
 it's the latest. If there is no version info, it is
 old version.
 
 Your chipset, rt3070 + rf3020 uses mcu command to
 select the antenna available in new firmware.


I used following code at
http://forums.freebsd.org/attachment.php?attachmentid=776d=1267842698

I guess it is latest one. It shows:

#  RT2870 v. 0.11
#  RT3071 v. 0.11

Ganbold

 
 Best,
 AK
 
 Tried this version on routerstation pro (mips) board.
 Root fs is in 
  NFS.
 (FreeBSD 9.0-CURRENT #13 r205084M: Tue Mar 16
 22:35:25 ULAT 
  2010).
 
 ...
 run0: 1.0 on usbus0
 run0: MAC/BBP RT3070 (rev 
  0x0200), RF RT3020 (MIMO 1T1R), address
 00:22:cf:03:e0:30
 Updating 
  motd:run0: firmware RT2870 loaded
 .
 ...
 
 run0: 
  flags=8802BROADCAST,SIMPLEX,MULTICAST metric 0
 mtu 2290
 
  ether 00:22:cf:03:e0:30
 media: IEEE 
  802.11 Wireless Ethernet autoselect (autoselect)
 
  status: no carrier
 wlan0: flags=8802BROADCAST,SIMPLEX,MULTICAST 
  metric 0 mtu 1500
 ether 
  00:22:cf:03:e0:30
 media: IEEE 802.11 Wireless 
  Ethernet autoselect mode 11g
 status: no 
  carrier
 ssid bsd channel 6 (2437 MHz 
  11g)
 country US authmode OPEN privacy OFF txpower 
  0 bmiss 7 scanvalid 60
 protmode CTS wme bintval 
  0
 rspro# ifconfig wlan0 up
 rspro# Trap cause = 5 (address 
  error (store) - kernel mode)
 [ thread pid 0 tid 100047 ]
 Stopped at  
  ieee80211_radiotap_vdetach+0x70:
  sh  v1,0(a0)
 db c
 panic: trap
 KDB: enter: 
  panic
 [ thread pid 0 tid 100047 ]
 Stopped at  
  kdb_enter+0x50: lui at,0x804c
 db bt
 Tracing pid 0 tid 
  100047 td 0xc0f1f260
 db_trace_thread+30 (?,?,?,?) ra 80071160 sp c7ec9790
 sz 
  24
 80071044+11c (0,?,,?) ra 80070b54 sp c7ec97a8
 sz 
  32
 800707c0+394 (?,?,?,?) ra 80070ce4 sp c7ec97c8 sz 
  168
 db_command_loop+78 (?,?,?,?) ra 800733b8 sp c7ec9870
 sz 
  24
 800732b0+108 (?,?,?,?) ra 801d8b1c sp c7ec9888 sz 424
 kdb_trap+10c 
  (?,?,?,?) ra 803c2440 sp c7ec9a30 sz 32
 trap+10fc (?,?,?,?) ra 803b97c8 sp 
  c7ec9a50 sz 176
 MipsKernGenException+10c (0,a,804e0fe4,2) ra 801d8d74
 sp 
  c7ec9b00 sz 200
 kdb_enter+50 (?,?,?,?) ra 8019ccc0 sp c7ec9bc8 sz 
  24
 panic+f8 (?,802c95b8,,c7ec9990) ra 803c26a0
 sp c7ec9be0 sz 
  40
 trap+135c (?,?,?,?) ra 803b97c8 sp c7ec9c08 sz 
  176
 MipsKernGenException+10c
 (c0f6a62f,c0f72268,c7ea7c14,e51) ra 802c95b8 
  sp
 c7ec9cb8 sz 200
 802c95a8+10 (?,?,?,?) ra 0 sp c7ec9d80 sz 0
 pid 
  0
 db
 
 
 Btw, ifconfig wlan0 up works on with stock run(4)
 which 
  was committed to
 HEAD end of Jan.
 Please let me know if you need any more 
  information.
 
 Ganbold
 
  Best,
  AK
 
   
  
  FreeBSD and all other open source projects are the
 Tower of Babel 
  in computer era. --me
  So, join me @ 
  git://dev.nasreddine.com/run.git
  (or 
 
 href=http://dev.nasreddine.com/gitweb/?p=run.git;a=summary;;
 target=_blank 
 
 http://dev.nasreddine.com/gitweb/?p=run.git;a=summary
 )
  Just work 
  on any of *_dev branches.
 
 
 
   
 
 __
 
  
  Looking for the perfect gift? Give the gift of
 Flickr! 
 
  
  href=http://www.flickr.com/gift/;; target=_blank 
  http://www.flickr.com/gift/
  
  ___
  
  ymailto=mailto:freebsd-current@freebsd.org; 
 

href=mailto:freebsd-current@freebsd.org;freebsd-current@freebsd.org
 
  mailing list
  
 
 href=http://lists.freebsd.org/mailman/listinfo/freebsd-current;;
 target=_blank 
 
 http://lists.freebsd.org/mailman/listinfo/freebsd-current
 
  To 
  unsubscribe, send any mail to 
 
 ymailto=mailto:freebsd-current-unsubscr...@freebsd.org;
 
 

href=mailto:freebsd-current-unsubscr...@freebsd.org;freebsd-current-unsubscr...@freebsd.org
 
 
 
 
   
  
 
 
 -- 
 One thing about the past. It's likely to last. --
 Ogden 
  Nash
 
 
  
 __
 
 Looking for the perfect gift? Give the gift of
 Flickr! 
 
 http://www.flickr.com/gift/
 ___
 freebsd-current@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-current
 
 To unsubscribe, send any mail to
 freebsd-current-unsubscr...@freebsd.org
 
 


___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: CALL for TEST [HOSTAP] run(4) ralink usb wireless

2010-03-15 Thread Oliver Brandmueller
Hi,

On Sat, Mar 13, 2010 at 09:48:26AM +0100, Alexander Egorenkov wrote:
 Later i also plan to add multi BSS support so upto 8 HOSTAPs, several STAs
 and WDSs will be possible with rt2860 and rt2870 on FreeBSD 8.

But I guess MiniPCIe version support is not on the horizon?

Thanx,
Oliver

-- 
| Oliver Brandmueller  http://sysadm.in/ o...@sysadm.in |
|Ich bin das Internet. Sowahr ich Gott helfe. |
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: CALL for TEST [HOSTAP] run(4) ralink usb wireless

2010-03-13 Thread Rui Paulo


On 13 Mar 2010, at 14:00, PseudoCylon wrote:


- Original Message 


From: Rui Paulo rpa...@gmail.com
To: Weongyo Jeong weon...@freebsd.org
Cc: PseudoCylon moonlightak...@yahoo.ca; Alexander Egorenkov egore...@googlemail.com 
; freebsd-current@freebsd.org

Sent: Fri, March 12, 2010 7:42:46 PM
Subject: Re: CALL for TEST [HOSTAP] run(4) ralink usb wireless

On 13 Mar 2010, at 09:18, Weongyo Jeong wrote:
Out of curiosity, what's the difference between run(4) and rt2870
driver
written by Alexander Egorenkov?  And why there are two
drivers?
The thread says it all. Just need to go though some pages. His user  
name is egorenar.

http://forums.freebsd.org/showthread.php?s=1d3b01fbed80c61ff508e12e9805146et=7562


From what I understand, Alexander's driver supports 11n ann
run(4) doesn't.

That's correct. Besides run(4) supports rt3XXX chipsets.



Oh, I see. I think we really need to start working on merging the two...

--
Rui Paulo

___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: CALL for TEST [HOSTAP] run(4) ralink usb wireless

2010-03-13 Thread Rui Paulo

On 13 Mar 2010, at 16:36, Hans Petter Selasky wrote:


On Saturday 13 March 2010 03:42:46 Rui Paulo wrote:

On 13 Mar 2010, at 09:18, Weongyo Jeong wrote:

On Thu, Mar 04, 2010 at 12:50:29AM -0800, PseudoCylon wrote:

Hello,

Finally, I have fixed mysterious device lock out and run(4) works
fine
in HOSTAP mode. Up time is 80 hours and counting. I even filed tax
though it.

The device supports up to 253 stations. I only tested with 2  
station.

If you have resources, please hit it with bunch of STAs.

As usual codes are posted at my git repository
git://dev.nasreddine.com/run.git
http://dev.nasreddine.com/gitweb/?p=run.git;a=summary
Please fetch 'hostap_rc' branch not 'master' this time.

or freebsd forums
http://forums.freebsd.org/showthread.php?s=1d3b01fbed80c61ff508e12e98051
46et=7562


Out of curiosity, what's the difference between run(4) and rt2870
driver
written by Alexander Egorenkov?  And why there are two drivers?


From what I understand, Alexander's driver supports 11n ann run(4)
doesn't.



Will this two drivers be merged then?



I hope so.

--
Rui Paulo

___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: CALL for TEST [HOSTAP] run(4) ralink usb wireless

2010-03-13 Thread Alexander Egorenkov
Later i also plan to add multi BSS support so upto 8 HOSTAPs, several STAs
and WDSs will be possible with rt2860 and rt2870 on FreeBSD 8.

On Sat, Mar 13, 2010 at 9:24 AM, Rui Paulo rpa...@gmail.com wrote:

 On 13 Mar 2010, at 16:36, Hans Petter Selasky wrote:

  On Saturday 13 March 2010 03:42:46 Rui Paulo wrote:

 On 13 Mar 2010, at 09:18, Weongyo Jeong wrote:

 On Thu, Mar 04, 2010 at 12:50:29AM -0800, PseudoCylon wrote:

 Hello,

 Finally, I have fixed mysterious device lock out and run(4) works
 fine
 in HOSTAP mode. Up time is 80 hours and counting. I even filed tax
 though it.

 The device supports up to 253 stations. I only tested with 2 station.
 If you have resources, please hit it with bunch of STAs.

 As usual codes are posted at my git repository
 git://dev.nasreddine.com/run.git
 http://dev.nasreddine.com/gitweb/?p=run.git;a=summary
 Please fetch 'hostap_rc' branch not 'master' this time.

 or freebsd forums

 http://forums.freebsd.org/showthread.php?s=1d3b01fbed80c61ff508e12e98051
 46et=7562


 Out of curiosity, what's the difference between run(4) and rt2870
 driver
 written by Alexander Egorenkov?  And why there are two drivers?


 From what I understand, Alexander's driver supports 11n ann run(4)
 doesn't.



 Will this two drivers be merged then?



 I hope so.

 --
 Rui Paulo


___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: CALL for TEST [HOSTAP] run(4) ralink usb wireless

2010-03-13 Thread Weongyo Jeong
On Sat, Mar 13, 2010 at 08:36:41AM +0100, Hans Petter Selasky wrote:
 On Saturday 13 March 2010 03:42:46 Rui Paulo wrote:
  On 13 Mar 2010, at 09:18, Weongyo Jeong wrote:
   On Thu, Mar 04, 2010 at 12:50:29AM -0800, PseudoCylon wrote:
   Hello,
  
   Finally, I have fixed mysterious device lock out and run(4) works
   fine
   in HOSTAP mode. Up time is 80 hours and counting. I even filed tax
   though it.
  
   The device supports up to 253 stations. I only tested with 2 station.
   If you have resources, please hit it with bunch of STAs.
  
   As usual codes are posted at my git repository
   git://dev.nasreddine.com/run.git
   http://dev.nasreddine.com/gitweb/?p=run.git;a=summary
   Please fetch 'hostap_rc' branch not 'master' this time.
  
   or freebsd forums
   http://forums.freebsd.org/showthread.php?s=1d3b01fbed80c61ff508e12e98051
  46et=7562
  
   Out of curiosity, what's the difference between run(4) and rt2870
   driver
   written by Alexander Egorenkov?  And why there are two drivers?
  
   From what I understand, Alexander's driver supports 11n ann run(4)
  doesn't.
 
 Will this two drivers be merged then?

I really want it and hope driver writers focus on one driver for same
chipsets. :-)

regards,
Weongyo Jeong

___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: CALL for TEST [HOSTAP] run(4) ralink usb wireless

2010-03-12 Thread Weongyo Jeong
On Thu, Mar 04, 2010 at 12:50:29AM -0800, PseudoCylon wrote:
 Hello,
 
 Finally, I have fixed mysterious device lock out and run(4) works fine
 in HOSTAP mode. Up time is 80 hours and counting. I even filed tax
 though it.
 
 The device supports up to 253 stations. I only tested with 2 station.
 If you have resources, please hit it with bunch of STAs.
 
 As usual codes are posted at my git repository
 git://dev.nasreddine.com/run.git
 http://dev.nasreddine.com/gitweb/?p=run.git;a=summary
 Please fetch 'hostap_rc' branch not 'master' this time.
 
 or freebsd forums
 http://forums.freebsd.org/showthread.php?s=1d3b01fbed80c61ff508e12e9805146et=7562

Out of curiosity, what's the difference between run(4) and rt2870 driver
written by Alexander Egorenkov?  And why there are two drivers?

regards,
Weongyo Jeong

___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: CALL for TEST [HOSTAP] run(4) ralink usb wireless

2010-03-12 Thread PseudoCylon
- Original Message 

 From: Rui Paulo rpa...@gmail.com
 To: Weongyo Jeong weon...@freebsd.org
 Cc: PseudoCylon moonlightak...@yahoo.ca; Alexander Egorenkov 
 egore...@googlemail.com; freebsd-current@freebsd.org
 Sent: Fri, March 12, 2010 7:42:46 PM
 Subject: Re: CALL for TEST [HOSTAP] run(4) ralink usb wireless
 
 On 13 Mar 2010, at 09:18, Weongyo Jeong wrote:
 Out of curiosity, what's the difference between run(4) and rt2870 
 driver
 written by Alexander Egorenkov?  And why there are two 
 drivers?
The thread says it all. Just need to go though some pages. His user name is 
egorenar.
http://forums.freebsd.org/showthread.php?s=1d3b01fbed80c61ff508e12e9805146et=7562

 From what I understand, Alexander's driver supports 11n ann 
 run(4) doesn't.
That's correct. Besides run(4) supports rt3XXX chipsets.

AK


  __
Ask a question on any topic and get answers from real people. Go to Yahoo! 
Answers and share what you know at http://ca.answers.yahoo.com
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: CALL for TEST [HOSTAP] run(4) ralink usb wireless

2010-03-12 Thread Rui Paulo

On 13 Mar 2010, at 09:18, Weongyo Jeong wrote:


On Thu, Mar 04, 2010 at 12:50:29AM -0800, PseudoCylon wrote:

Hello,

Finally, I have fixed mysterious device lock out and run(4) works  
fine

in HOSTAP mode. Up time is 80 hours and counting. I even filed tax
though it.

The device supports up to 253 stations. I only tested with 2 station.
If you have resources, please hit it with bunch of STAs.

As usual codes are posted at my git repository
git://dev.nasreddine.com/run.git
http://dev.nasreddine.com/gitweb/?p=run.git;a=summary
Please fetch 'hostap_rc' branch not 'master' this time.

or freebsd forums
http://forums.freebsd.org/showthread.php?s=1d3b01fbed80c61ff508e12e9805146et=7562


Out of curiosity, what's the difference between run(4) and rt2870  
driver

written by Alexander Egorenkov?  And why there are two drivers?


From what I understand, Alexander's driver supports 11n ann run(4)  
doesn't.


--
Rui Paulo

___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: CALL for TEST [HOSTAP] run(4) ralink usb wireless

2010-03-12 Thread Hans Petter Selasky
On Saturday 13 March 2010 03:42:46 Rui Paulo wrote:
 On 13 Mar 2010, at 09:18, Weongyo Jeong wrote:
  On Thu, Mar 04, 2010 at 12:50:29AM -0800, PseudoCylon wrote:
  Hello,
 
  Finally, I have fixed mysterious device lock out and run(4) works
  fine
  in HOSTAP mode. Up time is 80 hours and counting. I even filed tax
  though it.
 
  The device supports up to 253 stations. I only tested with 2 station.
  If you have resources, please hit it with bunch of STAs.
 
  As usual codes are posted at my git repository
  git://dev.nasreddine.com/run.git
  http://dev.nasreddine.com/gitweb/?p=run.git;a=summary
  Please fetch 'hostap_rc' branch not 'master' this time.
 
  or freebsd forums
  http://forums.freebsd.org/showthread.php?s=1d3b01fbed80c61ff508e12e98051
 46et=7562
 
  Out of curiosity, what's the difference between run(4) and rt2870
  driver
  written by Alexander Egorenkov?  And why there are two drivers?
 
  From what I understand, Alexander's driver supports 11n ann run(4)
 doesn't.


Will this two drivers be merged then?

--HPS
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: CALL for TEST [HOSTAP] run(4) ralink usb wireless

2010-03-05 Thread Bruce Simpson

On 03/05/10 00:02, Rui Paulo wrote:

This code is fine from a quick review. It just needs a few style fixes.
We could probably start thinking about committing it.
   


I think thompsa@ already merged the non-host-ap version of run(4) to HEAD.

I haven't had free time to look at this yet, but I'm impressed that this 
is getting looked at, as these radios are popping up on the market more 
and more.


cheers,
BMS
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: CALL for TEST [HOSTAP] run(4) ralink usb wireless

2010-03-05 Thread Rui Paulo

On 5 Mar 2010, at 09:27, Bruce Simpson wrote:

 On 03/05/10 00:02, Rui Paulo wrote:
 This code is fine from a quick review. It just needs a few style fixes.
 We could probably start thinking about committing it.
   
 
 I think thompsa@ already merged the non-host-ap version of run(4) to HEAD.

Oh, I guess I haven't been paying attention then.

--
Rui Paulo

___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


CALL for TEST [HOSTAP] run(4) ralink usb wireless

2010-03-04 Thread PseudoCylon
Hello,

Finally, I have fixed mysterious device lock out and run(4) works fine in 
HOSTAP mode. Up time is 80 hours and counting. I even filed tax though it.

The device supports up to 253 stations. I only tested with 2 station. If you 
have resources, please hit it with bunch of STAs.

As usual codes are posted at my git repository
git://dev.nasreddine.com/run.git
http://dev.nasreddine.com/gitweb/?p=run.git;a=summary
Please fetch 'hostap_rc' branch not 'master' this time.

or freebsd forums
http://forums.freebsd.org/showthread.php?s=1d3b01fbed80c61ff508e12e9805146et=7562

Best,
AK

 
FreeBSD and all other open source projects are the Tower of Babel in computer 
era. --me
So, join me @ git://dev.nasreddine.com/run.git
(or http://dev.nasreddine.com/gitweb/?p=run.git;a=summary )
Just work on any of *_dev branches.



  __
Looking for the perfect gift? Give the gift of Flickr! 

http://www.flickr.com/gift/
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: CALL for TEST [HOSTAP] run(4) ralink usb wireless

2010-03-04 Thread Rui Paulo
Hi,

On 4 Mar 2010, at 08:50, PseudoCylon wrote:

 Hello,
 
 Finally, I have fixed mysterious device lock out and run(4) works fine in 
 HOSTAP mode. Up time is 80 hours and counting. I even filed tax though it.
 
 The device supports up to 253 stations. I only tested with 2 station. If you 
 have resources, please hit it with bunch of STAs.
 

It's unlikely that the hardware will handle more than 50 stations.

 As usual codes are posted at my git repository
 git://dev.nasreddine.com/run.git
 http://dev.nasreddine.com/gitweb/?p=run.git;a=summary
 Please fetch 'hostap_rc' branch not 'master' this time.
 
 or freebsd forums
 http://forums.freebsd.org/showthread.php?s=1d3b01fbed80c61ff508e12e9805146et=7562
 
 Best,
 AK

This code is fine from a quick review. It just needs a few style fixes.
We could probably start thinking about committing it.

--
Rui Paulo

___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: CALL for TEST [HOSTAP] run(4) ralink usb wireless

2010-03-04 Thread PseudoCylon
- Original Message 
 From: Rui Paulo rpa...@gmail.com
 To: PseudoCylon moonlightak...@yahoo.ca
 Cc: freebsd-current@freebsd.org
 Sent: Thu, March 4, 2010 5:02:50 PM
 Subject: Re: CALL for TEST [HOSTAP] run(4) ralink usb wireless
 
 Hi,

 
 This code is fine from a quick review. It just needs a few style fixes.
 We could probably start thinking about committing it.
 
 --
 Rui Paulo

Thank you for checking my code out. Please check other patches/fixes at P4DB as 
well
http://p4db.freebsd.org/chv.cgi?CH=174936

Let me know if any changes are needed. Specially, lock related process in
run_wme_update()
run_key_delete()
run_update_beacon()
run_updateslot()
I had hard time on those places. And using ieee80211_key{.wk_pad} It's sorta 
cheating.

Regards,
AK


  __
Looking for the perfect gift? Give the gift of Flickr! 

http://www.flickr.com/gift/
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org