Re: WIFI urtwn possibly broken on 297561

2016-04-11 Thread Anton Shterenlikht
>
>Hi!
>
>this is because we don't have A-MPDU RX aging on by default. So, if
>there are holes in the sequence number space, FreeBSD's reordering
>logic doesn't flush frames up until it's received /all/ the traffic.
>
>I've just enabled it by default in -HEAD now. That should fix it.
>Otacilio, you should be able to fix it locally by adding options
>IEEE80211_AMPDU_AGE to your kernel config file and recompiling.
>
>Sorry!

Is this urtwn PR related to this:

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=205477

Thanks

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


Re: WIFI urtwn possibly broken on 297561

2016-04-09 Thread Adrian Chadd
Hi!

this is because we don't have A-MPDU RX aging on by default. So, if
there are holes in the sequence number space, FreeBSD's reordering
logic doesn't flush frames up until it's received /all/ the traffic.

I've just enabled it by default in -HEAD now. That should fix it.
Otacilio, you should be able to fix it locally by adding options
IEEE80211_AMPDU_AGE to your kernel config file and recompiling.

Sorry!


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


Re: WIFI urtwn possibly broken on 297561

2016-04-08 Thread Adrian Chadd
ok, try "ifconfig wlan0 -ht" before starting wpa_supplicant and see if
that makes it any better.

You should also include IEEE80211_AMPDU_AGE in your config file if you
haven't yet.

Also, include IEEE80211_DEBUG in there too, and try "wlandebug +rate +ht" ?



-adrian


On 8 April 2016 at 13:51, Otacílio  wrote:
> Em 08/04/2016 17:34, Adrian Chadd escreveu:
>>
>> Hi,
>>
>> Not '--ff', just '-ff' and '-amsdu'
>>
>> It's possible that one or the other of those options are a problem. I
>> added those features recently to urtwn.
>>
>> Can you please do 'ifconfig -v wlan0 list sta' and 'ifconfig -v wlan0' ?
>>
>> Thanks,
>>
>>
>>
>> -adrian
>
>
> Sorry, I type wrong but use the commands correctly :-)
>
> Its my rc.conf
>
> hostname="beaglebone"
> ifconfig_cpsw0="DHCP"
> sshd_enable="YES"
>
> # Nice if you have a network, else annoying.
> #ntpd_enable="YES"
> ntpd_sync_on_start="YES"
>
> # Uncomment to disable common services (more memory)
> #cron_enable="NO"
> #syslogd_enable="NO"
>
> sendmail_submit_enable="NO"
> sendmail_outbound_enable="NO"
> sendmail_msp_queue_enable="NO"
> # On first boot, enlarge the root filesystem to fill the SD card
> growfs_enable="YES"
>
> wlans_urtwn0="wlan0"
> ifconfig_wlan0="WPA SYNCDHCP -amsdu"
>
> =
>
> And the commands that you request:
>
> ==
>
> root@beaglebone:/usr/home/ota # ifconfig -v wlan0 list sta
> ADDR   AID CHAN RATE RSSI IDLE  TXSEQ  RXSEQ CAPS FLAG
> 58:23:8c:c6:e1:aa5   11 144M 14.50  5  19408 EP AQEHTR
> SSID RATES DSPARMS<11> TIM<05040001>
> ERP<0x4> ???<2f0104> RSN
> XRATES<12,18,24,96> HTCAP 0x0 antenna 0x0> HTINFO WPS
> VEN WPA
> WME cwmax 10 txop 0] VO[aifsn 2 cwmin 3 cwmax 4 txop 94] VI[aifsn 2 cwmin 2
> cwmax 3 txop 47]>
> root@beaglebone:/usr/home/ota # ifconfig -v wlan0
> wlan0: flags=8843 metric 0 mtu 1500
> ether 14:cc:20:12:ee:55
> inet 192.168.0.25 netmask 0xff00 broadcast 192.168.0.255
> groups: wlan
> ssid Diana channel 11 (2462 MHz 11g ht/20) bssid 58:23:8c:c6:e1:aa
> regdomain 0 country US anywhere -ecm authmode WPA2/802.11i -wps -tsn
> privacy ON deftxkey UNDEF
> TKIP 2:128-bit powersavemode OFF powersavesleep 100 txpower 0
> txpowmax 50.0 -dotd rtsthreshold 2346 fragthreshold 2346 bmiss 7
> 11a ucast NONEmgmt  6 Mb/s mcast  6 Mb/s maxretry 6
> 11b ucast NONEmgmt  1 Mb/s mcast  1 Mb/s maxretry 6
> 11g ucast NONEmgmt  1 Mb/s mcast  1 Mb/s maxretry 6
> turboA  ucast NONEmgmt  6 Mb/s mcast  6 Mb/s maxretry 6
> turboG  ucast NONEmgmt  1 Mb/s mcast  1 Mb/s maxretry 6
> sturbo  ucast NONEmgmt  6 Mb/s mcast  6 Mb/s maxretry 6
> 11naucast NONEmgmt 12 MCS  mcast 12 MCS  maxretry 6
> 11ngucast NONEmgmt  2 MCS  mcast  2 MCS  maxretry 6
> halfucast NONEmgmt  3 Mb/s mcast  3 Mb/s maxretry 6
> quarter ucast NONEmgmt  1 Mb/s mcast  1 Mb/s maxretry 6
> scanvalid 60 -bgscan bgscanintvl 300 bgscanidle 250
> roam:11a rssi7dBm rate 12 Mb/s
> roam:11b rssi7dBm rate  1 Mb/s
> roam:11g rssi7dBm rate  5 Mb/s
> roam:turboA  rssi7dBm rate 12 Mb/s
> roam:turboG  rssi7dBm rate 12 Mb/s
> roam:sturbo  rssi7dBm rate 12 Mb/s
> roam:11narssi7dBm  MCS  1
> roam:11ngrssi7dBm  MCS  1
> roam:halfrssi7dBm rate  6 Mb/s
> roam:quarter rssi7dBm rate  3 Mb/s
> -pureg protmode CTS ht20 htcompat ampdu ampdulimit 64k ampdudensity
> 8
> -amsdu -shortgi htprotmode RTSCTS -puren -smps -rifs wme -burst
> -dwds
> roaming MANUAL bintval 100
> AC_BE cwmin  4 cwmax 10 aifs  3 txopLimit   0 -acm ack
>   cwmin  4 cwmax 10 aifs  3 txopLimit   0 -acm
> AC_BK cwmin  4 cwmax 10 aifs  7 txopLimit   0 -acm ack
>   cwmin  4 cwmax 10 aifs  7 txopLimit   0 -acm
> AC_VI cwmin  3 cwmax  4 aifs  2 txopLimit  94 -acm ack
>   cwmin  3 cwmax  4 aifs  2 txopLimit  94 -acm
> AC_VO cwmin  2 cwmax  3 aifs  2 txopLimit  47 -acm ack
>   cwmin  2 cwmax  3 aifs  2 txopLimit  47 -acm
> media: IEEE 802.11 Wireless Ethernet MCS mode 11ng
> status: associated
> nd6 options=29
> ===
>
> If you need more test I can do. Send me the requests and I will response
> tomorrow.
>
>
> Thanks a lot!
>
> []'s
> -Otacílio
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to 

Re: WIFI urtwn possibly broken on 297561

2016-04-08 Thread Otacílio

Em 08/04/2016 17:34, Adrian Chadd escreveu:

Hi,

Not '--ff', just '-ff' and '-amsdu'

It's possible that one or the other of those options are a problem. I
added those features recently to urtwn.

Can you please do 'ifconfig -v wlan0 list sta' and 'ifconfig -v wlan0' ?

Thanks,



-adrian


Sorry, I type wrong but use the commands correctly :-)

Its my rc.conf

hostname="beaglebone"
ifconfig_cpsw0="DHCP"
sshd_enable="YES"

# Nice if you have a network, else annoying.
#ntpd_enable="YES"
ntpd_sync_on_start="YES"

# Uncomment to disable common services (more memory)
#cron_enable="NO"
#syslogd_enable="NO"

sendmail_submit_enable="NO"
sendmail_outbound_enable="NO"
sendmail_msp_queue_enable="NO"
# On first boot, enlarge the root filesystem to fill the SD card
growfs_enable="YES"

wlans_urtwn0="wlan0"
ifconfig_wlan0="WPA SYNCDHCP -amsdu"

=

And the commands that you request:

==

root@beaglebone:/usr/home/ota # ifconfig -v wlan0 list sta
ADDR   AID CHAN RATE RSSI IDLE  TXSEQ  RXSEQ CAPS FLAG
58:23:8c:c6:e1:aa5   11 144M 14.50  5  19408 EP AQEHTR  
SSID RATES DSPARMS<11> 
TIM<05040001> ERP<0x4> ???<2f0104> RSNkm:8021X-PSK> XRATES<12,18,24,96> HTCAPmcsset[0-15] extcap 0x0 txbf 0x0 antenna 0x0> HTINFObasicmcs[]> WPS VEN WPAuc:AES-CCMP+TKIP km:8021X-PSK> WME10 txop 0] BK[aifsn 7 cwmin 4 cwmax 10 txop 0] VO[aifsn 2 cwmin 3 cwmax 
4 txop 94] VI[aifsn 2 cwmin 2 cwmax 3 txop 47]>

root@beaglebone:/usr/home/ota # ifconfig -v wlan0
wlan0: flags=8843 metric 0 mtu 1500
ether 14:cc:20:12:ee:55
inet 192.168.0.25 netmask 0xff00 broadcast 192.168.0.255
groups: wlan
ssid Diana channel 11 (2462 MHz 11g ht/20) bssid 58:23:8c:c6:e1:aa
regdomain 0 country US anywhere -ecm authmode WPA2/802.11i -wps 
-tsn

privacy ON deftxkey UNDEF
TKIP 2:128-bit powersavemode OFF powersavesleep 100 txpower 0
txpowmax 50.0 -dotd rtsthreshold 2346 fragthreshold 2346 bmiss 7
11a ucast NONEmgmt  6 Mb/s mcast  6 Mb/s maxretry 6
11b ucast NONEmgmt  1 Mb/s mcast  1 Mb/s maxretry 6
11g ucast NONEmgmt  1 Mb/s mcast  1 Mb/s maxretry 6
turboA  ucast NONEmgmt  6 Mb/s mcast  6 Mb/s maxretry 6
turboG  ucast NONEmgmt  1 Mb/s mcast  1 Mb/s maxretry 6
sturbo  ucast NONEmgmt  6 Mb/s mcast  6 Mb/s maxretry 6
11naucast NONEmgmt 12 MCS  mcast 12 MCS  maxretry 6
11ngucast NONEmgmt  2 MCS  mcast  2 MCS  maxretry 6
halfucast NONEmgmt  3 Mb/s mcast  3 Mb/s maxretry 6
quarter ucast NONEmgmt  1 Mb/s mcast  1 Mb/s maxretry 6
scanvalid 60 -bgscan bgscanintvl 300 bgscanidle 250
roam:11a rssi7dBm rate 12 Mb/s
roam:11b rssi7dBm rate  1 Mb/s
roam:11g rssi7dBm rate  5 Mb/s
roam:turboA  rssi7dBm rate 12 Mb/s
roam:turboG  rssi7dBm rate 12 Mb/s
roam:sturbo  rssi7dBm rate 12 Mb/s
roam:11narssi7dBm  MCS  1
roam:11ngrssi7dBm  MCS  1
roam:halfrssi7dBm rate  6 Mb/s
roam:quarter rssi7dBm rate  3 Mb/s
-pureg protmode CTS ht20 htcompat ampdu ampdulimit 64k 
ampdudensity 8
-amsdu -shortgi htprotmode RTSCTS -puren -smps -rifs wme -burst 
-dwds

roaming MANUAL bintval 100
AC_BE cwmin  4 cwmax 10 aifs  3 txopLimit   0 -acm ack
  cwmin  4 cwmax 10 aifs  3 txopLimit   0 -acm
AC_BK cwmin  4 cwmax 10 aifs  7 txopLimit   0 -acm ack
  cwmin  4 cwmax 10 aifs  7 txopLimit   0 -acm
AC_VI cwmin  3 cwmax  4 aifs  2 txopLimit  94 -acm ack
  cwmin  3 cwmax  4 aifs  2 txopLimit  94 -acm
AC_VO cwmin  2 cwmax  3 aifs  2 txopLimit  47 -acm ack
  cwmin  2 cwmax  3 aifs  2 txopLimit  47 -acm
media: IEEE 802.11 Wireless Ethernet MCS mode 11ng
status: associated
nd6 options=29
===

If you need more test I can do. Send me the requests and I will response 
tomorrow.



Thanks a lot!

[]'s
-Otacílio
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"

Re: WIFI urtwn possibly broken on 297561

2016-04-08 Thread Adrian Chadd
Hi,

Not '--ff', just '-ff' and '-amsdu'

It's possible that one or the other of those options are a problem. I
added those features recently to urtwn.

Can you please do 'ifconfig -v wlan0 list sta' and 'ifconfig -v wlan0' ?

Thanks,



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


Re: WIFI urtwn possibly broken on 297561

2016-04-08 Thread Otacílio
The parameter --ff looks like is not valid for my adapter. First I try 
using prompt:

=
Edit /etc/motd to change this login announcement.
% su
Apr  8 05:04:12 beaglebone su: ota to root on /dev/ttyu0
root@beaglebone:/usr/home/ota # ifconfig wlan0 -ff -amsdu
ifconfig: SIOCS80211: Invalid argument
root@beaglebone:/usr/home/ota # ifconfig wlan0 -ff
ifconfig: SIOCS80211: Invalid argument
root@beaglebone:/usr/home/ota # ifconfig wlan0  -amsdu
root@beaglebone:/usr/home/ota # pkg update
The package management tool is not yet installed on your system.
Do you want to fetch and install it now? [y/N]: y
Bootstrapping pkg from 
pkg+http://nostromo:8080/repo/101armv6-default/.latest, please wait...

^C
root@beaglebone:/usr/home/ota # ping nostromo
PING nostromo (192.168.0.26): 56 data bytes
^C
--- nostromo ping statistics ---
13 packets transmitted, 0 packets received, 100.0% packet loss
root@beaglebone:/usr/home/ota #

=

And in rc.conf

=

Feeding entropy:.
ifconfig: SIOCIFCREATE2: Invalid argument
cpsw0: link state changed to DOWN
Starting Network: lo0 cpsw0.
lo0: flags=8049 metric 0 mtu 16384
options=63
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2
inet 127.0.0.1 netmask 0xff00
groups: lo
nd6 options=21
cpsw0: flags=8843 metric 0 mtu 1500
options=8000b
ether 90:59:af:4c:20:9a
media: Ethernet autoselect (none)
status: no carrier
nd6 options=29
ELF ldconfig path: /lib /usr/lib /usr/lib/compat
Soft Float compatibility ldconfig path:
Starting devd.
urtwn0:  
on usbu s1

urtwn0: MAC/BB RTL8192CU, RF 6052 2T2R
urtwn0: enabling 11n
wlan0: Ethernet address: 14:cc:20:12:ee:55
Created wlan(4) interfaces: wlan0.
Starting wpa_supplicant.
Starting dhclient.
wlan0: no link .. giving up
/etc/rc.d/dhclient: WARNING: failed to start dhclient
Starting Network: wlan0.
wlan0: flags=8843 metric 0 mtu 1500
ether 14:cc:20:12:ee:55
groups: wlan
ssid "" channel 10 (2457 MHz 11g)
country US authmode WPA1+WPA2/802.11i privacy MIXED deftxkey UNDEF
txpower 0 bmiss 7 scanvalid 60 protmode CTS wme roaming MANUAL
bintval 0
media: IEEE 802.11 Wireless Ethernet autoselect (autoselect)
status: no carrier
nd6 options=29
add net fe80::: gateway ::1
add net ff02::: gateway ::1
add net :::0.0.0.0: gateway ::1
add net ::0.0.0.0: gateway ::1
Waiting 30s for the default route interface: wlan0: link state changed to UP
..(wlan0)
Creating and/or trimming log files.
Starting syslogd.
Clearing /tmp (X related).
Updating motd:.
Mounting late file systems:.
Performing sanity check on sshd configuration.
Could not load host key: /etc/ssh/ssh_host_dsa_key
Starting sshd.
Could not load host key: /etc/ssh/ssh_host_dsa_key
Starting cron.
Starting background file system checks in 60 seconds.

Fri Apr  8 05:09:54 UTC 2016

FreeBSD/arm (beaglebone) (ttyu0)

login: ota
Password:
FreeBSD 11.0-CURRENT (BEAGLEBONE-DEBUG) #1 r297561: Fri Apr  8 00:53:13 
BRT 2016


Welcome to FreeBSD!

Release Notes, Errata: https://www.FreeBSD.org/releases/
Security Advisories:   https://www.FreeBSD.org/security/
FreeBSD Handbook:  https://www.FreeBSD.org/handbook/
FreeBSD FAQ:   https://www.FreeBSD.org/faq/
Questions List: 
https://lists.FreeBSD.org/mailman/listinfo/freebsd-questions/

FreeBSD Forums:https://forums.FreeBSD.org/

Documents installed with the system are in the /usr/local/share/doc/freebsd/
directory, or can be installed later with:  pkg install en-freebsd-doc
For other languages, replace "en" with a language code like de or fr.

Show the version of FreeBSD installed:  freebsd-version ; uname -a
Please include that output and any error messages when posting questions.
Introduction to manual pages:  man man
FreeBSD directory layout:  man hier

Edit /etc/motd to change this login announcement.
% su
Apr  8 05:10:25 beaglebone su: ota to root on /dev/ttyu0
root@beaglebone:/usr/home/ota # ping nostromo
PING nostromo (192.168.0.26): 56 data bytes
64 bytes from 192.168.0.26: icmp_seq=0 ttl=64 time=76.013 ms
64 bytes from 192.168.0.26: icmp_seq=1 ttl=64 time=2.554 ms
^C
--- nostromo ping statistics ---
2 packets transmitted, 2 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 2.554/39.284/76.013/36.730 ms
root@beaglebone:/usr/home/ota # pkg update
The package management 

Re: WIFI urtwn possibly broken on 297561

2016-04-08 Thread Adrian Chadd
hi,

try 'ifconfig wlan0 -ff -amsdu' and try again


-a


On 8 April 2016 at 12:35, Otacílio  wrote:
> Dears
>
> I'm testing the CURRENT version on a beaglebone black and have noted the
> follow behavior. On revision 297561 the wifi adapter stops works after a pkg
> update. I did the follow tests.
> Using the version 296898 (OK behavior) and 297561 (wrong behavior):
>
> FreeBSD beaglebone 11.0-CURRENT FreeBSD 11.0-CURRENT #1 r296898M: Wed Mar 16
> 23:52:02 BRT 2016
> ota@nostromo:/root/crochet/work/obj/arm.armv6/usr/src/sys/BEAGLEBONE-DEBUG
> arm
>
> ping nostromo ==> OK
> pkg update   ==> OK
> ping nostromo==> OK
> network is OK
>
> I have tested using this follows adapters and on both the behavior is the
> same and OK on 296898 :
> urtwn0:  on
> usbus1
> urtwn0: MAC/BB RTL8188CUS, RF 6052 1T1R
>
> urtwn0:  on
> usbus1
> urtwn0: MAC/BB RTL8192CU, RF 6052 2T2R
>
>
> After update to this version
> FreeBSD beaglebone 11.0-CURRENT FreeBSD 11.0-CURRENT #1 r297561: Fri Apr  8
> 00:53:13 BRT 2016
> ota@nostromo:/root/crochet/work/obj/arm.armv6/usr/src/sys/BEAGLEBONE-DEBUG
> arm
>
> And I did the same tests using the same adapters and the wifi stops work
> after pkg update.
>
>
> And a complete log of the test:
>
> Edit /etc/motd to change this login announcement.
> % ping nostromo
> PING nostromo (192.168.0.26): 56 data bytes
> 64 bytes from 192.168.0.26: icmp_seq=0 ttl=64 time=98.318 ms
> 64 bytes from 192.168.0.26: icmp_seq=1 ttl=64 time=3.679 ms
> 64 bytes from 192.168.0.26: icmp_seq=2 ttl=64 time=58.809 ms
> 64 bytes from 192.168.0.26: icmp_seq=3 ttl=64 time=5.464 ms
> 64 bytes from 192.168.0.26: icmp_seq=4 ttl=64 time=10.979 ms
> ^C
> --- nostromo ping statistics ---
> 5 packets transmitted, 5 packets received, 0.0% packet loss
> round-trip min/avg/max/stddev = 3.679/35.450/98.318/37.431 ms
> % su
> pkg upApr  8 04:18:24 beaglebone su: ota to root on /dev/ttyu0
> daroot@beaglebone:/usr/home/ota # pkg update
> The package management tool is not yet installed on your system.
> Do you want to fetch and install it now? [y/N]: y
> Bootstrapping pkg from
> pkg+http://nostromo:8080/repo/101armv6-default/.latest, please wait...
> ^C
> root@beaglebone:/usr/home/ota # ping nostromo
> PING nostromo (192.168.0.26): 56 data bytes
> ^C
> --- nostromo ping statistics ---
> 7 packets transmitted, 0 packets received, 100.0% packet loss
> root@beaglebone:/usr/home/ota # uname -a
> FreeBSD beaglebone 11.0-CURRENT FreeBSD 11.0-CURRENT #1 r297561: Fri Apr  8
> 00:53:13 BRT 2016
> ota@nostromo:/root/crochet/work/obj/arm.armv6/usr/src/sys/BEAGLEBONE-DEBUG
> arm
>
> this log is for the follow adapter but for the next one the behavior is the
> same
>
> urtwn0:  on
> usbus1
> urtwn0: MAC/BB RTL8192CU, RF 6052 2T2R
>
> urtwn0:  on
> usbus1
> urtwn0: MAC/BB RTL8188CUS, RF 6052 1T1R
>
>
> Someone knows whats going on?
>
>
> Thanks a lot
> -Otacílio
>
>
>
> ___
> freebsd-current@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"