Re: FreeBSD current RT3071 can't connect to 5G network

2014-08-30 Thread Adrian Chadd
The hope is someone has to code it. net80211 supports 11n fine. :)



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


Re: FreeBSD current RT3071 can't connect to 5G network

2014-08-30 Thread Miguel Clara
Lol yeah but that was what I meant ... if some is interested in coding it
... are you for example?

Judging for the amount of work you have with ath etc I guess not, and I got
a feeling this would be fun to do :)




Melhores Cumprimentos // Best Regards
---
*Miguel Clara*
*IT - Sys Admin  Developer*
*E-mail:*miguelmcl...@gmail.com
 www.linkedin.com/in/miguelmclara/


On Sat, Aug 30, 2014 at 9:22 PM, Adrian Chadd adr...@freebsd.org wrote:

 The hope is someone has to code it. net80211 supports 11n fine. :)



 -a

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


Re: FreeBSD current RT3071 can't connect to 5G network

2014-08-24 Thread Kevin Lo
Sorry no.

Kevin

On Wed, Aug 20, 2014 at 12:42:34AM +0100, Miguel Clara wrote:
 
 Would hardware donation help? At least in you're case I mean :)
 
 
 Melhores Cumprimentos // Best Regards
 ---
 *Miguel Clara*
 *IT - Sys Admin  Developer*
 *E-mail:*miguelmcl...@gmail.com
  www.linkedin.com/in/miguelmclara/
 
 
 On Mon, Aug 18, 2014 at 9:49 AM, Kevin Lo ke...@freebsd.org wrote:
 
  Since there is no data sheets available, looking throught the source code
  from the vendor makes slower development and is very time-consuming,
  at least in my case.
 
  Kevin
 
  On Sun, Aug 17, 2014 at 05:03:50PM +0100, Miguel Clara wrote:
  
   Thanks for clarifying Kevin.
  
   I wonder whats the reason for this? Since its in all I guess something in
   the kernel makes this harder? or is it just lack of time/resources?
  
   thanks
  
  
  
  
   Melhores Cumprimentos // Best Regards
   ---
   *Miguel Clara*
   *IT - Sys Admin  Developer*
   *E-mail:*miguelmcl...@gmail.com
www.linkedin.com/in/miguelmclara/
  
  
   On Sun, Aug 17, 2014 at 3:43 PM, Kevin Lo ke...@freebsd.org wrote:
  
On Sat, Aug 16, 2014 at 09:07:29PM +0100, Miguel Clara wrote:

 On Fri, Aug 15, 2014 at 4:06 AM, Kevin Lo ke...@freebsd.org wrote:

  All USB wifi dongles in FreeBSD don't support 11n yet.
 
  Kevin
 
 
  I was not aware of that, is this really true for all USB wifi
  dongles or
 do you mean ralink only?
   
It's true for all USB wifi dongles in *BSD...
   
Kevin
   
   ___
   freebsd-wireless@freebsd.org mailing list
   http://lists.freebsd.org/mailman/listinfo/freebsd-wireless
   To unsubscribe, send any mail to 
  freebsd-wireless-unsubscr...@freebsd.org
  
 
 ___
 freebsd-wireless@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-wireless
 To unsubscribe, send any mail to freebsd-wireless-unsubscr...@freebsd.org
 
___
freebsd-wireless@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-wireless
To unsubscribe, send any mail to freebsd-wireless-unsubscr...@freebsd.org


Re: FreeBSD current RT3071 can't connect to 5G network

2014-08-20 Thread Kevin Lo
Wireless drivers on FreeBSD have a manual page which lists the hardware 
supported by that driver.  For example: 
https://www.freebsd.org/cgi/man.cgi?query=runapropos=0sektion=0manpath=FreeBSD+10.0-RELEASEarch=defaultformat=html#HARDWARE

Does this help you?  Thanks.

Kevin

On Fri, Aug 15, 2014 at 06:30:43AM -0700, Patrick Powell wrote:
 
 Is it possible to provide a SHORT list of a COUPLE that do,  and are 
 either supported
 out of the box or with a few simple mods to the driver (patch?). And 
 perhaps a link to
 a site where they might be purchased?
 
 On 08/14/14 20:06, Kevin Lo wrote:
  All USB wifi dongles in FreeBSD don't support 11n yet.
 
  Kevin
 
  On Thu, Aug 14, 2014 at 03:09:23PM +0100, Miguel Clara wrote:
  Duh, I figured it out... by default the Asus Guest netwroks are created in
  auto mode, so both N and legacy, while my 5G network was set to N only
  (2.4 is set to auto too).
 
  This also explain the poor performance now... for some reason 11n is not
  working only 11g/a.
 
  ifconfig wlan0 mode 11na or 11ng gives me device is not configured (This
  works fine for the ath card tough)!
 
 
  Melhores Cumprimentos // Best Regards
  ---
  *Miguel Clara*
  *IT - Sys Admin  Developer*
  *E-mail:*miguelmcl...@gmail.com
www.linkedin.com/in/miguelmclara/
 
 
  On Thu, Aug 14, 2014 at 2:13 PM, Miguel Clara miguelmcl...@gmail.com
  wrote:
 
 
  On Wed, Aug 13, 2014 at 7:10 PM, Miguel Clara miguelmcl...@gmail.com
  wrote:
 
  Hi, just wanted to report that the patch made no difference.
 
  However I created a guest network in my router with the same password and
  also using WPA2, and it connects to it.
 
  the only difference is the BSSID, so I wonder if this is a issue with wpa
  and nothing to to with the driver?
 
  NOTE: it works well if using ath driivers so the problem is probably in
  the driver indeed!
 
 
  But the performance is still horrible!
 
 
 
 
  ___
  freebsd-wireless@freebsd.org mailing list
  http://lists.freebsd.org/mailman/listinfo/freebsd-wireless
  To unsubscribe, send any mail to freebsd-wireless-unsubscr...@freebsd.org
 
  ___
  freebsd-wireless@freebsd.org mailing list
  http://lists.freebsd.org/mailman/listinfo/freebsd-wireless
  To unsubscribe, send any mail to freebsd-wireless-unsubscr...@freebsd.org
 
 
 ___
 freebsd-wireless@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-wireless
 To unsubscribe, send any mail to freebsd-wireless-unsubscr...@freebsd.org
 
___
freebsd-wireless@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-wireless
To unsubscribe, send any mail to freebsd-wireless-unsubscr...@freebsd.org


Re: FreeBSD current RT3071 can't connect to 5G network

2014-08-20 Thread Adrian Chadd
Are you seeing RX CRC errors for all rates? CCK? OFDM? HT? At all distances?

There's a handful of things we can look at to see what's causing it
once some more digging is done.

(Eg, HT? could be guard interval. OFDM has similar issues, there's
typically ways to configure how much time between each symbol is left
before transmitting the next one. It may not be doing CTS-to-self, or
it may not be advertising the right thing via NAV, or it may be
ignoring CCK, or the receive gain tables are all messed up, etc.)


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


Re: FreeBSD current RT3071 can't connect to 5G network

2014-08-20 Thread PseudoCylon
On Wed, Aug 20, 2014 at 1:29 PM, Adrian Chadd adr...@freebsd.org wrote:
 Are you seeing RX CRC errors for all rates? CCK? OFDM? HT? At all distances?

CCK not sure, OFDM and HT yes. And at wide range of distances. (Tx
rates usually hit mcs 12 to 14 with 2s ht20 ap)


 There's a handful of things we can look at to see what's causing it
 once some more digging is done.

 (Eg, HT? could be guard interval. OFDM has similar issues, there's
 typically ways to configure how much time between each symbol is left
 before transmitting the next one. It may not be doing CTS-to-self, or
 it may not be advertising the right thing via NAV, or it may be
 ignoring CCK, or the receive gain tables are all messed up, etc.)

I have looked into stuff I was able to dig out from other src codes,
ie protection, ifs, nav, bk slot. (Because I do not have datasheet,
every thing is based on my guesses.) One thing I could not figure out
is if on-chip memory is properly allocated for rx pkt. (It seems
memory can be allocated for different things, ie beacon, enc keys).



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


Re: FreeBSD current RT3071 can't connect to 5G network

2014-08-20 Thread Adrian Chadd
On 20 August 2014 16:33, PseudoCylon moonlightak...@yahoo.ca wrote:
 On Wed, Aug 20, 2014 at 1:29 PM, Adrian Chadd adr...@freebsd.org wrote:
 Are you seeing RX CRC errors for all rates? CCK? OFDM? HT? At all distances?

 CCK not sure, OFDM and HT yes. And at wide range of distances. (Tx
 rates usually hit mcs 12 to 14 with 2s ht20 ap)


 There's a handful of things we can look at to see what's causing it
 once some more digging is done.

 (Eg, HT? could be guard interval. OFDM has similar issues, there's
 typically ways to configure how much time between each symbol is left
 before transmitting the next one. It may not be doing CTS-to-self, or
 it may not be advertising the right thing via NAV, or it may be
 ignoring CCK, or the receive gain tables are all messed up, etc.)

 I have looked into stuff I was able to dig out from other src codes,
 ie protection, ifs, nav, bk slot. (Because I do not have datasheet,
 every thing is based on my guesses.) One thing I could not figure out
 is if on-chip memory is properly allocated for rx pkt. (It seems
 memory can be allocated for different things, ie beacon, enc keys).


So CRC errors are pretty normal with wifi. Even a tiny bit of
interference generates CRC errors. That's why there's an ACK and retry
mechanism. :P

If you're hitting MCS 12 then you're doing pretty well. A-MPDU will
see lots of CRC errors just because of how long the transmissions are
and how easily corrupted things can get. That's again why there's a
quick retry mechanism for things.

What %age errors are you seeing?




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


Re: FreeBSD current RT3071 can't connect to 5G network

2014-08-18 Thread Kevin Lo
Since there is no data sheets available, looking throught the source code
from the vendor makes slower development and is very time-consuming,
at least in my case.

Kevin

On Sun, Aug 17, 2014 at 05:03:50PM +0100, Miguel Clara wrote:
 
 Thanks for clarifying Kevin.
 
 I wonder whats the reason for this? Since its in all I guess something in
 the kernel makes this harder? or is it just lack of time/resources?
 
 thanks
 
 
 
 
 Melhores Cumprimentos // Best Regards
 ---
 *Miguel Clara*
 *IT - Sys Admin  Developer*
 *E-mail:*miguelmcl...@gmail.com
  www.linkedin.com/in/miguelmclara/
 
 
 On Sun, Aug 17, 2014 at 3:43 PM, Kevin Lo ke...@freebsd.org wrote:
 
  On Sat, Aug 16, 2014 at 09:07:29PM +0100, Miguel Clara wrote:
  
   On Fri, Aug 15, 2014 at 4:06 AM, Kevin Lo ke...@freebsd.org wrote:
  
All USB wifi dongles in FreeBSD don't support 11n yet.
   
Kevin
   
   
I was not aware of that, is this really true for all USB wifi dongles or
   do you mean ralink only?
 
  It's true for all USB wifi dongles in *BSD...
 
  Kevin
 
 ___
 freebsd-wireless@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-wireless
 To unsubscribe, send any mail to freebsd-wireless-unsubscr...@freebsd.org
 
___
freebsd-wireless@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-wireless
To unsubscribe, send any mail to freebsd-wireless-unsubscr...@freebsd.org


Re: FreeBSD current RT3071 can't connect to 5G network

2014-08-17 Thread Kevin Lo
On Sat, Aug 16, 2014 at 09:07:29PM +0100, Miguel Clara wrote:
 
 On Fri, Aug 15, 2014 at 4:06 AM, Kevin Lo ke...@freebsd.org wrote:
 
  All USB wifi dongles in FreeBSD don't support 11n yet.
 
  Kevin
 
 
  I was not aware of that, is this really true for all USB wifi dongles or
 do you mean ralink only?

It's true for all USB wifi dongles in *BSD...

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


Re: FreeBSD current RT3071 can't connect to 5G network

2014-08-17 Thread Miguel Clara
Thanks for clarifying Kevin.

I wonder whats the reason for this? Since its in all I guess something in
the kernel makes this harder? or is it just lack of time/resources?

thanks




Melhores Cumprimentos // Best Regards
---
*Miguel Clara*
*IT - Sys Admin  Developer*
*E-mail:*miguelmcl...@gmail.com
 www.linkedin.com/in/miguelmclara/


On Sun, Aug 17, 2014 at 3:43 PM, Kevin Lo ke...@freebsd.org wrote:

 On Sat, Aug 16, 2014 at 09:07:29PM +0100, Miguel Clara wrote:
 
  On Fri, Aug 15, 2014 at 4:06 AM, Kevin Lo ke...@freebsd.org wrote:
 
   All USB wifi dongles in FreeBSD don't support 11n yet.
  
   Kevin
  
  
   I was not aware of that, is this really true for all USB wifi dongles or
  do you mean ralink only?

 It's true for all USB wifi dongles in *BSD...

 Kevin

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


Re: FreeBSD current RT3071 can't connect to 5G network

2014-08-16 Thread Miguel Clara
On Fri, Aug 15, 2014 at 4:06 AM, Kevin Lo ke...@freebsd.org wrote:

 All USB wifi dongles in FreeBSD don't support 11n yet.

 Kevin


 I was not aware of that, is this really true for all USB wifi dongles or
do you mean ralink only?
___
freebsd-wireless@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-wireless
To unsubscribe, send any mail to freebsd-wireless-unsubscr...@freebsd.org


Re: FreeBSD current RT3071 can't connect to 5G network

2014-08-15 Thread Patrick Powell
Is it possible to provide a SHORT list of a COUPLE that do,  and are 
either supported
out of the box or with a few simple mods to the driver (patch?). And 
perhaps a link to

a site where they might be purchased?

On 08/14/14 20:06, Kevin Lo wrote:

All USB wifi dongles in FreeBSD don't support 11n yet.

Kevin

On Thu, Aug 14, 2014 at 03:09:23PM +0100, Miguel Clara wrote:

Duh, I figured it out... by default the Asus Guest netwroks are created in
auto mode, so both N and legacy, while my 5G network was set to N only
(2.4 is set to auto too).

This also explain the poor performance now... for some reason 11n is not
working only 11g/a.

ifconfig wlan0 mode 11na or 11ng gives me device is not configured (This
works fine for the ath card tough)!


Melhores Cumprimentos // Best Regards
---
*Miguel Clara*
*IT - Sys Admin  Developer*
*E-mail:*miguelmcl...@gmail.com
  www.linkedin.com/in/miguelmclara/


On Thu, Aug 14, 2014 at 2:13 PM, Miguel Clara miguelmcl...@gmail.com
wrote:



On Wed, Aug 13, 2014 at 7:10 PM, Miguel Clara miguelmcl...@gmail.com
wrote:


Hi, just wanted to report that the patch made no difference.

However I created a guest network in my router with the same password and
also using WPA2, and it connects to it.

the only difference is the BSSID, so I wonder if this is a issue with wpa
and nothing to to with the driver?


NOTE: it works well if using ath driivers so the problem is probably in
the driver indeed!



But the performance is still horrible!





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


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



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


Re: FreeBSD current RT3071 can't connect to 5G network

2014-08-14 Thread Miguel Clara
On Wed, Aug 13, 2014 at 7:10 PM, Miguel Clara miguelmcl...@gmail.com
wrote:

 Hi, just wanted to report that the patch made no difference.

 However I created a guest network in my router with the same password and
 also using WPA2, and it connects to it.

 the only difference is the BSSID, so I wonder if this is a issue with wpa
 and nothing to to with the driver?


NOTE: it works well if using ath driivers so the problem is probably in the
driver indeed!


 But the performance is still horrible!




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


Re: FreeBSD current RT3071 can't connect to 5G network

2014-08-14 Thread Miguel Clara
Duh, I figured it out... by default the Asus Guest netwroks are created in
auto mode, so both N and legacy, while my 5G network was set to N only
(2.4 is set to auto too).

This also explain the poor performance now... for some reason 11n is not
working only 11g/a.

ifconfig wlan0 mode 11na or 11ng gives me device is not configured (This
works fine for the ath card tough)!


Melhores Cumprimentos // Best Regards
---
*Miguel Clara*
*IT - Sys Admin  Developer*
*E-mail:*miguelmcl...@gmail.com
 www.linkedin.com/in/miguelmclara/


On Thu, Aug 14, 2014 at 2:13 PM, Miguel Clara miguelmcl...@gmail.com
wrote:



 On Wed, Aug 13, 2014 at 7:10 PM, Miguel Clara miguelmcl...@gmail.com
 wrote:

 Hi, just wanted to report that the patch made no difference.

 However I created a guest network in my router with the same password and
 also using WPA2, and it connects to it.

 the only difference is the BSSID, so I wonder if this is a issue with wpa
 and nothing to to with the driver?


 NOTE: it works well if using ath driivers so the problem is probably in
 the driver indeed!


 But the performance is still horrible!





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


Re: FreeBSD current RT3071 can't connect to 5G network

2014-08-14 Thread Lars Engels
On Thu, Aug 14, 2014 at 03:09:23PM +0100, Miguel Clara wrote:
 Duh, I figured it out... by default the Asus Guest netwroks are created in
 auto mode, so both N and legacy, while my 5G network was set to N only
 (2.4 is set to auto too).
 
 This also explain the poor performance now... for some reason 11n is not
 working only 11g/a.
 
 ifconfig wlan0 mode 11na or 11ng gives me device is not configured (This
 works fine for the ath card tough)!

Thanks a lot, I had just the same issue with my 
run0: MAC/BBP RT5390 (rev 0x0502), RF RT5370 (MIMO 1T1R), address 
7c:dd:90:30:b6:a1
device.

Now switched to mixed mode and it just works. :)



pgp5wHfUNLlbc.pgp
Description: PGP signature


Re: FreeBSD current RT3071 can't connect to 5G network

2014-08-14 Thread Kevin Lo
All USB wifi dongles in FreeBSD don't support 11n yet.

Kevin

On Thu, Aug 14, 2014 at 03:09:23PM +0100, Miguel Clara wrote:
 
 Duh, I figured it out... by default the Asus Guest netwroks are created in
 auto mode, so both N and legacy, while my 5G network was set to N only
 (2.4 is set to auto too).
 
 This also explain the poor performance now... for some reason 11n is not
 working only 11g/a.
 
 ifconfig wlan0 mode 11na or 11ng gives me device is not configured (This
 works fine for the ath card tough)!
 
 
 Melhores Cumprimentos // Best Regards
 ---
 *Miguel Clara*
 *IT - Sys Admin  Developer*
 *E-mail:*miguelmcl...@gmail.com
  www.linkedin.com/in/miguelmclara/
 
 
 On Thu, Aug 14, 2014 at 2:13 PM, Miguel Clara miguelmcl...@gmail.com
 wrote:
 
 
 
  On Wed, Aug 13, 2014 at 7:10 PM, Miguel Clara miguelmcl...@gmail.com
  wrote:
 
  Hi, just wanted to report that the patch made no difference.
 
  However I created a guest network in my router with the same password and
  also using WPA2, and it connects to it.
 
  the only difference is the BSSID, so I wonder if this is a issue with wpa
  and nothing to to with the driver?
 
 
  NOTE: it works well if using ath driivers so the problem is probably in
  the driver indeed!
 
 
  But the performance is still horrible!
 
 
 
 
 
 ___
 freebsd-wireless@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-wireless
 To unsubscribe, send any mail to freebsd-wireless-unsubscr...@freebsd.org
 
___
freebsd-wireless@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-wireless
To unsubscribe, send any mail to freebsd-wireless-unsubscr...@freebsd.org


Re: FreeBSD current RT3071 can't connect to 5G network

2014-08-12 Thread Miguel Clara
Sorry for the delay in replying, I was out of the office for the last week,
I'm recompiling now to try this and will give feedback ASAP.



Melhores Cumprimentos // Best Regards
---
*Miguel Clara*
*IT - Sys Admin  Developer*
*E-mail:*miguelmcl...@gmail.com
 www.linkedin.com/in/miguelmclara/


On Tue, Aug 5, 2014 at 10:26 AM, Kevin Lo ke...@freebsd.org wrote:

 On Sun, Aug 03, 2014 at 11:05:54PM +0800, Kevin Lo wrote:
 
  On Tue, Jul 29, 2014 at 11:35:00PM +0100, Miguel Clara wrote:
   Hi,
 
  Hi Miguel,
 
  
   I just brought a TP-Link N600 Wireless Dual Band USB Adpater (model
   TL-WDN3200) and its correctly recognized in FreeBSD as a ranlink.
  
   Dmesg shows:
   wlan0: Ethernet address: e8:94:f6:12:98:9d
   run0: firmware RT3071 ver. 0.33 loaded
  
  
   So the module and firmware seem to be loaded fine and I'm able to
 connect
   to my 2.4g wireless fine.
  
   However I'm having no luck connecting to the 5G network, I've pasted
 the
   scans and wpa_supplicant log, and I see:
   wlan0: Authentication with 60:a4:4c:28:13:c4 timed out.
   Added BSSID 60:a4:4c:28:13:c4 into blacklist
   which I'm guessing means that for some reason the auth time-out, but I
   don't really know why, all other 5G devices connect fine!
  
   (Also if its important the router is a RT-N66U running the latest
   Asus-Merlin firmware)
  
  
   First Scan:
  
   ~% ifconfig wlan0 scan
   SSID/MESH IDBSSID  CHAN RATE   S:N INT CAPS
   **  a4:b1:e9:ef:1c:681   54M -36:-68  100 EP   RSN
 HTCAP
   WPS WPA WME
   **  9c:97:26:34:b7:cd   11   54M -41:-78  100 EP   RSN
 HTCAP
   WPS WPA WME
   **  24:ec:99:39:4a:12   11   54M -33:-62  100 EP   RSN
 HTCAP
   WPS WPA WME
   **  26:ec:99:39:4a:13   11   54M -31:-60  100 ES   HTCAP
 WME
   **  10:fe:ed:c3:77:517   54M -40:-76  100 EPS  RSN
 HTCAP
   WPA WME ATH WPS
   Mynetwork5G 60:a4:4c:28:13:c4   44   54M -12:-20  100 EP   RSN
 HTCAP WME
  
   Second Scan
  
   % ifconfig wlan0 scan
   SSID/MESH IDBSSID  CHAN RATE   S:N INT CAPS
   **  a4:b1:e9:ef:1c:681   54M -36:-68  100 EP   RSN
 HTCAP
   WPS WPA WME
   **  9c:97:26:34:b7:cd   11   54M -41:-78  100 EP   RSN
 HTCAP
   WPS WPA WME
   **  24:ec:99:39:4a:12   11   54M -33:-62  100 EP   RSN
 HTCAP
   WPS WPA WME
   **  26:ec:99:39:4a:13   11   54M -31:-60  100 ES   HTCAP
 WME
   **  10:fe:ed:c3:77:517   54M -40:-76  100 EPS  RSN
 HTCAP
   WPA WME ATH WPS
   Mynetwork5G 60:a4:4c:28:13:c4   44   54M -12:-20  100 EP   RSN
 HTCAP WME
   Mynetwork   60:a4:4c:28:13:c03   54M -18:-32  100 EP   RSN
 HTCAP WME
  
  
   log from -- wpa_supplicant -i wlano -c /etc/wpa_supplicant.conf -d
   NOTE: while doing this in wpa_supplicant.conf I only have my 5g
 network!
 
  I have the same wlan dongle as yours but I have no problems connecting to
  the TL-WDR4300 on the 5 GHz band.  This email is sent over the 5 GHz.
  I'll investigate further, thanks.
 
  # dmesg | grep run0
  run0: 1.0 on usbus0
  run0: MAC/BBP RT5592 (rev 0x0222), RF RT5592 (MIMO 2T2R), address
  f8:1a:67:2a:df:3f
  run0: firmware RT3071 ver. 0.33 loaded
 
  # ifconfig wlan0
  wlan0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu
 1500
   ether f8:1a:67:2a:df:3f
   inet 192.168.0.101 netmask 0xff00 broadcast 192.168.0.255
   nd6 options=29PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL
   media: IEEE 802.11 Wireless Ethernet OFDM/54Mbps mode 11a
   status: associated
   ssid wng_5g channel 149 (5745 MHz 11a) bssid 64:66:b3:c2:3b:d4
   country US authmode WPA2/802.11i privacy ON deftxkey UNDEF
   TKIP 2:128-bit txpower 0 bmiss 7 mcastrate 6 mgmtrate 6
  scanvalid 60
   wme roaming MANUAL

 Please try Akinori Furukoshi's patch, thanks.

 Index: sys/dev/usb/wlan/if_run.c
 ===
 --- sys/dev/usb/wlan/if_run.c   (revision 269566)
 +++ sys/dev/usb/wlan/if_run.c   (working copy)
 @@ -3255,13 +3255,13 @@ run_set_tx_desc(struct run_softc *sc, struct run_t
 txwi = (struct rt2860_txwi *)(txd + 1);
 txwi-len = htole16(m-m_pkthdr.len - pad);
 if (rt2860_rates[ridx].phy == IEEE80211_T_DS) {
 -   txwi-phy = htole16(RT2860_PHY_CCK);
 +   mcs |= RT2860_PHY_CCK;
 if (ridx != RT2860_RIDX_CCK1 
 (ic-ic_flags  IEEE80211_F_SHPREAMBLE))
 mcs |= RT2860_PHY_SHPRE;
 } else
 -   txwi-phy = htole16(RT2860_PHY_OFDM);
 -   txwi-phy |= htole16(mcs);
 +   mcs |= RT2860_PHY_OFDM;
 +   txwi-phy = htole16(mcs);

 /* check if RTS/CTS or CTS-to-self protection is required */
 if (!IEEE80211_IS_MULTICAST(wh-i_addr1) 
 @@ -3338,7 +3338,7 @@ run_tx(struct run_softc *sc, struct 

Re: FreeBSD current RT3071 can't connect to 5G network

2014-08-05 Thread Kevin Lo
On Sun, Aug 03, 2014 at 11:05:54PM +0800, Kevin Lo wrote:
 
 On Tue, Jul 29, 2014 at 11:35:00PM +0100, Miguel Clara wrote:
  Hi,
 
 Hi Miguel,
 
 
  I just brought a TP-Link N600 Wireless Dual Band USB Adpater (model
  TL-WDN3200) and its correctly recognized in FreeBSD as a ranlink.
 
  Dmesg shows:
  wlan0: Ethernet address: e8:94:f6:12:98:9d
  run0: firmware RT3071 ver. 0.33 loaded
 
 
  So the module and firmware seem to be loaded fine and I'm able to connect
  to my 2.4g wireless fine.
 
  However I'm having no luck connecting to the 5G network, I've pasted the
  scans and wpa_supplicant log, and I see:
  wlan0: Authentication with 60:a4:4c:28:13:c4 timed out.
  Added BSSID 60:a4:4c:28:13:c4 into blacklist
  which I'm guessing means that for some reason the auth time-out, but I
  don't really know why, all other 5G devices connect fine!
 
  (Also if its important the router is a RT-N66U running the latest
  Asus-Merlin firmware)
 
 
  First Scan:
 
  ~% ifconfig wlan0 scan
  SSID/MESH IDBSSID  CHAN RATE   S:N INT CAPS
  **  a4:b1:e9:ef:1c:681   54M -36:-68  100 EP   RSN HTCAP
  WPS WPA WME
  **  9c:97:26:34:b7:cd   11   54M -41:-78  100 EP   RSN HTCAP
  WPS WPA WME
  **  24:ec:99:39:4a:12   11   54M -33:-62  100 EP   RSN HTCAP
  WPS WPA WME
  **  26:ec:99:39:4a:13   11   54M -31:-60  100 ES   HTCAP WME
  **  10:fe:ed:c3:77:517   54M -40:-76  100 EPS  RSN HTCAP
  WPA WME ATH WPS
  Mynetwork5G 60:a4:4c:28:13:c4   44   54M -12:-20  100 EP   RSN HTCAP WME
 
  Second Scan
 
  % ifconfig wlan0 scan
  SSID/MESH IDBSSID  CHAN RATE   S:N INT CAPS
  **  a4:b1:e9:ef:1c:681   54M -36:-68  100 EP   RSN HTCAP
  WPS WPA WME
  **  9c:97:26:34:b7:cd   11   54M -41:-78  100 EP   RSN HTCAP
  WPS WPA WME
  **  24:ec:99:39:4a:12   11   54M -33:-62  100 EP   RSN HTCAP
  WPS WPA WME
  **  26:ec:99:39:4a:13   11   54M -31:-60  100 ES   HTCAP WME
  **  10:fe:ed:c3:77:517   54M -40:-76  100 EPS  RSN HTCAP
  WPA WME ATH WPS
  Mynetwork5G 60:a4:4c:28:13:c4   44   54M -12:-20  100 EP   RSN HTCAP WME
  Mynetwork   60:a4:4c:28:13:c03   54M -18:-32  100 EP   RSN HTCAP WME
 
 
  log from -- wpa_supplicant -i wlano -c /etc/wpa_supplicant.conf -d
  NOTE: while doing this in wpa_supplicant.conf I only have my 5g network!
 
 I have the same wlan dongle as yours but I have no problems connecting to
 the TL-WDR4300 on the 5 GHz band.  This email is sent over the 5 GHz.
 I'll investigate further, thanks.
 
 # dmesg | grep run0
 run0: 1.0 on usbus0
 run0: MAC/BBP RT5592 (rev 0x0222), RF RT5592 (MIMO 2T2R), address 
 f8:1a:67:2a:df:3f
 run0: firmware RT3071 ver. 0.33 loaded
 
 # ifconfig wlan0
 wlan0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 1500
  ether f8:1a:67:2a:df:3f
  inet 192.168.0.101 netmask 0xff00 broadcast 192.168.0.255
  nd6 options=29PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL
  media: IEEE 802.11 Wireless Ethernet OFDM/54Mbps mode 11a
  status: associated
  ssid wng_5g channel 149 (5745 MHz 11a) bssid 64:66:b3:c2:3b:d4
  country US authmode WPA2/802.11i privacy ON deftxkey UNDEF
  TKIP 2:128-bit txpower 0 bmiss 7 mcastrate 6 mgmtrate 6 
 scanvalid 60
  wme roaming MANUAL

Please try Akinori Furukoshi's patch, thanks.

Index: sys/dev/usb/wlan/if_run.c
===
--- sys/dev/usb/wlan/if_run.c   (revision 269566)
+++ sys/dev/usb/wlan/if_run.c   (working copy)
@@ -3255,13 +3255,13 @@ run_set_tx_desc(struct run_softc *sc, struct run_t
txwi = (struct rt2860_txwi *)(txd + 1);
txwi-len = htole16(m-m_pkthdr.len - pad);
if (rt2860_rates[ridx].phy == IEEE80211_T_DS) {
-   txwi-phy = htole16(RT2860_PHY_CCK);
+   mcs |= RT2860_PHY_CCK;
if (ridx != RT2860_RIDX_CCK1 
(ic-ic_flags  IEEE80211_F_SHPREAMBLE))
mcs |= RT2860_PHY_SHPRE;
} else
-   txwi-phy = htole16(RT2860_PHY_OFDM);
-   txwi-phy |= htole16(mcs);
+   mcs |= RT2860_PHY_OFDM;
+   txwi-phy = htole16(mcs);
 
/* check if RTS/CTS or CTS-to-self protection is required */
if (!IEEE80211_IS_MULTICAST(wh-i_addr1) 
@@ -3338,7 +3338,7 @@ run_tx(struct run_softc *sc, struct mbuf *m, struc
 
/* pickup a rate index */
if (IEEE80211_IS_MULTICAST(wh-i_addr1) ||
-   type != IEEE80211_FC0_TYPE_DATA) {
+   type != IEEE80211_FC0_TYPE_DATA || m-m_flags  M_EAPOL) {
ridx = (ic-ic_curmode == IEEE80211_MODE_11A) ?
RT2860_RIDX_OFDM6 : RT2860_RIDX_CCK1;
ctl_ridx = rt2860_rates[ridx].ctl_ridx;
@@ -4998,7 +4998,7 @@ run_updateprot_cb(void *arg)
tmp = RT2860_RTSTH_EN | RT2860_PROT_NAV_SHORT | RT2860_TXOP_ALLOW_ALL;
/* 

Re: FreeBSD current RT3071 can't connect to 5G network

2014-08-03 Thread Kevin Lo

On Tue, Jul 29, 2014 at 11:35:00PM +0100, Miguel Clara wrote:

Hi,


Hi Miguel,



I just brought a TP-Link N600 Wireless Dual Band USB Adpater (model
TL-WDN3200) and its correctly recognized in FreeBSD as a ranlink.

Dmesg shows:
wlan0: Ethernet address: e8:94:f6:12:98:9d
run0: firmware RT3071 ver. 0.33 loaded


So the module and firmware seem to be loaded fine and I'm able to connect
to my 2.4g wireless fine.

However I'm having no luck connecting to the 5G network, I've pasted the
scans and wpa_supplicant log, and I see:
wlan0: Authentication with 60:a4:4c:28:13:c4 timed out.
Added BSSID 60:a4:4c:28:13:c4 into blacklist
which I'm guessing means that for some reason the auth time-out, but I
don't really know why, all other 5G devices connect fine!

(Also if its important the router is a RT-N66U running the latest
Asus-Merlin firmware)


First Scan:

~% ifconfig wlan0 scan
SSID/MESH IDBSSID  CHAN RATE   S:N INT CAPS
**  a4:b1:e9:ef:1c:681   54M -36:-68  100 EP   RSN HTCAP
WPS WPA WME
**  9c:97:26:34:b7:cd   11   54M -41:-78  100 EP   RSN HTCAP
WPS WPA WME
**  24:ec:99:39:4a:12   11   54M -33:-62  100 EP   RSN HTCAP
WPS WPA WME
**  26:ec:99:39:4a:13   11   54M -31:-60  100 ES   HTCAP WME
**  10:fe:ed:c3:77:517   54M -40:-76  100 EPS  RSN HTCAP
WPA WME ATH WPS
Mynetwork5G 60:a4:4c:28:13:c4   44   54M -12:-20  100 EP   RSN HTCAP WME

Second Scan

% ifconfig wlan0 scan
SSID/MESH IDBSSID  CHAN RATE   S:N INT CAPS
**  a4:b1:e9:ef:1c:681   54M -36:-68  100 EP   RSN HTCAP
WPS WPA WME
**  9c:97:26:34:b7:cd   11   54M -41:-78  100 EP   RSN HTCAP
WPS WPA WME
**  24:ec:99:39:4a:12   11   54M -33:-62  100 EP   RSN HTCAP
WPS WPA WME
**  26:ec:99:39:4a:13   11   54M -31:-60  100 ES   HTCAP WME
**  10:fe:ed:c3:77:517   54M -40:-76  100 EPS  RSN HTCAP
WPA WME ATH WPS
Mynetwork5G 60:a4:4c:28:13:c4   44   54M -12:-20  100 EP   RSN HTCAP WME
Mynetwork   60:a4:4c:28:13:c03   54M -18:-32  100 EP   RSN HTCAP WME


log from -- wpa_supplicant -i wlano -c /etc/wpa_supplicant.conf -d
NOTE: while doing this in wpa_supplicant.conf I only have my 5g network!


I have the same wlan dongle as yours but I have no problems connecting to
the TL-WDR4300 on the 5 GHz band.  This email is sent over the 5 GHz.
I'll investigate further, thanks.

# dmesg | grep run0
run0: 1.0 on usbus0
run0: MAC/BBP RT5592 (rev 0x0222), RF RT5592 (MIMO 2T2R), address 
f8:1a:67:2a:df:3f

run0: firmware RT3071 ver. 0.33 loaded

# ifconfig wlan0
wlan0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 1500
ether f8:1a:67:2a:df:3f
inet 192.168.0.101 netmask 0xff00 broadcast 192.168.0.255
nd6 options=29PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL
media: IEEE 802.11 Wireless Ethernet OFDM/54Mbps mode 11a
status: associated
ssid wng_5g channel 149 (5745 MHz 11a) bssid 64:66:b3:c2:3b:d4
country US authmode WPA2/802.11i privacy ON deftxkey UNDEF
TKIP 2:128-bit txpower 0 bmiss 7 mcastrate 6 mgmtrate 6 
scanvalid 60

wme roaming MANUAL




wpa_supplicant v2.0
Successfully initialized wpa_supplicant
Initializing interface 'wlan0' conf '/etc/wpa_supplicant.conf' driver
'default' ctrl_interface 'N/A' bridge 'N/A'
Configuration file '/etc/wpa_supplicant.conf' - '/etc/wpa_supplicant.conf'
Reading configuration file '/etc/wpa_supplicant.conf'
ctrl_interface='/var/run/wpa_supplicant'
Priority group 145
id=0 ssid='PissnLove5G'
wpa_driver_bsd_capa: drivercaps=0x0d85c501,cryptocaps=0x001b
wlan0: Own MAC address: e8:94:f6:12:98:9d
bsd_set_key: alg=0 addr=0x0 key_idx=0 set_tx=0 seq_len=0 key_len=0
bsd_del_key: key_idx=0
bsd_set_key: alg=0 addr=0x0 key_idx=1 set_tx=0 seq_len=0 key_len=0
bsd_del_key: key_idx=1
bsd_set_key: alg=0 addr=0x0 key_idx=2 set_tx=0 seq_len=0 key_len=0
bsd_del_key: key_idx=2
bsd_set_key: alg=0 addr=0x0 key_idx=3 set_tx=0 seq_len=0 key_len=0
bsd_del_key: key_idx=3
wpa_driver_bsd_set_countermeasures: enabled=0
wlan0: RSN: flushing PMKID list in the driver
wlan0: Setting scan request: 0 sec 10 usec
WPS: Set UUID for interface wlan0
WPS: UUID based on MAC address - hexdump(len=16): 49 97 f8 d3 b1 d4 56 1d
94 a4 d0 76 2e 1d 81 b3
EAPOL: SUPP_PAE entering state DISCONNECTED
EAPOL: Supplicant port status: Unauthorized
EAPOL: KEY_RX entering state NO_KEY_RECEIVE
EAPOL: SUPP_BE entering state INITIALIZE
EAP: EAP entering state DISABLED
EAPOL: Supplicant port status: Unauthorized
EAPOL: Supplicant port status: Unauthorized
wlan0: Added interface wlan0
wlan0: State: DISCONNECTED - DISCONNECTED
wlan0: State: DISCONNECTED - SCANNING
Scan SSID - hexdump_ascii(len=11):
  50 69 73 73 6e 4c 6f 76 65 35 47  PissnLove5G
wlan0: Starting AP scan for wildcard SSID
wpa_driver_bsd_set_wpa: enabled=1
wpa_driver_bsd_set_wpa_internal: wpa=3 privacy=1
EAPOL: disable timer tick
EAPOL: 

Re: FreeBSD current RT3071 can't connect to 5G network

2014-07-29 Thread Miguel Clara
Also just noticed that even if it conencts to the 2.4g the performence is
very low, I also tested in my main Laptop with FreeeBSD 10, same result.

Simple iperf tests on my main laptop:


Client connecting to RALINK CARD IP, TCP port 5001
TCP window size: 3.07 MByte (default)

[  3] local 10.10.50.50 port 65530 connected with 10.10.50.8 port 5001
[ ID] Interval   Transfer Bandwidth
[  3]  0.0-10.0 sec  27.1 MBytes  22.7 Mbits/sec


Client connecting to ath(Atheros AR946x/AR948x) CARD IP, TCP port 5001
TCP window size: 3.07 MByte (default)

[  3] local 10.10.50.50 port 65528 connected with 10.10.50.70 port 5001
[ ID] Interval   Transfer Bandwidth
[  3]  0.0-10.0 sec  94.8 MBytes  79.4 Mbits/sec

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