widora bit模块无法进行无线中继



  • 新购的widora模块,拿到后直接测试无线中继到公司网络,发现不成功,log信息如下:

    root@Widora:/# connect2ap CdKobble Kobble2014
    [ 194.510000] br-lan: port 2(ra0) entered disabled state
    [ 194.560000] WLAN:STA 30:b4:9e:56:24:e1(dev:ra0 rate:135Mbps singnal:-26dBm) disconnect
    [ 194.570000] APCLI LINK DOWN - IF(apcli0)
    [ 195.100000] device ra0 left promiscuous mode
    [ 195.100000] br-lan: port 2(ra0) entered disabled state
    [ 195.590000] br-lan: port 1(eth0) entered disabled state
    [ 195.610000] device eth0 left promiscuous mode
    [ 195.610000] br-lan: port 1(eth0) entered disabled state
    [ 195.620000] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
    root@Widora:/# [ 197.610000] device eth0 entered promiscuous mode
    [ 197.620000] br-lan: port 1(eth0) entered forwarding state
    [ 197.620000] br-lan: port 1(eth0) entered forwarding state
    [ 199.620000] br-lan: port 1(eth0) entered forwarding state
    [ 200.590000] =====================================================
    [ 200.590000] Channel 1 : Dirty = 140, False CCA = 0, Busy Time = 5536, Skip Channel = FALSE
    [ 200.600000] Channel 2 : Dirty = 104, False CCA = 0, Busy Time = 3310, Skip Channel = FALSE
    [ 200.610000] Channel 3 : Dirty = 104, False CCA = 0, Busy Time = 7137, Skip Channel = FALSE
    [ 200.620000] Channel 4 : Dirty = 104, False CCA = 0, Busy Time = 6086, Skip Channel = FALSE
    [ 200.620000] Channel 5 : Dirty = 124, False CCA = 0, Busy Time = 7338, Skip Channel = FALSE
    [ 200.630000] Channel 6 : Dirty = 184, False CCA = 0, Busy Time = 1660, Skip Channel = FALSE
    [ 200.640000] Channel 7 : Dirty = 112, False CCA = 0, Busy Time = 2335, Skip Channel = FALSE
    [ 200.650000] Channel 8 : Dirty = 112, False CCA = 0, Busy Time = 4328, Skip Channel = FALSE
    [ 200.660000] Channel 9 : Dirty = 146, False CCA = 0, Busy Time = 3743, Skip Channel = FALSE
    [ 200.670000] Channel 10 : Dirty = 104, False CCA = 0, Busy Time = 1164, Skip Channel = FALSE
    [ 200.680000] Channel 11 : Dirty = 98, False CCA = 0, Busy Time = 1142, Skip Channel = FALSE
    [ 200.680000] Channel 12 : Dirty = 56, False CCA = 0, Busy Time = 2734, Skip Channel = TRUE
    [ 200.690000] Channel 13 : Dirty = 48, False CCA = 0, Busy Time = 2543, Skip Channel = TRUE
    [ 200.700000] =====================================================
    [ 200.710000] Rule 1 CCA value : Min Dirtiness (Include extension channel) ==> Select Channel 11
    [ 200.720000] Min Dirty = 210
    [ 200.720000] ExChannel = 7 , 0
    [ 200.720000] BW = 40
    [ 200.750000] |--------------------------------------------------------|
    [ 200.760000] |------------Widora wifi driver--version:1.2-------------|
    [ 200.760000] |Copyright 2016-2017 by YuanChenMang. All rights reserved|
    [ 200.770000] | This Driver licensing-only runs on Widora! |
    [ 200.780000] | Found bug? Please contact widora@qq.com , thanks! |
    [ 200.780000] |--------------------------------------------------------|
    [ 202.490000] device ra0 entered promiscuous mode
    [ 202.490000] br-lan: port 2(ra0) entered forwarding state
    [ 202.500000] br-lan: port 2(ra0) entered forwarding state
    [ 204.500000] br-lan: port 2(ra0) entered forwarding state
    [ 208.360000] AP-Client probe response: SSID=CdKobble, BSSID=30:b4:9e:56:24:e1
    [ 208.370000] APCLI LINK UP - IF(apcli0) AuthMode(7)=WPA2PSK, WepStatus(6)=AES!

    查看配置结果:

    root@Widora:/# ifconfig
    apcli0    Link encap:Ethernet  HWaddr 0E:EF:AF:00:2C:28
              inet6 addr: fe80::cef:afff:fe00:2c28/64 Scope:Link
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:432 errors:0 dropped:0 overruns:0 frame:0
              TX packets:72 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000
              RX bytes:119966 (117.1 KiB)  TX bytes:22744 (22.2 KiB)
    
    br-lan    Link encap:Ethernet  HWaddr 0C:EF:AF:D0:2C:29
              inet addr:192.168.1.1 Bcast:192.168.1.255  Mask:255.255.255.0 
              inet6 addr: fe80::eef:afff:fed0:2c29/64 Scope:Link
              inet6 addr: fdcb:fa86:7be3::1/60 Scope:Global
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:0 errors:0 dropped:0 overruns:0 frame:0
              TX packets:41 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:0
              RX bytes:0 (0.0 B)  TX bytes:5568 (5.4 KiB)
    
    eth0      Link encap:Ethernet  HWaddr 0C:EF:AF:D0:2C:28
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:0 errors:0 dropped:0 overruns:0 frame:0
              TX packets:149 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000
              RX bytes:0 (0.0 B)  TX bytes:23071 (22.5 KiB)
              Interrupt:5
    
    eth0.1    Link encap:Ethernet  HWaddr 0C:EF:AF:D0:2C:28
              inet6 addr: fe80::eef:afff:fed0:2c28/64 Scope:Link
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:0 errors:0 dropped:0 overruns:0 frame:0
              TX packets:40 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:0
              RX bytes:0 (0.0 B)  TX bytes:7427 (7.2 KiB)
    
    lo        Link encap:Local Loopback
              inet addr:127.0.0.1  Mask:255.0.0.0 
    
              inet6 addr: ::1/128 Scope:Host
              UP LOOPBACK RUNNING  MTU:65536  Metric:1
              RX packets:384 errors:0 dropped:0 overruns:0 frame:0
              TX packets:384 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:0
              RX bytes:26112 (25.5 KiB)  TX bytes:26112 (25.5 KiB)
    
    ra0       Link encap:Ethernet  HWaddr 0C:EF:AF:D0:2C:28
              inet6 addr: fe80::eef:afff:fed0:2c28/64 Scope:Link
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:0 errors:0 dropped:0 overruns:0 frame:0
              TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000
              RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
              Interrupt:6
    

    #################################################
    另外:
    使用ip link 进行macvlan

    飞扬 2017/7/26 16:39:52
    wifi驱动库内不停打印:

    [ 4927.900000] WLAN:STA 30:b4:9e:56:24:e1(dev:ra0 rate:65Mbps singnal:-29dBm) disconnect
    [ 4935.090000] AP-Client probe response: SSID=CdKobble, BSSID=30:b4:9e:56:24:e1
    [ 4935.100000] APCLI LINK UP - IF(apcli0) AuthMode(7)=WPA2PSK, WepStatus(6)=AES!
    [ 4944.410000] AP-Client: disconnected by peer
    [ 4944.410000] APCLI LINK DOWN - IF(apcli0)
    16:40:29

    不停的开关是什么原因?
    能否关掉这个打印?


  • administrators

    @gh
    一般这样检查:
    1、是否接好了天线。
    2、是否密码错误,或者密码中包含特殊字符。
    3、可以手机开个热点让bit连接对比看看。



  • @mango

    1、确认天线连接良好,其作为ap可以连接上

    2、connect2ap CdKobble Kobble2014
    如上,无特殊字符,该网络手机可以正常连接
    该路由器为TPLINK,型号为:TL-WAR308

       公司之前的水星路由器可以正常连接,
           换了这个型号后就连不上了
    

    3、手机热点可以正常连接上,连手机的log如下:

    root@Widora:/# connect2ap gggg 88888888
    uci: Entry not found
    [ 416.200000] br-lan: port 2(ra0) entered disabled state
    [ 416.210000] br-lan: port 1(eth0) entered disabled state
    [ 416.220000] device eth0 left promiscuous mode
    [ 416.220000] br-lan: port 1(eth0) entered disabled state
    [ 416.230000] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
    [ 416.290000] device ra0 left promiscuous mode
    [ 416.290000] br-lan: port 2(ra0) entered disabled state
    [ 417.460000] rt305x-esw 10110000.esw: link changed 0x00
    [ 418.290000] device eth0 entered promiscuous mode
    [ 418.310000] br-lan: port 1(eth0) entered forwarding state
    [ 418.310000] br-lan: port 1(eth0) entered forwarding state
    [ 418.740000] device ra0 entered promiscuous mode
    [ 418.740000] br-lan: port 2(ra0) entered forwarding state
    [ 418.750000] br-lan: port 2(ra0) entered forwarding state
    killall: ap_client: no process killed
    root@Widora:/# [ 420.210000] br-lan: port 2(ra0) entered disabled state
    [ 420.240000] device ra0 left promiscuous mode
    [ 420.250000] br-lan: port 2(ra0) entered disabled state
    [ 420.310000] br-lan: port 1(eth0) entered forwarding state
    [ 420.490000] rt305x-esw 10110000.esw: link changed 0x01
    [ 421.590000] device ra0 entered promiscuous mode
    [ 421.600000] br-lan: port 2(ra0) entered forwarding state
    [ 421.600000] br-lan: port 2(ra0) entered forwarding state
    [ 423.600000] br-lan: port 2(ra0) entered forwarding state

    查看配置:
    root@Widora:/# ifconfig
    apcli0 Link encap:Ethernet HWaddr 0E:EF:AF:00:2C:1E
    inet addr:192.168.43.203 Bcast:192.168.43.255 Mask:255.255.255.0
    inet6 addr: fe80::cef:afff:fe00:2c1e/64 Scope:Link
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:0 errors:0 dropped:0 overruns:0 frame:0
    TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

    br-lan Link encap:Ethernet HWaddr 0C:EF:AF:D0:2C:1F
    inet addr:192.168.1.1 Bcast:192.168.1.255 Mask:255.255.255.0
    inet6 addr: fd63:8912:912a::1/60 Scope:Global
    inet6 addr: fe80::eef:afff:fed0:2c1f/64 Scope:Link
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:112 errors:0 dropped:0 overruns:0 frame:0
    TX packets:43 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:0
    RX bytes:7739 (7.5 KiB) TX bytes:6479 (6.3 KiB)

    eth0 Link encap:Ethernet HWaddr 0C:EF:AF:D0:2C:1E
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:836 errors:0 dropped:1 overruns:0 frame:0
    TX packets:115 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:75441 (73.6 KiB) TX bytes:17938 (17.5 KiB)
    Interrupt:5

    eth0.1 Link encap:Ethernet HWaddr 0C:EF:AF:D0:2C:1E
    inet6 addr: fe80::eef:afff:fed0:2c1e/64 Scope:Link
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:25 errors:0 dropped:0 overruns:0 frame:0
    TX packets:30 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:0
    RX bytes:1516 (1.4 KiB) TX bytes:5789 (5.6 KiB)

    lo Link encap:Local Loopback
    inet addr:127.0.0.1 Mask:255.0.0.0
    inet6 addr: ::1/128 Scope:Host
    UP LOOPBACK RUNNING MTU:65536 Metric:1
    RX packets:576 errors:0 dropped:0 overruns:0 frame:0
    TX packets:576 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:0
    RX bytes:39168 (38.2 KiB) TX bytes:39168 (38.2 KiB)

    ra0 Link encap:Ethernet HWaddr 0C:EF:AF:D0:2C:1E
    inet6 addr: fe80::eef:afff:fed0:2c1e/64 Scope:Link
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:1757 errors:0 dropped:0 overruns:0 frame:0
    TX packets:2484 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:342314 (334.2 KiB) TX bytes:6924 (6.7 KiB)
    Interrupt:6


  • administrators

    @ghwidora bit模块无法进行无线中继 中说:

    apcli0 Link encap:Ethernet HWaddr 0E:EF:AF:00:2C:1E
    inet addr:192.168.43.203 Bcast:192.168.43.255 Mask:255.255.255.0
    inet6 addr: fe80::cef:afff:fe00:2c1e/64 Scope:Link
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:0 errors:0 dropped:0 overruns:0 frame:0
    TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:0 (0.0 TX bytes:0 (0.0

    看到apcli已经获取了IP,此时可以ping通外部IP吗?



  • @mango
    这个是连手机热点的log,连手机可以获取ip

    连手机时我没有开启移动数据,没测,应该是能ping通的

    但连tplink路由器为啥就是连不上呢???



  • TP-link的路由器同样遇到中继的问题,无法ping外网


  • administrators

    @maclinux
    1、ifconfig apcli0看一下是否成功获取到IP?
    2、ifconfig 看一下是否br-lan的网段与apcli0相同,相同则冲突,需要修改本地的/etc/config/network文件的lan部分ip为其他网段。



  • @mango 我也遇到了和楼主一样的问题,使用repeater模式,能够连接到热点,但是通过ifconfig apcli0未获得ip地址,手动设置了一个IP地址以后,依然无法ping通外网,也无法ping通连接到同一wifi的其他设备。且br-lan的网段与apcli0不相同,不知道是什么问题


  • administrators

    @jiahool repeater模式下,获取到的IP在br-lan部分而不是apcli0部分。截图上来看一下




  • administrators

    @jiahool 看这个状态,网口和板子本身的AP应该此时是可以上网的



  • @mango 我现在网口没连。我只是想要把widora联网,但是我ping www.baidu.com,ping不通,显示bad address,也测试了更新软件,也是提示bad address,所以应该是没连上网。我能保证的是这个wifi本身是可以上外网的。然后,0_1519464673921_cab43b05-f2dd-4f68-b73f-89090d8e5309-undefined,现在的br-lan的IP地址是静态的,是不是这里有问题?


  • administrators

    @jiahool 运行widora_mode repeater后,br-lan部分应该就是dhcp了。
    你这个修改成dhcp,在nr一下。应该就可以了



  • @mango 确实是,改成dhcp就可以了,3Q