This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Wilink8 lost beacon (connection to AP) when it highly load

Other Parts Discussed in Thread: DM385, WL1835MODCOM8B

Hi. Wilink8 (JORJIN WG7831-B0ES module) lost beacon (connection to AP) when it highly load.

I use 3.2 kernel (with am335x cpu) and ol_r8.a8.10_32 version on ti-build-utlites (compat-wireless)

wget ftp://192.168.10.201/100MB -O /dev/null
Connecting to 192.168.10.201 (192.168.10.201:21)
null                  29% |*********                      | 30074k  0:00:43 ETAwlcore: Beacon loss detected. roles:0x1
null                  29% |*********                      | 30074k  - stalled -wlcore: Connection loss work (role_id: 0).
wlan0: Connection to AP 34:08:04:b7:cf:6c lost

 

it work good when WiFi not 100% load (for exmaple ping, or download small files),

  • Hi Andrei,

    Does this happen every time (irrespective of the AP)? Can you share the complete driver logs?
    To enable driver logs, please visit: http://processors.wiki.ti.com/index.php/WL18xx_Driver_Debug

    Regards,
    Gigi Joseph.

  • Hi Joseph.

    Yes, this bug is reproduced every time.

    My logs:

    # cat /sys/kernel/debug/ieee80211/phy0/wlcore/driver_state
    version = ol_r8.a8.04_32
    timestamp = Tue Mar 25 17:36:21 2014
    channel = 1 (STA)
    tx_blocks_available = 54
    tx_allocated_blocks = 0
    tx_allocated_pkts[0] = 0
    tx_allocated_pkts[1] = 0
    tx_allocated_pkts[2] = 0
    tx_allocated_pkts[3] = 0
    tx_frames_cnt = 0
    tx_frames_map[0] = 0x0
    tx_queue_count[0] = 0
    tx_queue_count[1] = 0
    tx_queue_count[2] = 0
    tx_queue_count[3] = 0
    tx_packets_count = 56
    tx_results_count = 56
    flags = 0x19
    tx_blocks_freed = 172
    rx_counter = 338
    state = 2
    band = 0
    power_level = 0
    sg_enabled = 1
    enable_11a = 1
    noise = -97
    ap_fw_ps_map = 0x0
    ap_ps_map = 0x0
    quirks = 0xe8c
    irq = 0xe0
    hw_pg_ver = 0x2
    platform_quirks = 0x1
    chip.id = 0x6030111
    chip.fw_ver_str = Rev 8.8.0.0.13
    chip.phy_fw_ver_str = Rev 8.2.0.0.195
    recovery_count = 0
    # iwconfig
    lo        no wireless extensions.

    eth1      no wireless extensions.

    wlan0     IEEE 802.11abgn  ESSID:"AP-lo1-04"  
              Mode:Managed  Frequency:2.412 GHz  Access Point: 34:08:04:B7:CF:6C   
              Bit Rate=54 Mb/s   Tx-Power=20 dBm   
              Retry  long limit:7   RTS thr:off   Fragment thr:off
              Encryption key:off
              Power Management:on
              Link Quality=60/70  Signal level=-50 dBm  
              Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
              Tx excessive retries:0  Invalid misc:1   Missed beacon:0

    eth0      no wireless extensions.

    # echo 256 > /sys/module/wlcore/parameters/debug_level
    # echo 0x100 > /sys/module/wlcore/parameters/debug_level
    # wget ftp://192.168.10.201/100MB -O /dev/null
    Connecting to 192.168.10.201 (192.168.10.201:21)
    null                 100% |*******************************|   100M  0:00:00 ETA
    # wget ftp://192.168.10.201/100MB -O /dev/null
    Connecting to 192.168.10.201 (192.168.10.201:21)
    null                  31% |*********                      | 32264k  0:00:41 ETAwlcore: Beacon loss detected. roles:0x1
    null                  31% |*********                      | 32264k  - stalled -wlcore: Connection loss work (role_id: 0).
    wlan0: Connection to AP 34:08:04:b7:cf:6c lost
    cfg80211: Calling CRDA for country: GB
    null                  31% |*********                      | 32264k  - stalled -
    # wlan0: authenticate with 34:08:04:b7:cf:6c
    wlan0: send auth to 34:08:04:b7:cf:6c (try 1/3)
    wlan0: authenticated
    wlan0: associate with 34:08:04:b7:cf:6c (try 1/3)
    wlan0: RX AssocResp from 34:08:04:b7:cf:6c (capab=0x831 status=0 aid=6)
    wlan0: associated
    wlcore: Association completed.

    # cat /sys/kernel/debug/ieee80211/phy0/wlcore/driver_state
    version = ol_r8.a8.04_32
    timestamp = Tue Mar 25 17:36:21 2014
    channel = 1 (STA)
    tx_blocks_available = 141
    tx_allocated_blocks = 0
    tx_allocated_pkts[0] = 0
    tx_allocated_pkts[1] = 0
    tx_allocated_pkts[2] = 0
    tx_allocated_pkts[3] = 0
    tx_frames_cnt = 0
    tx_frames_map[0] = 0x0
    tx_queue_count[0] = 0
    tx_queue_count[1] = 0
    tx_queue_count[2] = 0
    tx_queue_count[3] = 0
    tx_packets_count = 48061
    tx_results_count = 48061
    flags = 0x19
    tx_blocks_freed = 144186
    rx_counter = 97023
    state = 2
    band = 0
    power_level = 0
    sg_enabled = 1
    enable_11a = 1
    noise = -97
    ap_fw_ps_map = 0x0
    ap_ps_map = 0x0
    quirks = 0xe8c
    irq = 0xe0
    hw_pg_ver = 0x2
    platform_quirks = 0x1
    chip.id = 0x6030111
    chip.fw_ver_str = Rev 8.8.0.0.13
    chip.phy_fw_ver_str = Rev 8.2.0.0.195
    recovery_count = 0
    #
    # dmesg |tail -30
    UBI: number of PEBs reserved for bad PEB handling: 5
    UBI: max/mean erase counter: 1/0
    UBI: image sequence number:  861590451
    UBI: background thread "ubi_bgt1d" started, PID 526
    UBIFS: mounted UBI device 1, volume 0, name "data"
    UBIFS: file system size:   71106560 bytes (69440 KiB, 67 MiB, 560 LEBs)
    UBIFS: journal size:       3555328 bytes (3472 KiB, 3 MiB, 28 LEBs)
    UBIFS: media format:       w4/r0 (latest is w4/r0)
    UBIFS: default compressor: lzo
    UBIFS: reserved for root:  3358538 bytes (3279 KiB)
    wlcore: PHY firmware version: Rev 8.2.0.0.195
    wlcore: firmware booted (Rev 8.8.0.0.13)
    wlan0: authenticate with 34:08:04:b7:cf:6c
    wlan0: send auth to 34:08:04:b7:cf:6c (try 1/3)
    wlan0: authenticated
    wlan0: associate with 34:08:04:b7:cf:6c (try 1/3)
    wlan0: RX AssocResp from 34:08:04:b7:cf:6c (capab=0x831 status=0 aid=6)
    wlan0: associated
    wlcore: Association completed.
    wlcore: Beacon loss detected. roles:0x1
    wlcore: Connection loss work (role_id: 0).
    wlan0: Connection to AP 34:08:04:b7:cf:6c lost
    cfg80211: Calling CRDA for country: GB
    wlan0: authenticate with 34:08:04:b7:cf:6c
    wlan0: send auth to 34:08:04:b7:cf:6c (try 1/3)
    wlan0: authenticated
    wlan0: associate with 34:08:04:b7:cf:6c (try 1/3)
    wlan0: RX AssocResp from 34:08:04:b7:cf:6c (capab=0x831 status=0 aid=6)
    wlan0: associated
    wlcore: Association completed.
    #

    If you need some other logs, please say what log you need.

  • Hi.


    I am using WL1835MODCOM8B module with DM385 based board.

    Kernel 2.6.37,  drivers of ol_r8.a8.10 version.

     

    For performance testing I am running netserver on Ubuntu machine and netperf on my board. When I am measuring upload performance it works ok.


    But when I am running netserver on board and netperf on Ubuntu and measuring download performance I am getting "Beacon loss":

    wlcore: Beacon loss detected. roles:0x1
    wlcore: Beacon loss detected. roles:0x1
    wlcore: Connection loss work (role_id: 0).
    wlan0: Connection to AP 00:22:b0:c7:7e:a7 lost
    cfg80211: Calling CRDA to update world regulatory domain
    cfg80211: World regulatory domain updated:
    cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
    cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
    cfg80211:   (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
    cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
    cfg80211:   (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
    cfg80211:   (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
    wlan0: authenticate with 00:22:b0:c7:7e:a7
    wlan0: direct probe to 00:22:b0:c7:7e:a7 (try 1/3)
    wlan0: send auth to 00:22:b0:c7:7e:a7 (try 2/3)
    wlan0: authenticated
    wl18xx_driver wl18xx: wlan0: disabling HT/VHT due to WEP/TKIP use
    wlan0: associate with 00:22:b0:c7:7e:a7 (try 1/3)
    wlan0: RX AssocResp from 00:22:b0:c7:7e:a7 (capab=0x431 status=0 aid=1)
    wlan0: associated
    wlcore: Association completed.

    It is happening every time and just after I am running netperf from PC side.

     

    So, it looks like similiar problem..

    TI, did you see such behavior?

    Thanks.

  • Dear All,

    I  am using WG7803 Jorjin Wlink8 Module and have same issue with you.

    Ussually, WG7803 Module works well. But when i use this module same time with a display device (such as HDMI screen), i have this log:

    [   72.827148] wlcore: Beacon loss detected. roles:0x1
    [   77.130187] wlcore: Beacon loss detected. roles:0x1
    [   77.650512] wlcore: Connection loss work (role_id: 0).
    [   77.656097] wlan0: Connection to AP 64:66:b3:4d:50:29 lost
    [   77.705291] wlcore: is_sta: 1 old:3 new:2
    [   77.709655] wlcore: is_sta: 1 old:2 new:1
    [   77.714233] wlcore: is_sta: 1 old:1 new:0
    [   77.727264] cfg80211: Calling CRDA to update world regulatory domain
    [   77.757293] cfg80211: World regulatory domain updated:
    [   77.763183] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
    [   77.772277] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
    [   77.780883] cfg80211:   (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
    [   77.789459] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
    [   77.798034] cfg80211:   (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
    [   77.806610] cfg80211:   (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
    [   79.679138] wlan0: authenticate with 64:66:b3:4d:50:29
    [   79.697113] wlcore: is_sta: 1 old:0 new:1
    [   79.703674] wlan0: send auth to 64:66:b3:4d:50:29 (try 1/3)
    [   79.908294] wlan0: send auth to 64:66:b3:4d:50:29 (try 2/3)
    [   80.111419] wlan0: send auth to 64:66:b3:4d:50:29 (try 3/3)
    [   80.314514] wlan0: authentication with 64:66:b3:4d:50:29 timed out
    [   80.321380] wlcore: is_sta: 1 old:1 new:0
    [   82.653167] wlcore: scan size: 672
    [   91.409515] wlcore: scan size: 672

    So, i think we have same problem with Wilink8 module.


    Anyone can help me to have more infomation about this issue.

  • Hi again. I'v got some news.

    In my previous post I didn't mentioned that I was working with AP on b&g mixed mode. Today I set this AP to "802.11n only" mode and behavior of WL1835MOD changed. Now it works stable in both directions.. The speed is pretty the same on upload and download..

    That is.. 

    Guys, what mode was on your APs?

  • My AP work in 802.11g, not 802.11n

  • Hi.

    Ti engineers, could you please check WL1835MODCOM8 work in 802.11g client mode on high load (with last firmware)?

    Thanks.

  • Hi Dmitry, All,

    We checked, and there are no issues working with 18xx in 802.11g mode... I suspect the issue is with the AP here. Can you please tell me which AP is used? Is it possible to share an air sniffer log?

    To work around this issue, can you try to increase .synch_fail_thold from "12" to a higher value? This is defined in: drivers/net/wireless/ti/wl18xx/main.c : "wl18xx_conf"

    Regards,
    Gigi Joseph

  • Hi, Joseph.

    I saw such problems with DLink DIR-655 device.

    I can't check right now, but I will check later with other APs.

    And also I worked with WL18xxMOD8COM in Soft AP mode. The speed testing was done. During the test WL18xx was in AP role first in 802.11g mode and then 802.11n mode. In these modes there was no problems with lost beacons from client sides in any test direction.

    Dmitry.

  • Problem fixed by changed WiFi module from JORJIN WG7831-B0ES to JORJIN WG7831-D0.