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.

wg7310 WIFI模块(WL1271芯片)链接ap不稳定

Other Parts Discussed in Thread: DM3730

我用的佐臻DM3730 方案,它和WG7310 WIFI模块一起工作,我发现这个wifi模块链接AP不稳定,经常掉线,自己又连接上,而且链接上还出现错误,虽然还能工作,当不知道稳定性与这个有关系么,大家有了解的,给我指条明路把。

 wl1271: hardware_ti_wlan_mac80211_****net_wireless_wl12xx_main.c   : Association completed.
[ 1678.005218] wl1271: ERROR exceeded max RX BA sessions
[ 1720.354797] wl1271: Beacon loss detected.
[ 1720.359222] wlan0: Connection to AP 8c:21:0a:72:9e:40 lost.
[ 1720.371063] wl1271: CMD_ROLE_START: 00000000: 00 00 06 00 01 02 00 00 00 00 00 00 00 00 00 00
[ 1720.380096] wl1271: CMD_ROLE_START: 00000010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[ 1720.389068] wl1271: CMD_ROLE_START: 00000020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[ 1720.398071] wl1271: CMD_ROLE_START: 00000030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[ 1720.488128] wl1271: ERROR invalid hlid. dropping skb 0xd4a8e8c0
[ 1720.499298] cfg80211: Calling CRDA to update world regulatory domain
[ 1720.517822] cfg80211: World regulatory domain updated:
[ 1720.523315] cfg80211:     (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
[ 1720.532135] cfg80211:     (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[ 1720.540496] cfg80211:     (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
[ 1720.548858] cfg80211:     (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
[ 1720.557220] cfg80211:     (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[ 1720.565551] cfg80211:     (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[ 1721.798309] wl1271: CMD_ROLE_START: 00000000: 00 00 06 00 01 02 00 00 00 00 00 00 00 00 00 00
[ 1721.807342] wl1271: CMD_ROLE_START: 00000010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[ 1721.816345] wl1271: CMD_ROLE_START: 00000020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[ 1721.825347] wl1271: CMD_ROLE_START: 00000030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[ 1721.859161] wlan0: authenticate with 8c:21:0a:72:9e:40 (try 1)
[ 1721.871337] wlan0: authenticated
[ 1721.893341] wl1271: CMD_ROLE_START: 00000000: 00 00 06 00 01 02 00 00 00 00 00 00 00 00 00 00
[ 1721.902374] wl1271: CMD_ROLE_START: 00000010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[ 1721.911376] wl1271: CMD_ROLE_START: 00000020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[ 1721.920349] wl1271: CMD_ROLE_START: 00000030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[ 1721.945098] wlan0: associate with 8c:21:0a:72:9e:40 (try 1)
[ 1721.957855] wlan0: RX ReassocResp from 8c:21:0a:72:9e:40 (capab=0x431 status=0 aid=6)
[ 1721.966156] wlan0: associated
[ 1721.972778] ------------[ cut here ]------------
[ 1721.977874] WARNING: at /work/mt3730/android/hardware/ti/wlan/mac80211/compat/drivers/net/wireless/wl12xx/tx.c:1083 wl127)
[ 1721.992919] Modules linked in: wl12xx_sdio omaplfb pvrsrvkm wl12xx mac80211 cfg80211 compat [last unloaded: wl12xx_sdio]
[ 1722.004455] Backtrace:
[ 1722.007080] [<c004ee38>] (dump_backtrace+0x0/0x110) from [<c046a378>] (dump_stack+0x18/0x1c)
[ 1722.015991]  r7:00000009 r6:0000043b r5:bf08b038 r4:00000000
[ 1722.022003] [<c046a360>] (dump_stack+0x0/0x1c) from [<c0079984>] (warn_slowpath_common+0x54/0x6c)
[ 1722.031372] [<c0079930>] (warn_slowpath_common+0x0/0x6c) from [<c00799c0>] (warn_slowpath_null+0x24/0x2c)
[ 1722.041442]  r9:d988aec4 r8:00ff0fff r7:00000001 r6:000010fd r5:d988af30
[ 1722.048370] r4:00000000
[ 1722.051239] [<c007999c>] (warn_slowpath_null+0x0/0x2c) from [<bf08b038>] (wl1271_tx_min_rate_get+0x20/0x48 [wl12xx])
[ 1722.062530] [<bf08b018>] (wl1271_tx_min_rate_get+0x0/0x48 [wl12xx]) from [<bf081990>] (wl1271_op_bss_info_changed+0x490/0)
[ 1722.075347]  r5:d988af30 r4:cc78ee60
[ 1722.079345] [<bf081500>] (wl1271_op_bss_info_changed+0x0/0x918 [wl12xx]) from [<bf03e030>] (ieee80211_bss_info_change_not)
[ 1722.093566] [<bf03ded4>] (ieee80211_bss_info_change_notify+0x0/0x168 [mac80211]) from [<bf048434>] (ieee80211_assoc_succe)
[ 1722.107482]  r7:d4666030 r6:cc78e2c0 r5:cc78e8f8 r4:d988ab60
[ 1722.113708] [<bf047e8c>] (ieee80211_assoc_success+0x0/0x73c [mac80211]) from [<bf0486a8>] (ieee80211_assoc_done+0xe0/0x15)
[ 1722.126647] [<bf0485c8>] (ieee80211_assoc_done+0x0/0x150 [mac80211]) from [<bf049f4c>] (ieee80211_work_work+0x31c/0x120c )
[ 1722.139190]  r7:cc78e2c0 r6:d4ac4a40 r5:00000003 r4:d4429cc0
[ 1722.145324] [<bf049c30>] (ieee80211_work_work+0x0/0x120c [mac80211]) from [<c008f344>] (process_one_work+0x278/0x3f8)
[ 1722.156524] [<c008f0cc>] (process_one_work+0x0/0x3f8) from [<c0091154>] (worker_thread+0x218/0x410)
[ 1722.166076] [<c0090f3c>] (worker_thread+0x0/0x410) from [<c00949d8>] (kthread+0x8c/0x94)
[ 1722.174652] [<c009494c>] (kthread+0x0/0x94) from [<c007cce0>] (do_exit+0x0/0x638)
[ 1722.182525]  r7:00000013 r6:c007cce0 r5:c009494c r4:df037ec0
[ 1722.188537] ---[ end trace 44345dbdb73c8aa7 ]---
[ 1722.229064] cfg80211: Calling CRDA for country: US
[ 1722.261932] cfg80211: Regulatory domain changed to country: US
[ 1722.268157] cfg80211:     (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
[ 1722.276977] cfg80211:     (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2700 mBm)
[ 1722.285339] cfg80211:     (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 1700 mBm)
[ 1722.293701] cfg80211:     (5250000 KHz - 5330000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[ 1722.302032] cfg80211:     (5490000 KHz - 5600000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[ 1722.310394] cfg80211:     (5650000 KHz - 5710000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[ 1722.318756] cfg80211:     (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 3000 mBm)
[ 1722.366973] wl1271: hardware_ti_wlan_mac80211_****net_wireless_wl12xx_main.c   : Association completed.
[ 1729.027465] wl1271: Beacon loss detected.
[ 1729.031768] wlan0: Connection to AP 8c:21:0a:72:9e:40 lost.
[ 1729.074584] wl1271: CMD_ROLE_START: 00000000: 00 00 06 00 01 03 00 00 00 00 00 00 00 00 00 00
[ 1729.083526] wl1271: CMD_ROLE_START: 00000010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[ 1729.092437] wl1271: CMD_ROLE_START: 00000020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[ 1729.101318] wl1271: CMD_ROLE_START: 00000030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[ 1729.221435] cfg80211: Calling CRDA to update world regulatory domain
[ 1729.229339] wl1271: ERROR invalid hlid. dropping skb 0xcc538900
[ 1729.240203] wl1271: ERROR invalid hlid. dropping skb 0xd4a8e200
[ 1729.267395] cfg80211: World regulatory domain updated:
[ 1729.272766] cfg80211:     (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
[ 1729.281524] cfg80211:     (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[ 1729.289764] cfg80211:     (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
[ 1729.298004] cfg80211:     (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
[ 1729.306274] cfg80211:     (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[ 1729.314544] cfg80211:     (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[ 1729.770477] wl1271: CMD_ROLE_START: 00000000: 00 00 06 00 01 03 00 00 00 00 00 00 00 00 00 00
[ 1729.779418] wl1271: CMD_ROLE_START: 00000010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[ 1729.788299] wl1271: CMD_ROLE_START: 00000020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[ 1729.797210] wl1271: CMD_ROLE_START: 00000030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[ 1729.897979] wlan0: authenticate with 8c:21:0a:72:9e:40 (try 1)
[ 1729.907562] wlan0: authenticated
[ 1729.923065] wl1271: CMD_ROLE_START: 00000000: 00 00 06 00 01 03 00 00 00 00 00 00 00 00 00 00
[ 1729.931976] wl1271: CMD_ROLE_START: 00000010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[ 1729.940887] wl1271: CMD_ROLE_START: 00000020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[ 1729.949768] wl1271: CMD_ROLE_START: 00000030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[ 1730.069824] wlan0: associate with 8c:21:0a:72:9e:40 (try 1)
[ 1730.092529] wlan0: RX ReassocResp from 8c:21:0a:72:9e:40 (capab=0x431 status=0 aid=6)
[ 1730.100738] wlan0: associated
[ 1730.105712] ------------[ cut here ]------------
[ 1730.110656] WARNING: at /work/mt3730/android/hardware/ti/wlan/mac80211/compat/drivers/net/wireless/wl12xx/tx.c:1083 wl127)
[ 1730.125518] Modules linked in: wl12xx_sdio omaplfb pvrsrvkm wl12xx mac80211 cfg80211 compat [last unloaded: wl12xx_sdio]
[ 1730.136871] Backtrace:
[ 1730.139434] [<c004ee38>] (dump_backtrace+0x0/0x110) from [<c046a378>] (dump_stack+0x18/0x1c)
[ 1730.148223]  r7:00000009 r6:0000043b r5:bf08b038 r4:00000000
[ 1730.154144] [<c046a360>] (dump_stack+0x0/0x1c) from [<c0079984>] (warn_slowpath_common+0x54/0x6c)
[ 1730.163391] [<c0079930>] (warn_slowpath_common+0x0/0x6c) from [<c00799c0>] (warn_slowpath_null+0x24/0x2c)
[ 1730.173370]  r9:d988aec4 r8:00ff07ff r7:00000001 r6:000010fd r5:d988af30
[ 1730.180175] r4:00000000
[ 1730.182952] [<c007999c>] (warn_slowpath_null+0x0/0x2c) from [<bf08b038>] (wl1271_tx_min_rate_get+0x20/0x48 [wl12xx])
[ 1730.193969] [<bf08b018>] (wl1271_tx_min_rate_get+0x0/0x48 [wl12xx]) from [<bf081990>] (wl1271_op_bss_info_changed+0x490/0)
[ 1730.206634]  r5:d988af30 r4:cc78ee60
[ 1730.210449] [<bf081500>] (wl1271_op_bss_info_changed+0x0/0x918 [wl12xx]) from [<bf03e030>] (ieee80211_bss_info_change_not)
[ 1730.224365] [<bf03ded4>] (ieee80211_bss_info_change_notify+0x0/0x168 [mac80211]) from [<bf048434>] (ieee80211_assoc_succe)
[ 1730.238128]  r7:d4666030 r6:cc78e2c0 r5:cc78e8f8 r4:d988ab60
[ 1730.244110] [<bf047e8c>] (ieee80211_assoc_success+0x0/0x73c [mac80211]) from [<bf0486a8>] (ieee80211_assoc_done+0xe0/0x15)
[ 1730.256774] [<bf0485c8>] (ieee80211_assoc_done+0x0/0x150 [mac80211]) from [<bf049f4c>] (ieee80211_work_work+0x31c/0x120c )
[ 1730.269165]  r7:cc78e2c0 r6:d0972640 r5:00000003 r4:d4429cc0
[ 1730.275115] [<bf049c30>] (ieee80211_work_work+0x0/0x120c [mac80211]) from [<c008f344>] (process_one_work+0x278/0x3f8)
[ 1730.286193] [<c008f0cc>] (process_one_work+0x0/0x3f8) from [<c0091154>] (worker_thread+0x218/0x410)
[ 1730.295623] [<c0090f3c>] (worker_thread+0x0/0x410) from [<c00949d8>] (kthread+0x8c/0x94)
[ 1730.304077] [<c009494c>] (kthread+0x0/0x94) from [<c007cce0>] (do_exit+0x0/0x638)
[ 1730.311859]  r7:00000013 r6:c007cce0 r5:c009494c r4:df033ec0
[ 1730.317779] ---[ end trace 44345dbdb73c8aa8 ]---
[ 1730.454254] cfg80211: Calling CRDA for country: US
[ 1730.542816] cfg80211: Regulatory domain changed to country: US
[ 1730.548980] cfg80211:     (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
[ 1730.557708] cfg80211:     (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2700 mBm)
[ 1730.566009] cfg80211:     (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 1700 mBm)
[ 1730.574310] cfg80211:     (5250000 KHz - 5330000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[ 1730.582580] cfg80211:     (5490000 KHz - 5600000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[ 1730.590881] cfg80211:     (5650000 KHz - 5710000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[ 1730.599151] cfg80211:     (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 3000 mBm)
[ 1730.686981] wl1271: hardware_ti_wlan_mac80211_****net_wireless_wl12xx_main.c   : Association completed.
[ 1912.000213] wl1271: ERROR exceeded max RX BA sessions
[ 2035.459594] wl1271: ERROR exceeded max RX BA sessions
[ 2041.102783] wl1271: ERROR exceeded max RX BA sessions
[ 2044.949188] wl1271: ERROR exceeded max RX BA sessions
[ 2168.306427] wl1271: ERROR exceeded max RX BA sessions
[ 2294.465240] wl1271: ERROR exceeded max RX BA sessions
[ 2412.325469] wl1271: ERROR exceeded max RX BA sessions
[ 2661.260375] wl1271: ERROR exceeded max RX BA sessions

  • 自己顶一下吧,我发现这个wifi信号强度变化特别大,我连接上一个AP,我的手持设备横着和竖着 wifi信号强度差别就很大,这怎么能改善了,wifi天线我就是在淘宝上买的天线,比较小的。3dbm  4dbm 5dbm 我都试过,但wifi信号都不是很稳定。

  • 我看见代码ANDROID 2.3代码中有/**
         * Calculates the level of the signal. This should be used any time a signal
         * is being shown.
         * 
         * @param rssi The power of the signal measured in RSSI.
         * @param numLevels The number of levels to consider in the calculated
         *            level.
         * @return A level of the signal, given in the range of 0 to numLevels-1
         *         (both inclusive).
         */
        public static int calculateSignalLevel(int rssi, int numLevels) {
            if (rssi <= MIN_RSSI) {
                return 0;
            } else if (rssi >= MAX_RSSI) {
                return numLevels - 1;
            } else {
                int partitionSize = (MAX_RSSI - MIN_RSSI) / (numLevels - 1);
                return (rssi - MIN_RSSI) / partitionSize;
            }
        }

    这个代码能反应出信号强度,这个代码还用根据不wifi模块做合适的调节吗? 设置  MAX_RSSI   MIN_RSSI   吗?我感觉信号太不稳定了?

  • WG7310是这样的,它每次不是上电的时候,都要下载一个配置文件到自带的RAM里面去,这个配置文件佐臻是有更新的,估计也会提高AP的性能,你参考一下这篇文章:http://blog.csdn.net/code_style/article/details/43796515

  • hold li 你好,谢谢你的回复。我看了这个链接,我看件这个固件了,它是蓝牙的固件,这个固件我有,不知道有wifi的固件没有  。佐臻的。

  • 除了固件更新支持外,还有一些参数是需要配置的,你找到Wlan相关的注册表里面的一些参数,是需要你去调试的,WG7310这颗新批这个TI官方早期是有文档针对这一块的说明的。

  • 我也用的这两个模块,linux(非Android),用一段时间久断线,重新加载驱动没用,除非重启系统,内核原来是2.6.32,后来佐臻说2.6.32上有缺陷,费了半天劲升级到2.6.37,结果还是连接一段时间之后断线,甚至系统重启。

    使用的驱动参考如下链接:

    http://processors.wiki.ti.com/index.php/WL12xx_NLCP_Build_Instructions

    不知道你有没有这个解决这个问题?

  • to  Yukun Hao

    我这个问题还没解决,我发现一般是驱动自动down造成的,但我就没看出来为什么无源无故DOWN。

    我看LOG 有

      binder: 2079: binder_alloc_buf, no vma
    <6>[87415.617401] binder: 1186:1379 transaction failed 29201, size 1560-0

    不之这个问题对这个影响多大,这个问题我也一直没有解决。

    我QQ 31953894   你的告诉我,或者加我QQ也好,交流一下

  • 最新的驱动版本是WiLink_Driver_6.1.0.1.149,不知道你是不是这个版本,自己修复了WG7310硬件出现故障时,系统开机会卡死的问题,目前AP很稳定,没有任何问题。

  • WG73的驱动是90%以上代码是跨平台的,只有platforms/os目录下的代码是平台相关的实现,包括各个平台的NDIS不同的实现,如果你的有问题,你好好看一下平台相关的代码部分,都是针对WL1271芯片

  • 你好,

            我用的是linux2.6.32和linux2.6.37(非Android),硬件模块DM3730,wg7310-0A,不知道你是哪个系统?

    你用的驱动能否给个链接?

    还有你说的硬件问题和跨平台,我还不清楚是否与之相关,需要向你请教下!

  • 我现在2.6.37上得不到系统log,不知为何,所以只能跑程序观察断线时间和数据包量。我的QQ406943296,一块研究下这个问题。

  • 驱动源码网上是找不到的,需要和Jorjin签订NDA,你才能拿到源码,不好意思。

  • 非常感谢你的建议,我想问下你用的是原生linux还是Android,具体哪个版本?

    我看到网上是可以下载WiLink_Driver_6.1.0.1.149,难道佐臻自己还进行优化了?

  • 你好,我使用的是佐臻的 3730模块(里面包括nand sram 的模块,bga封装),wifi模块也是SG7310-0A。WiLink_Driver_6.1.0.1.149在哪下载的,给个链接备被。

    我用的是ANDROID 2.3.4系统(jorjin的提供的代码),不用LINUX系统

  • WG7310 Linux驱动有吗?
  • 到这个芯片的官网看看吧,后者很多S3C6410板子使用这个芯片,你可以找一块的资料看看