|
本帖最后由 terefere 于 2023-9-17 01:35 编辑
Firs matter: can you provide some decryption for value who give this routine?
Second: When I set incorrect data for connection to router then I see that wifi module try to force connection in loop- not finish procedure after show error. I don't think so, that is good. It look's like below. Is any solution ?, at now I try kill it by connect with empty SSID string. At line 234 is my code, here I also I try to call reset_ethernet() but I get error for nil value- must be something inside this routine?
- start_connect_wifi
- [WIFIMGR] START to Connect!
- netlinkbuffer.setflags = 22, cmd: 0x8B15
- netlinkbuffer.recvflags = 22
- netlink: 52 extra bytes in the end of netlink message
- ioctl[SIOCSIWAP]: Success
- [WIFIMGR] ssid = XFF
- [WIFIMGR] password = iut
- [WIFIMGR] secumode = 6
- add_network = 0
- WLAN_SEC_WPAPSK_MIX
- Line 0: Invalid passphrase length 3 (expected: 8..63) 'iut"'.
- [WIFIMGR] Wait for connecting
- ....netlinkbuffer.setflags = 23, cmd: 0x8B19
- netlinkbuffer.recvflags = 23
- netlink: 52 extra bytes in the end of netlink message
- .netlinkbuffer.setflags = 0, cmd: 0x8B15
- netlinkbuffer.recvflags = 0
- netlink: 52 extra bytes in the end of netlink message
- UpdateHalRAMask8188EUsb => mac_id:0, networkType:0x0b, mask:0x000fffff
- ==> rssi_level:0, rate_bitmap:0x000ff015
- IEEE 802.1X RX: version=2 type=3 length=117
- RSN: no matching PMKID found
- ..........IEEE 802.1X RX: version=2 type=3 length=117
- UpdateHalRAMask8188EUsb => mac_id:0, networkType:0x0b, mask:0x000fffff
- ==> rssi_level:1, rate_bitmap:0x000f0000
- RSN: no matching PMKID found
- ..........IEEE 802.1X RX: version=2 type=3 length=117
- RSN: no matching PMKID found
- ..........IEEE 802.1X RX: version=2 type=3 length=117
- RSN: no matching PMKID found
- .......HEAP newlib: usage=39360120/51766752(76%),addr=0xA6F220
- ..IEEE 802.1X RX: version=2 type=3 length=117
- RSN: no matching PMKID found
- ..........IEEE 802.1X RX: version=2 type=3 length=117
- RSN: no matching PMKID found
- .........IEEE 802.1X RX: version=2 type=3 length=117
- RSN: no matching PMKID found
- ..........IEEE 802.1X RX: version=2 type=3 length=117
- RSN: no matching PMKID found
- ..........netlinkbuffer.setflags = 1, cmd: 0x8B15
- netlinkbuffer.recvflags = 1
- netlink: 52 extra bytes in the end of netlink message
- .........netlinkbuffer.setflags = 2, cmd: 0x8B19
- netlinkbuffer.recvflags = 2
- netlink: 52 extra bytes in the end of netlink message
- .netlinkbuffer.setflags = 3, cmd: 0x8B15
- netlinkbuffer.recvflags = 3
- netlink: 52 extra bytes in the end of netlink message
- UpdateHalRAMask8188EUsb => mac_id:0, networkType:0x0b, mask:0x000fffff
- ==> rssi_level:0, rate_bitmap:0x000ff015
- IEEE 802.1X RX: version=2 type=3 length=117
- RSN: no matching PMKID found
- ..UpdateHalRAMask8188EUsb => mac_id:0, networkType:0x0b, mask:0x000fffff
- ==> rssi_level:1, rate_bitmap:0x000f0000
- ........IEEE 802.1X RX: version=2 type=3 length=117
- RSN: no matching PMKID found
- .........IEEE 802.1X RX: version=2 type=3 length=117
- RSN: no matching PMKID found
- ..........IEEE 802.1X RX: version=2 type=3 length=117
- RSN: no matching PMKID found
- ..........IEEE 802.1X RX: version=2 type=3 length=117
- RSN: no matching PMKID found
- .........HEAP newlib: usage=39360504/51766752(76%),addr=0xA6F220
- IEEE 802.1X RX: version=2 type=3 length=117
- RSN: no matching PMKID found
- ..........IEEE 802.1X RX: version=2 type=3 length=117
- RSN: no matching PMKID found
- ..........IEEE 802.1X RX: version=2 type=3 length=117
- RSN: no matching PMKID found
- .........netlinkbuffer.setflags = 4, cmd: 0x8B15
- netlinkbuffer.recvflags = 4
- netlink: 52 extra bytes in the end of netlink message
- ....netlinkbuffer.setflags = 5, cmd: 0x8B19
- netlinkbuffer.recvflags = 5
- netlink: 52 extra bytes in the end of netlink message
- .netlinkbuffer.setflags = 6, cmd: 0x8B15
- netlinkbuffer.recvflags = 6
- netlink: 52 extra bytes in the end of netlink message
- UpdateHalRAMask8188EUsb => mac_id:0, networkType:0x0b, mask:0x000fffff
- ==> rssi_level:0, rate_bitmap:0x000ff015
- UpdateHalRAMask8188EUsb => mac_id:0, networkType:0x0b, mask:0x000fffff
- ==> rssi_level:3, rate_bitmap:0x000ff015
- IEEE 802.1X RX: version=2 type=3 length=117
- RSN: no matching PMKID found
- ..........IEEE 802.1X RX: version=2 type=3 length=117
- RSN: no matching PMKID found
- ..........IEEE 802.1X RX: version=2 type=3 length=117
- RSN: no matching PMKID found
- UpdateHalRAMask8188EUsb => mac_id:0, networkType:0x0b, mask:0x000fffff
- ==> rssi_level:1, rate_bitmap:0x000f0000
- .........IEEE 802.1X RX: version=2 type=3 length=117
- RSN: no matching PMKID found
- ..........IEEE 802.1X RX: version=2 type=3 length=117
- RSN: no matching PMKID found
- .........IEEE 802.1X RX: version=2 type=3 length=117
- RSN: no matching PMKID found
- ..........IEEE 802.1X RX: version=2 type=3 length=117
- RSN: no matching PMKID found
- ........HEAP newlib: usage=39376472/51766752(76%),addr=0xA6F220
- ..IEEE 802.1X RX: version=2 type=3 length=117
- RSN: no matching PMKID found
- .........netlinkbuffer.setflags = 7, cmd: 0x8B15
- netlinkbuffer.recvflags = 7
- netlink: 52 extra bytes in the end of netlink message
- .....get_stat!
- .....netlinkbuffer.setflags = 8, cmd: 0x8B19
- netlinkbuffer.recvflags = 8
- netlink: 52 extra bytes in the end of netlink message
- netlinkbuffer.setflags = 9, cmd: 0x8B15
- netlinkbuffer.recvflags = 9
- netlink: 52 extra bytes in the end of netlink message
- UpdateHalRAMask8188EUsb => mac_id:0, networkType:0x0b, mask:0x000fffff
- ==> rssi_level:0, rate_bitmap:0x000ff015
- IEEE 802.1X RX: version=2 type=3 length=117
- RSN: no matching PMKID found
- ..........IEEE 802.1X RX: version=2 type=3 length=117
- RSN: no matching PMKID found
- ...UpdateHalRAMask8188EUsb => mac_id:0, networkType:0x0b, mask:0x000fffff
- ==> rssi_level:1, rate_bitmap:0x000f0000
- .......IEEE 802.1X RX: version=2 type=3 length=117
- RSN: no matching PMKID found
- .........IEEE 802.1X RX: version=2 type=3 length=117
- RSN: no matching PMKID found
- ..........IEEE 802.1X RX: version=2 type=3 length=117
- RSN: no matching PMKID found
- ..........IEEE 802.1X RX: version=2 type=3 length=117
- RSN: no matching PMKID found
- .........IEEE 802.1X RX: version=2 type=3 length=117
- RSN: no matching PMKID found
- ..........IEEE 802.1X RX: version=2 type=3 length=117
- RSN: no matching PMKID found
- .........netlinkbuffer.setflags = 10, cmd: 0x8B15
- netlinkbuffer.recvflags = 10
- netlink: 52 extra bytes in the end of netlink message
- ..HEAP newlib: usage=39377048/51766752(76%),addr=0xA6F220
- .........netlinkbuffer.setflags = 11, cmd: 0x8B19
- netlinkbuffer.recvflags = 11
- netlink: 52 extra bytes in the end of netlink message
- netlinkbuffer.setflags = 12, cmd: 0x8B15
- netlinkbuffer.recvflags = 12
- netlink: 52 extra bytes in the end of netlink message
- UpdateHalRAMask8188EUsb => mac_id:0, networkType:0x0b, mask:0x000fffff
- ==> rssi_level:0, rate_bitmap:0x000ff015
- IEEE 802.1X RX: version=2 type=3 length=117
- RSN: no matching PMKID found
- .....UpdateHalRAMask8188EUsb => mac_id:0, networkType:0x0b, mask:0x000fffff
- ==> rssi_level:1, rate_bitmap:0x000f0000
- .....IEEE 802.1X RX: version=2 type=3 length=117
- RSN: no matching PMKID found
- ..........IEEE 802.1X RX: version=2 type=3 length=117
- RSN: no matching PMKID found
- .........IEEE 802.1X RX: version=2 type=3 length=117
- RSN: no matching PMKID found
- ..........IEEE 802.1X RX: version=2 type=3 length=117
- RSN: no matching PMKID found
- .........IEEE 802.1X RX: version=2 type=3 length=117
- RSN: no matching PMKID found
- ..........IEEE 802.1X RX: version=2 type=3 length=117
- RSN: no matching PMKID found
- ..........IEEE 802.1X RX: version=2 type=3 length=117
- RSN: no matching PMKID found
- .........netlinkbuffer.setflags = 13, cmd: 0x8B15
- netlinkbuffer.recvflags = 13
- netlink: 52 extra bytes in the end of netlink message
- ....netlinkbuffer.setflags = 14, cmd: 0x8B19
- netlinkbuffer.recvflags = 14
- netlink: 52 extra bytes in the end of netlink message
- .netlinkbuffer.setflags = 15, cmd: 0x8B15
- netlinkbuffer.recvflags = 15
- netlink: 52 extra bytes in the end of netlink message
- UpdateHalRAMask8188EUsb => mac_id:0, networkType:0x0b, mask:0x000fffff
- ==> rssi_level:0, rate_bitmap:0x000ff015
- IEEE 802.1X RX: version=2 type=3 length=117
- RSN: no matching PMKID found
- ..UpdateHalRAMask8188EUsb => mac_id:0, networkType:0x0b, mask:0x000fffff
- ==> rssi_level:1, rate_bitmap:0x000f0000
- .......HEAP newlib: usage=39376248/51766752(76%),addr=0xA6F220
- .IEEE 802.1X RX: version=2 type=3 length=117
- RSN: no matching PMKID found
- .........IEEE 802.1X RX: version=2 type=3 length=117
- RSN: no matching PMKID found
- ..........IEEE 802.1X RX: version=2 type=3 length=117
- RSN: no matching PMKID found
- ..........IEEE 802.1X RX: version=2 type=3 length=117
- RSN: no matching PMKID found
- .........IEEE 802.1X RX: version=2 type=3 length=117
- RSN: no matching PMKID found
- ..........IEEE 802.1X RX: version=2 type=3 length=117
- RSN: no matching PMKID found
- ..........IEEE 802.1X RX: version=2 type=3 length=117
- RSN: no matching PMKID found
- .........netlinkbuffer.setflags = 16, cmd: 0x8B15
- netlinkbuffer.recvflags = 16
- netlink: 52 extra bytes in the end of netlink message
- ...........netlinkbuffer.setflags = 17, cmd: 0x8B19
- netlinkbuffer.recvflags = 17
- netlink: 52 extra bytes in the end of netlink message
- netlinkbuffer.setflags = 18, cmd: 0x8B15
- netlinkbuffer.recvflags = 18
- netlink: 52 extra bytes in the end of netlink message
- UpdateHalRAMask8188EUsb => mac_id:0, networkType:0x0b, mask:0x000fffff
- ==> rssi_level:0, rate_bitmap:0x000ff015
- .IEEE 802.1X RX: version=2 type=3 length=117
- RSN: no matching PMKID found
- ..........IEEE 802.1X RX: version=2 type=3 length=117
- RSN: no matching PMKID found
- ...UpdateHalRAMask8188EUsb => mac_id:0, networkType:0x0b, mask:0x000fffff
- ==> rssi_level:1, rate_bitmap:0x000f0000
- ......IEEE 802.1X RX: version=2 type=3 length=117
- RSN: no matching PMKID found
- .HEAP newlib: usage=39376632/51766752(76%),addr=0xA6F220
- .........IEEE 802.1X RX: version=2 type=3 length=117
- RSN: no matching PMKID found
- .........IEEE 802.1X RX: version=2 type=3 length=117
- RSN: no matching PMKID found
- ..........IEEE 802.1X RX: version=2 type=3 length=117
- RSN: no matching PMKID found
- ..........IEEE 802.1X RX: version=2 type=3 length=117
- RSN: no matching PMKID found
- .........IEEE 802.1X RX: version=2 type=3 length=117
- RSN: no matching PMKID found
- ..........netlinkbuffer.setflags = 19, cmd: 0x8B15
- netlinkbuffer.recvflags = 19
- netlink: 52 extra bytes in the end of netlink message
- ..
- [WIFIMGR]WifiMgr_Connect() L#746: Timeout! Cannot connect to XFF!
- [WIFIMGR]WifiMgr_Connect() L#780: Error! Cannot connect to WiFi AP!
- [Indoor]WifiCallback connecting fail, please check ssid,password,secmode
- deauth_reason_code(15)
- [WIFIMGR] Connect finish!
- on_wifi_callback(4,15)
- ********** WiFi Callback **********
- State: 4
- Reason: 15
- ********** ************* **********
- ****************** Reset Ethernet ****************
- error [string "------------------------------------
- ..."]:885: attempt to call a nil value (global 'reset_ethernet')
- [WIFIMGR]WiFiMgrProcessThreadFunc() L#1248: Error! nWiFiConnEcode = 010
- netlinkbuffer.setflags = 20, cmd: 0x8B19
- netlinkbuffer.recvflags = 20
- netlink: 52 extra bytes in the end of netlink message
- netlinkbuffer.setflags = 21, cmd: 0x8B15
- netlinkbuffer.recvflags = 21
- netlink: 52 extra bytes in the end of netlink message
- UpdateHalRAMask8188EUsb => mac_id:0, networkType:0x0b, mask:0x000fffff
- ==> rssi_level:0, rate_bitmap:0x000ff015
- IEEE 802.1X RX: version=2 type=3 length=117
- RSN: no matching PMKID found
- IEEE 802.1X RX: version=2 type=3 length=117
- RSN: no matching PMKID found
- UpdateHalRAMask8188EUsb => mac_id:0, networkType:0x0b, mask:0x000fffff
- ==> rssi_level:1, rate_bitmap:0x000f0000
- IEEE 802.1X RX: version=2 type=3 length=117
- RSN: no matching PMKID found
- IEEE 802.1X RX: version=2 type=3 length=117
- RSN: no matching PMKID found
- HEAP newlib: usage=39391640/51766752(76%),addr=0xA6F220
- IEEE 802.1X RX: version=2 type=3 length=117
- RSN: no matching PMKID found
- IEEE 802.1X RX: version=2 type=3 length=117
- RSN: no matching PMKID found
- IEEE 802.1X RX: version=2 type=3 length=117
- RSN: no matching PMKID found
- IEEE 802.1X RX: version=2 type=3 length=117
- RSN: no matching PMKID found
- netlinkbuffer.setflags = 22, cmd: 0x8B15
- netlinkbuffer.recvflags = 22
- netlink: 52 extra bytes in the end of netlink message
- netlinkbuffer.setflags = 23, cmd: 0x8B19
- netlinkbuffer.recvflags = 23
- netlink: 52 extra bytes in the end of netlink message
- netlinkbuffer.setflags = 0, cmd: 0x8B15
- netlinkbuffer.recvflags = 0
复制代码
|
|