嵌入式爱好者

查看: 870|回复: 8

[Linux] imx6ul WIFI热点连接很慢,手机连上需要2分钟左右

[复制链接]

5

主题

18

帖子

112

积分

i.MX6Q通行证i.MX6UL通行证

扫一扫,手机访问本帖
发表于 2019-3-28 08:49:51 | 显示全部楼层 |阅读模式
按照手册上配置了wifi热点,手机去连接wifi热点时,大概花了2分钟才连接成功,
即便连接成功后,在使用的过程中也出现断掉wifi连接的情况。

大家有没有遇到过这类情况,有什么办法可以优化wifi连接时间呢

谢谢!
回复

使用道具 举报

5

主题

18

帖子

112

积分

i.MX6Q通行证i.MX6UL通行证

 楼主| 发表于 2019-3-28 14:11:32 | 显示全部楼层
本帖最后由 Augustus007 于 2019-3-28 14:14 编辑

[  379.477532] RTL871X: send eapol packet
[  379.482466] RTL871X: set group key camid:1, addr:00:00:00:00:00:00, kid:1, type:TKIP
[  379.490883] RTL871X: recv eapol packet
[  379.501968] RTL871X: send eapol packet
[  379.514862] RTL871X: recv eapol packet
[  379.519750] RTL871X: set pairwise key camid:4, addr:xx:xx:xx:xx:xx:xx, kid:0, type:AES
[  533.375509] RTL871X: OnDisassoc(wlan0) reason=8, ta=xx:xx:xx:xx:xx:xx
[  533.382252] RTL871X: clear key for addr:xx:xx:xx:xx:xx:xx, camid:4
[  579.087320] RTL871X: send eapol packet
[  579.143256] RTL871X: recv eapol packet
[  579.148672] RTL871X: send eapol packet
[  579.159393] RTL871X: recv eapol packet
[  579.164711] RTL871X: set pairwise key camid:4, addr:xx:xx:xx:xx:xx:xx, kid:0, type:AES
注:这里我隐藏了mac地址
点评回复 支持 反对

使用道具 举报

0

主题

38

帖子

212

积分

LS1012A通行证LS1043A通行证AM5718通行证AM335x通行证i.MX6UL通行证i.MX RT通行证i.MX6Q通行证XX18通行证TCU通行证FCU1401通行证FCU1301通行证FCU1101通行证FCU1201通行证

发表于 2019-3-28 16:52:25 | 显示全部楼层
你好,请问您外接wifi天线了吗?推荐您连接两根2.4G的天线

点评

没有外接天线,使用WIFI模块的内接天线  详情 回复 发表于 2019-3-29 09:16
点评回复 支持 反对

使用道具 举报

5

主题

18

帖子

112

积分

i.MX6Q通行证i.MX6UL通行证

 楼主| 发表于 2019-3-29 09:16:16 | 显示全部楼层
WangSai 发表于 2019-3-28 16:52
你好,请问您外接wifi天线了吗?推荐您连接两根2.4G的天线

没有外接天线,使用WIFI模块的内接天线。WIFI信号都是满的
点评回复 支持 反对

使用道具 举报

5

主题

18

帖子

112

积分

i.MX6Q通行证i.MX6UL通行证

 楼主| 发表于 2019-3-29 09:29:18 | 显示全部楼层
经过实际测试,在iPhone上连接imx6ul上的wifi热点,需要花1分钟左右时间;
但是在wifi刚刚开始连接时,我在串口中去ping手机端IP是能够ping通的,
但手机端wifi连接状态却要等一分钟才会在wifi热点名称前打上勾完成连接。

之前尝试去修改hostap.conf和udhcpd.conf配置文件里面的参数,没有作用。
点评回复 支持 反对

使用道具 举报

2

主题

3612

帖子

3322

积分

发表于 2019-3-29 18:13:34 | 显示全部楼层
您使用的是linux3.14.38还是linux4.1.15,wifi热点功能测试过,没有出现过需要两分钟才能连接上的情况,是不是有其他的设备影响呢

点评

使用的是linux3.14.38  详情 回复 发表于 2019-4-10 11:00
技术支持电话:0312-3119192
技术支持邮箱:Android@forlinx.com
点评回复 支持 反对

使用道具 举报

5

主题

18

帖子

112

积分

i.MX6Q通行证i.MX6UL通行证

 楼主| 发表于 2019-4-10 11:00:18 | 显示全部楼层
飞凌-chongzi 发表于 2019-3-29 18:13
您使用的是linux3.14.38还是linux4.1.15,wifi热点功能测试过,没有出现过需要两分钟才能连接上的情况,是 ...

使用的是linux3.14.38
点评回复 支持 反对

使用道具 举报

0

主题

2

帖子

10

积分

i.MX6UL通行证

发表于 2019-6-15 17:14:26 | 显示全部楼层
我也遇到了同样的情况,I.MX6UL开发板,linux 3.14,
iPhone连接大约需要1分钟
点评回复 支持 反对

使用道具 举报

0

主题

2

帖子

10

积分

i.MX6UL通行证

发表于 2019-6-15 17:24:49 | 显示全部楼层
追加
root@freescale ~$ wlan0: Station 7c:04:d0:22:3a:98 has been active 0s ago
[ 2242.759239] RTL871X: OnDisassoc(wlan0) reason=8, ta=7c:04:d0:22:3a:98
wlan0: STA 7c:04:d0:22:3a:98 IEEE[ 2242.768964] RTL871X: clear key for addr:7c:04:d0:22:3a:98, camid:4
802.11: disassociated
wlan0: AP-STA-DISCONNECTED 7c:04:d0:22:3a:98
wlan0: STA 7c:04:d0:22:3a:98 WPA: event 2 notification
rtl871x_set_key_ops
WPA: 7c:04:d0:22:3a:98 WPA_PTK entering state DISCONNECTED
WPA: 7c:04:d0:22:3a:98 WPA_PTK entering state INITIALIZE
rtl871x_set_key_ops
wlan0: STA 7c:04:d0:22:3a:98 IEEE 802.1X: unauthorizing port
+rtl871x_sta_remove_ops, 7c:04:d0:22:3a:98 is sta address removed
+rtl871x_get_sta_wpaie, 7c:04:d0:22:3a:98 is sta's address
wlan0[ 2275.415081] RTL871X: send eapol packet
: STA 7c:04:d0:22:3a:98 IEEE 802.11: associated
STA included RSN IE in (Re)AssocReq
  New STA
wlan0: STA 7c:04:d0:22:3a:98 WPA: event 1 notification
rtl871x_set_key_ops
IEEE 802.1X: Ignore[ 2275.437040] RTL871X: send eapol packet
STA - 802.1X not enabled or forced for WPS
wlan0: STA 7c:04:d0:22:3a:98 WPA: start authentication
WPA: 7c:04:d0:22:3a:98 WPA_P[ 2275.450912] RTL871X: set pairwise key camid:4, addr:7c:04:d0:22:3a:98, kid:0, type:AES
TK entering state INITIALIZE
rtl871x_set_key_ops
wlan0: STA 7c:04:d0:22:3a:98 IEEE 802.1X: unauthorizing port
WPA: 7c:04:d0:22:3a:98 WPA_PTK_GROUP entering state IDLE
WPA: 7c:04:d0:22:3a:98 WPA_PTK entering state AUTHENTICATION
WPA: 7c:04:d0:22:3a:98 WPA_PTK entering state AUTHENTICATION2
WPA: Assign ANonce - hexdump(len=32): 4b 29 7f 2f e4 1b 29 10 fb ef 0f 8b 59 90 27 0c 3b 2d b5 27 37 71 88 9d 1a 0e 19 b7 20 81 6a d6
WPA: 7c:04:d0:22:3a:98 WPA_PTK entering state INITPSK
WPA: 7c:04:d0:22:3a:98 WPA_PTK entering state PTKSTART
wlan0: STA 7c:04:d0:22:3a:98 WPA: sending 1/4 msg of 4-Way Handshake
WPA: Send EAPOL(version=2 secure=0 mic=0 ack=1 install=0 pairwise=8 kde_len=0 keyidx=0 encr=0)
+rtl871x_send_eapol
WPA: Use EAPOL-Key timeout of 1000 ms (retry counter 1)
IEEE 802.1X: 121 bytes from 7c:04:d0:22:3a:98
   IEEE 802.1X: version=2 type=3 length=117
WPA: Received Key Nonce - hexdump(len=32): 4e ca c4 d7 ec a1 b2 84 ca 12 d7 b7 a1 23 09 18 db 9d 91 8a 73 aa 31 55 c5 55 15 54 55 53 aa b0
WPA: Received Replay Counter - hexdump(len=8): 00 00 00 00 00 00 00 01
wlan0: STA 7c:04:d0:22:3a:98 WPA: received EAPOL-Key frame (2/4 Pairwise)
WPA: 7c:04:d0:22:3a:98 WPA_PTK entering state PTKCALCNEGOTIATING
WPA: PTK derivation - A1=18:bb:26:6d:dd:81 A2=7c:04:d0:22:3a:98
WPA: Nonce1 - hexdump(len=32): 4b 29 7f 2f e4 1b 29 10 fb ef 0f 8b 59 90 27 0c 3b 2d b5 27 37 71 88 9d 1a 0e 19 b7 20 81 6a d6
WPA: Nonce2 - hexdump(len=32): 4e ca c4 d7 ec a1 b2 84 ca 12 d7 b7 a1 23 09 18 db 9d 91 8a 73 aa 31 55 c5 55 15 54 55 53 aa b0
WPA: PMK - hexdump(len=32): [REMOVED]
WPA: PTK - hexdump(len=48): [REMOVED]
WPA: 7c:04:d0:22:3a:98 WPA_PTK entering state PTKCALCNEGOTIATING2
WPA: 7c:04:d0:22:3a:98 WPA_PTK entering state PTKINITNEGOTIATING
wlan0: STA 7c:04:d0:22:3a:98 WPA: sending 3/4 msg of 4-Way Handshake
WPA: Send EAPOL(version=2 secure=1 mic=1 ack=1 install=1 pairwise=8 kde_len=86 keyidx=1 encr=1)
Plaintext EAPOL-Key Key Data - hexdump(len=96): [REMOVED]
+rtl871x_send_eapol
WPA: Use EAPOL-Key timeout of 1000 ms (retry counter 1)
IEEE 802.1X: 99 bytes from 7c:04:d0:22:3a:98
   IEEE 802.1X: version=2 type=3 length=95
WPA: Received Key Nonce - hexdump(len=32): 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
WPA: Received Replay Counter - hexdump(len=8): 00 00 00 00 00 00 00 02
wlan0: STA 7c:04:d0:22:3a:98 WPA: received EAPOL-Key frame (4/4 Pairwise)
WPA: 7c:04:d0:22:3a:98 WPA_PTK entering state PTKINITDONE
rtl871x_set_key_ops
wlan0: AP-STA-CONNECTED 7c:04:d0:22:3a:98
wlan0: STA 7c:04:d0:22:3a:98 IEEE 802.1X: authorizing port
wlan0: STA 7c:04:d0:22:3a:98 RADIUS: starting accounting session 000006CC-00000001
wlan0: STA 7c:04:d0:22:3a:98 WPA: pairwise key handshake completed (RSN)
wlan0: WPA rekeying GTK
WPA: group state machine entering state SETKEYS (VLAN-ID 0)
GTK - hexdump(len=32): [REMOVED][ 2342.344636] RTL871X: send eapol packet

WPA: 7c:04:d0:22:3a:98 WPA_PTK_GROUP entering state REKEYNEGOTIATING
wlan0: STA 7c:04:d0:22:3a:98 WPA: sending 1/2 msg of Group Key Handshake
WPA: Send EAPOL(version=2 secure=1 mic=1 ack=1 install=0 pairwise=0 kde_len=40 keyidx=2 encr=1)
Plaintext EAPOL-Key Key Data - hexdump(len=48): [REMOVED]
+rtl871x_send_eapol
WPA: Use EAPOL-Key timeout of 1000 ms (retry counter 1)
wpa_group_setkeys: GKeyDoneStations=1
wlan0: STA 7c:04:d0:22:3a:98 WPA:[ 2343.352909] RTL871X: send eapol packet
EAPOL-Key timeout
WPA: 7c:04:d0:22:3a:98 WPA_PTK_GROUP entering state REKEYNEGOTIATING
wlan0: STA 7c:04:d0:22:3a:98 WPA: sending 1/2 msg of Group Key Handshake
WPA: Send EAPOL(version=2 secure=1 mic=1 ack=1 install=0 pairwise=0 kde_len=40 keyidx=2 encr=1)
Plaintext EAPOL-Key Key Data - hexdump(len=48): [REMOVED]
+rtl871x_send_eapol
WPA: Use EAPOL-Key timeout of 1000 ms (retry counter 2)
IEEE 802.1X: 99 byt[ 2343.392031] RTL871X: set group key camid:2, addr:00:00:00:00:00:00, kid:2, type:TKIP
es from 7c:04:d0:22:3a:98
   IEEE 802.1X: version=2 type=3 length=95
WPA: Received Key Nonce - hexdump(len=32): 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
WPA: Received Replay Counter - hexdump(len=8): 00 00 00 00 00 00 00 04
wlan0: STA 7c:04:d0:22:3a:98 WPA: received EAPOL-Key frame (2/2 Group)
WPA: 7c:04:d0:22:3a:98 WPA_PTK_GROUP entering state REKEYESTABLISHED
wlan0: STA 7c:04:d0:22:3a:98 WPA: group key handshake completed (RSN)
WPA: group state machine entering state SETKEYSDONE (VLAN-ID 0)
rtl871x_set_key_ops
WPA: 7c:04:d0:22:3a:98 WPA_PTK_GROUP entering state IDLE
[ 2390.564105] RTL871X: OnDisassoc(wlan0) reason=8, ta=7c:04:d0:22:3a:98
wlan0: STA 7c:04:d0:22:3a:98 IEEE 802.11: disassociated
wlan0: A[ 2390.574682] RTL871X: clear key for addr:7c:04:d0:22:3a:98, camid:4
P-STA-DISCONNECTED 7c:04:d0:22:3a:98
wlan0: STA 7c:04:d0:22:3a:98 WPA: event 2 notification
rtl871x_set_key_ops
WPA: 7c:04:d0:22:3a:98 WPA_PTK entering state DISCONNECTED
WPA: 7c:04:d0:22:3a:98 WPA_PTK entering state INITIALIZE
rtl871x_set_key_ops
wlan0: STA 7c:04:d0:22:3a:98 IEEE 802.1X: unauthorizing port
+rtl871x_sta_remove_ops, 7c:04:d0:22:3a:98 is sta address removed
点评回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|手机版|小黑屋|飞凌嵌入式 ( 冀ICP备12004394号-1

GMT+8, 2019-9-16 20:47

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表