Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wifi connect failed #564

Open
3 tasks done
helpfile opened this issue Jan 10, 2025 · 4 comments
Open
3 tasks done

wifi connect failed #564

helpfile opened this issue Jan 10, 2025 · 4 comments

Comments

@helpfile
Copy link

Checklist

  • Checked the issue tracker for similar issues to ensure this is not a duplicate
  • Read the documentation to confirm the issue is not addressed there and your configuration is set correctly
  • Tested with the latest version to ensure the issue hasn't been fixed

How often does this bug occurs?

always

Expected behavior

wifi connect ok

Actual behavior (suspected bug)

The cpu used is arm 64-bit, the kernel version is linux-5.4, esp32 platform, sdio interface, using esp_hosted_ng, esp32 firmware (ESP-Hosted-NG_release_v1.0.2.tgz --> esp32 --> sdio_only). Currently, arm can scan and obtain the AP information, but cannot connect to the specified AP.

Error logs or terminal output

<6>[    9.479304] esp32_sdio: esp_init: esp_init start...
<6>[    9.680460] esp32_sdio: esp_init_interface_layer: sdio_register_driver 
<6>[    9.680625] esp32_sdio: esp_probe: esp_probe
<6>[    9.680642] esp32_sdio: esp_probe: ESP network device detected
<6>[   11.043966] esp32_sdio: init_sdio_func: Register IRQ: esp_handle_isr
<6>[   11.064235] esp32_sdio: process_esp_bootup_event: Received ESP bootup event
<6>[   11.064274] esp32_sdio: esp_validate_chipset: Chipset=ESP32 ID=00 detected over SDIO
<7>[   11.064278] esp32_sdio: esp_probe: ESP SDIO probe completed
<4>[   11.064294] esp32_sdio: process_event_esp_bootup: Unsupported tag=4 in bootup event
<3>[   11.064311] esp32_sdio: process_fw_data: Length(7) not matching to firmware data size(12)
<6>[   11.064513] esp32_sdio: esp_init: esp_init end!
<6>[   11.066402] esp32_sdio: esp_reg_notifier: Driver init is ongoing
<7>[   11.066641] esp32_sdio: esp_cfg80211_add_iface: Updated priv[0] to ffffff80198c07c0
<7>[   11.072494] esp32_sdio: esp_cmd_work: Processing Command [0x1]
<3>[   11.075477] esp32_sdio: tx_process: state[1] not ready
<7>[   11.082748] esp32_sdio: wait_and_decode_cmd_resp: Resp for command [0x1]
<7>[   11.088427] esp32_sdio: esp_cmd_work: Processing Command [0x3]
<7>[   11.092614] esp32_sdio: wait_and_decode_cmd_resp: Resp for command [0x3]
<7>[   11.093034] esp32_sdio: esp_cfg80211_get_tx_power: 
<7>[   11.095482] esp32_sdio: esp_cmd_work: Processing Command [0xF]
<7>[   11.101437] esp32_sdio: esp_cmd_work: Busy in another cmd execution
<3>[   16.352439] esp32_sdio: wait_and_decode_cmd_resp: Command[0xF] timed out
<3>[   16.352471] esp32_sdio: cmd_get_tx_power: wait_and_decode_cmd_resp(priv, cmd_node) failure, ret: -22
<6>[   16.560439] esp32_sdio: init_bt: ESP Bluetooth init
<6>[   16.560734] esp32_sdio: print_capabilities: Capabilities: 0x1d. Features supported are:
<6>[   16.560769] esp32_sdio: print_capabilities:        * WLAN on SDIO
<6>[   16.560782] esp32_sdio: print_capabilities:        * BT/BLE
<6>[   16.560793] esp32_sdio: print_capabilities:          - HCI over SDIO
<6>[   16.560805] esp32_sdio: print_capabilities:          - BT/BLE dual mode
<6>[   16.561000] bt_tx: (____ptrval____): 03 0c 00                                         ...
<6>[   16.567696] bt_tx: (____ptrval____): 03 10 00                                         ...
<6>[   16.572605] bt_tx: (____ptrval____): 01 10 00                                         ...
<6>[   16.577664] bt_tx: (____ptrval____): 09 10 00                                         ...
<6>[   16.582661] bt_tx: (____ptrval____): 05 10 00                                         ...
<6>[   16.587572] bt_tx: (____ptrval____): 23 0c 00                                         #..
<6>[   16.592747] bt_tx: (____ptrval____): 14 0c 00                                         ...
<6>[   16.597670] bt_tx: (____ptrval____): 25 0c 00                                         %..
<6>[   16.602566] bt_tx: (____ptrval____): 38 0c 00                                         8..
<6>[   16.607578] bt_tx: (____ptrval____): 39 0c 00                                         9..
<6>[   16.612563] bt_tx: (____ptrval____): 05 0c 01 00                                      ....
<6>[   16.617559] bt_tx: (____ptrval____): 16 0c 02 00 7d                                   ....}
<6>[   16.622591] bt_tx: (____ptrval____): 02 20 00                                         . .
<6>[   16.627550] bt_tx: (____ptrval____): 03 20 00                                         . .
<6>[   16.632568] bt_tx: (____ptrval____): 1c 20 00                                         . .
<6>[   16.637586] bt_tx: (____ptrval____): 02 10 00                                         ...
<6>[   16.642590] bt_tx: (____ptrval____): 52 0c f1 00 00 00 00 00 00 00 00 00 00 00 00 00  R...............
<6>[   16.642620] bt_tx: (____ptrval____): 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
<6>[   16.642637] bt_tx: (____ptrval____): 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
<6>[   16.642654] bt_tx: (____ptrval____): 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
<6>[   16.642671] bt_tx: (____ptrval____): 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
<6>[   16.642687] bt_tx: (____ptrval____): 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
<6>[   16.642703] bt_tx: (____ptrval____): 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
<6>[   16.642720] bt_tx: (____ptrval____): 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
<6>[   16.642737] bt_tx: (____ptrval____): 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
<6>[   16.642753] bt_tx: (____ptrval____): 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
<6>[   16.642770] bt_tx: (____ptrval____): 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
<6>[   16.642786] bt_tx: (____ptrval____): 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
<6>[   16.642803] bt_tx: (____ptrval____): 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
<6>[   16.642819] bt_tx: (____ptrval____): 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
<6>[   16.642835] bt_tx: (____ptrval____): 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
<6>[   16.642852] bt_tx: (____ptrval____): 00 00 00 00                                      ....
<6>[   16.647558] bt_tx: (____ptrval____): 45 0c 01 02                                      E...
<6>[   16.652594] bt_tx: (____ptrval____): 58 0c 00                                         X..
<6>[   16.657547] bt_tx: (____ptrval____): 04 10 01 01                                      ....
<6>[   16.662617] bt_tx: (____ptrval____): 01 0c 08 ff ff fb ff 07 f8 bf 3d                 ..........=
<6>[   16.667581] bt_tx: (____ptrval____): 0d 0c 07 00 00 00 00 00 00 01                    ..........
<6>[   16.672565] bt_tx: (____ptrval____): 0f 08 02 05 00                                   .....
<6>[   16.677557] bt_tx: (____ptrval____): 1b 0c 00                                         ...
<6>[   16.682594] bt_tx: (____ptrval____): 46 0c 00                                         F..
<6>[   16.687550] bt_tx: (____ptrval____): 01 20 08 ff 05 00 00 00 00 00 00                 . .........
<6>[   16.692585] bt_tx: (____ptrval____): 07 20 00                                         . .
<6>[   16.697589] bt_tx: (____ptrval____): 0f 20 00                                         . .
<6>[   16.702560] bt_tx: (____ptrval____): 10 20 00                                         . .
<6>[   16.707555] bt_tx: (____ptrval____): 2a 20 00                                         * .
<6>[   16.712586] bt_tx: (____ptrval____): 29 20 00                                         ) .
<6>[   16.717571] bt_tx: (____ptrval____): 2f 20 00                                         / .
<6>[   16.722571] bt_tx: (____ptrval____): 23 20 00                                         # .
<6>[   16.727581] bt_tx: (____ptrval____): 04 10 01 02                                      ....
<6>[   16.732591] bt_tx: (____ptrval____): 12 0c 07 00 00 00 00 00 00 01                    ..........
<6>[   16.737772] bt_tx: (____ptrval____): 63 0c 08 00 c0 bf 00 00 00 00 00                 c..........
<6>[   16.742594] bt_tx: (____ptrval____): 0b 10 00                                         ...
<6>[   16.747550] bt_tx: (____ptrval____): 77 0c 00                                         w..
<6>[   16.752566] bt_tx: (____ptrval____): 24 20 04 fb 00 48 08                             $ ...H.
<7>[   33.539125] esp32_sdio: update_mac_filter: Port is not open yet, skipping mac filter update
<7>[   33.539250] esp32_sdio: update_mac_filter: Port is not open yet, skipping mac filter update
<7>[   33.539367] esp32_sdio: update_mac_filter: Port is not open yet, skipping mac filter update
<7>[   33.541476] esp32_sdio: esp_hard_start_xmit: Port not yet open
<7>[   34.144484] esp32_sdio: esp_hard_start_xmit: Port not yet open
<7>[   34.528449] esp32_sdio: esp_hard_start_xmit: Port not yet open
<7>[   35.168513] esp32_sdio: esp_hard_start_xmit: Port not yet open
<7>[   35.168547] esp32_sdio: esp_hard_start_xmit: Port not yet open
<7>[   35.368525] esp32_sdio: esp_cfg80211_scan: 
<7>[   35.377429] esp32_sdio: esp_cmd_work: Processing Command [0x4]
<7>[   35.385023] esp32_sdio: wait_and_decode_cmd_resp: Resp for command [0x4]
<7>[   35.390433] esp32_sdio: esp_cmd_work: No more command in queue.
<7>[   35.552462] esp32_sdio: esp_hard_start_xmit: Port not yet open
<7>[   39.200463] esp32_sdio: esp_hard_start_xmit: Port not yet open
<7>[   47.072462] esp32_sdio: esp_hard_start_xmit: Port not yet open
<5>[   52.894516] random: wpa_supplicant: uninitialized urandom read (4096 bytes read)
<7>[   52.939897] esp32_sdio: esp_cfg80211_get_tx_power: 
<7>[   52.945429] esp32_sdio: esp_cmd_work: Processing Command [0xF]
<3>[   58.336438] esp32_sdio: wait_and_decode_cmd_resp: Command[0xF] timed out
<3>[   58.336470] esp32_sdio: cmd_get_tx_power: wait_and_decode_cmd_resp(priv, cmd_node) failure, ret: -22
<7>[   58.336640] esp32_sdio: esp_cfg80211_get_tx_power: 
<7>[   58.342428] esp32_sdio: esp_cmd_work: Processing Command [0xF]
<7>[   62.432460] esp32_sdio: esp_hard_start_xmit: Port not yet open
<3>[   63.456439] esp32_sdio: wait_and_decode_cmd_resp: Command[0xF] timed out
<3>[   63.456470] esp32_sdio: cmd_get_tx_power: wait_and_decode_cmd_resp(priv, cmd_node) failure, ret: -22
<7>[   63.456920] esp32_sdio: esp_cfg80211_get_tx_power: 
<7>[   63.462432] esp32_sdio: esp_cmd_work: Processing Command [0xF]
<3>[   68.576438] esp32_sdio: wait_and_decode_cmd_resp: Command[0xF] timed out
<3>[   68.576470] esp32_sdio: cmd_get_tx_power: wait_and_decode_cmd_resp(priv, cmd_node) failure, ret: -22
<7>[   68.576636] esp32_sdio: esp_cfg80211_get_tx_power: 
<7>[   68.582430] esp32_sdio: esp_cmd_work: Processing Command [0xF]
<3>[   73.696437] esp32_sdio: wait_and_decode_cmd_resp: Command[0xF] timed out
<3>[   73.696469] esp32_sdio: cmd_get_tx_power: wait_and_decode_cmd_resp(priv, cmd_node) failure, ret: -22
<7>[   73.698256] esp32_sdio: esp_cfg80211_get_tx_power: 
<7>[   73.703430] esp32_sdio: esp_cmd_work: Processing Command [0xF]
<3>[   78.816435] esp32_sdio: wait_and_decode_cmd_resp: Command[0xF] timed out
<3>[   78.816468] esp32_sdio: cmd_get_tx_power: wait_and_decode_cmd_resp(priv, cmd_node) failure, ret: -22
<5>[   78.952432] random: crng init done
<5>[   78.952464] random: 1 urandom warning(s) missed due to ratelimiting
<7>[   78.962245] esp32_sdio: esp_cfg80211_scan: 
<7>[   78.965445] esp32_sdio: esp_cmd_work: Processing Command [0x4]
<7>[   78.972222] esp32_sdio: wait_and_decode_cmd_resp: Resp for command [0x4]
<7>[   78.978431] esp32_sdio: esp_cmd_work: No more command in queue.
<7>[   80.668591] esp32_sdio: esp_cfg80211_authenticate: 
<6>[   80.668611] esp32_sdio: cmd_auth_request: Authentication request: 90:76:9f:c8:ed:a8 6 0 0 0
<7>[   80.674428] esp32_sdio: esp_cmd_work: Processing Command [0xB]
<7>[   80.807122] esp32_sdio: wait_and_decode_cmd_resp: Resp for command [0xB]
<7>[   80.812434] esp32_sdio: esp_cmd_work: No more command in queue.
<6>[   80.819620] Auth frame: 00000000d24be62f: b0 00 00 00 cc 7b 5c de 5e 48 90 76 9f c8 ed a8  .....{\.^H.v....
<6>[   80.819652] Auth frame: 000000003977879a: 90 76 9f c8 ed a8 00 00 00 00 02 00 00 00        .v............
<7>[   80.819954] esp32_sdio: esp_cfg80211_associate: 
<6>[   80.819975] esp32_sdio: cmd_assoc_request: Association request: 90:76:9f:c8:ed:a8 6 42
<7>[   80.825428] esp32_sdio: esp_cmd_work: Processing Command [0xC]
<7>[   80.832126] esp32_sdio: wait_and_decode_cmd_resp: Resp for command [0xC]
<7>[   80.837434] esp32_sdio: esp_cmd_work: No more command in queue.
<6>[   80.849707] esp32_sdio: process_assoc_event: Connection status: 0
<6>[   80.849856] esp32_sdio: esp_reg_notifier: cfg80211 regulatory domain callback for CN, current=
<7>[   80.855444] esp32_sdio: esp_cmd_work: Processing Command [0x12]
<7>[   80.877147] esp32_sdio: process_rx_packet: Rx PACKET_TYPE_EAPOL!!!!
<4>[   80.877162] NOHZ: local_softirq_pending 08
<7>[   81.874633] esp32_sdio: process_rx_packet: Rx PACKET_TYPE_EAPOL!!!!
<4>[   81.874648] NOHZ: local_softirq_pending 08
<7>[   82.874628] esp32_sdio: process_rx_packet: Rx PACKET_TYPE_EAPOL!!!!
<4>[   82.874643] NOHZ: local_softirq_pending 08
<7>[   83.874636] esp32_sdio: process_rx_packet: Rx PACKET_TYPE_EAPOL!!!!
<4>[   83.874651] NOHZ: local_softirq_pending 08
<3>[   85.984438] esp32_sdio: wait_and_decode_cmd_resp: Command[0x12] timed out
<3>[   85.984465] esp32_sdio: cmd_set_reg_domain: wait_and_decode_cmd_resp(priv, cmd_node) failure, ret: -22
<7>[   85.985067] esp32_sdio: esp_cfg80211_get_tx_power: 
<7>[   85.990430] esp32_sdio: esp_cmd_work: Processing Command [0xF]
<6>[   86.889615] esp32_sdio: process_disconnect_event: Disconnect event for ssid SZEST_AP [reason:15]
<3>[   91.104462] esp32_sdio: wait_and_decode_cmd_resp: Command[0xF] timed out
<3>[   91.104494] esp32_sdio: cmd_get_tx_power: wait_and_decode_cmd_resp(priv, cmd_node) failure, ret: -22
<6>[   91.104567] esp32_sdio: esp_reg_notifier: cfg80211 regulatory domain callback for 00, current=CN
<7>[   91.110438] esp32_sdio: esp_cmd_work: Processing Command [0x12]
<7>[   93.664461] esp32_sdio: esp_hard_start_xmit: Port not yet open
<3>[   96.224462] esp32_sdio: wait_and_decode_cmd_resp: Command[0x12] timed out
<3>[   96.224493] esp32_sdio: cmd_set_reg_domain: wait_and_decode_cmd_resp(priv, cmd_node) failure, ret: -22
<7>[   96.225375] esp32_sdio: esp_cfg80211_get_tx_power: 
<7>[   96.234428] esp32_sdio: esp_cmd_work: Processing Command [0xF]
<3>[  101.344457] esp32_sdio: wait_and_decode_cmd_resp: Command[0xF] timed out
<3>[  101.344489] esp32_sdio: cmd_get_tx_power: wait_and_decode_cmd_resp(priv, cmd_node) failure, ret: -22
<7>[  101.345173] esp32_sdio: esp_cfg80211_get_tx_power: 
<7>[  101.350433] esp32_sdio: esp_cmd_work: Processing Command [0xF]
<3>[  106.464454] esp32_sdio: wait_and_decode_cmd_resp: Command[0xF] timed out
<3>[  106.464487] esp32_sdio: cmd_get_tx_power: wait_and_decode_cmd_resp(priv, cmd_node) failure, ret: -22
<7>[  106.465213] esp32_sdio: esp_cfg80211_scan: 
<7>[  106.470429] esp32_sdio: esp_cmd_work: Processing Command [0x4]
<7>[  106.476991] esp32_sdio: wait_and_decode_cmd_resp: Resp for command [0x4]
<7>[  106.482438] esp32_sdio: esp_cmd_work: No more command in queue.
<7>[  108.170915] esp32_sdio: esp_cfg80211_authenticate: 
<6>[  108.170936] esp32_sdio: cmd_auth_request: Authentication request: 90:76:9f:c8:ed:a8 6 0 0 0
<7>[  108.179428] esp32_sdio: esp_cmd_work: Processing Command [0xB]
<7>[  108.309466] esp32_sdio: wait_and_decode_cmd_resp: Resp for command [0xB]
<7>[  108.315430] esp32_sdio: esp_cmd_work: No more command in queue.
<6>[  108.326922] Auth frame: 00000000103c0cda: b0 00 00 00 cc 7b 5c de 5e 48 90 76 9f c8 ed a8  .....{\.^H.v....
<6>[  108.326955] Auth frame: 00000000878da4d6: 90 76 9f c8 ed a8 00 00 00 00 02 00 00 00        .v............
<7>[  108.327257] esp32_sdio: esp_cfg80211_associate: 
<6>[  108.327277] esp32_sdio: cmd_assoc_request: Association request: 90:76:9f:c8:ed:a8 6 42
<7>[  108.332428] esp32_sdio: esp_cmd_work: Processing Command [0xC]
<7>[  108.339439] esp32_sdio: wait_and_decode_cmd_resp: Resp for command [0xC]
<7>[  108.345431] esp32_sdio: esp_cmd_work: No more command in queue.
<6>[  108.357019] esp32_sdio: process_assoc_event: Connection status: 0
<6>[  108.357147] esp32_sdio: esp_reg_notifier: cfg80211 regulatory domain callback for CN, current=00
<7>[  108.362445] esp32_sdio: esp_cmd_work: Processing Command [0x12]
<7>[  108.376949] esp32_sdio: process_rx_packet: Rx PACKET_TYPE_EAPOL!!!!
<4>[  108.376965] NOHZ: local_softirq_pending 08
<7>[  109.376941] esp32_sdio: process_rx_packet: Rx PACKET_TYPE_EAPOL!!!!
<4>[  109.376957] NOHZ: local_softirq_pending 08
<7>[  110.376926] esp32_sdio: process_rx_packet: Rx PACKET_TYPE_EAPOL!!!!
<4>[  110.376942] NOHZ: local_softirq_pending 08
<7>[  111.374432] esp32_sdio: process_rx_packet: Rx PACKET_TYPE_EAPOL!!!!
<4>[  111.374449] NOHZ: local_softirq_pending 08
<3>[  113.632438] esp32_sdio: wait_and_decode_cmd_resp: Command[0x12] timed out
<3>[  113.632468] esp32_sdio: cmd_set_reg_domain: wait_and_decode_cmd_resp(priv, cmd_node) failure, ret: -22
<7>[  113.633115] esp32_sdio: esp_cfg80211_get_tx_power: 
<7>[  113.638440] esp32_sdio: esp_cmd_work: Processing Command [0xF]
<6>[  114.389437] esp32_sdio: process_disconnect_event: Disconnect event for ssid SZEST_AP [reason:15]
<3>[  118.752447] esp32_sdio: wait_and_decode_cmd_resp: Command[0xF] timed out
<3>[  118.752480] esp32_sdio: cmd_get_tx_power: wait_and_decode_cmd_resp(priv, cmd_node) failure, ret: -22
<7>[  118.753497] esp32_sdio: esp_cfg80211_get_tx_power: 
<7>[  118.762431] esp32_sdio: esp_cmd_work: Processing Command [0xF]
<3>[  123.872470] esp32_sdio: wait_and_decode_cmd_resp: Command[0xF] timed out
<3>[  123.872503] esp32_sdio: cmd_get_tx_power: wait_and_decode_cmd_resp(priv, cmd_node) failure, ret: -22
<6>[  123.872868] esp32_sdio: esp_reg_notifier: cfg80211 regulatory domain callback for 00, current=CN
<7>[  123.878432] esp32_sdio: esp_cmd_work: Processing Command [0x12]
<3>[  128.992442] esp32_sdio: wait_and_decode_cmd_resp: Command[0x12] timed out
<3>[  128.992474] esp32_sdio: cmd_set_reg_domain: wait_and_decode_cmd_resp(priv, cmd_node) failure, ret: -22
<7>[  128.992857] esp32_sdio: esp_cfg80211_get_tx_power: 
<7>[  128.998432] esp32_sdio: esp_cmd_work: Processing Command [0xF]
<3>[  134.112455] esp32_sdio: wait_and_decode_cmd_resp: Command[0xF] timed out
<3>[  134.112487] esp32_sdio: cmd_get_tx_power: wait_and_decode_cmd_resp(priv, cmd_node) failure, ret: -22
<7>[  134.113249] esp32_sdio: esp_cfg80211_scan: 
<7>[  134.118432] esp32_sdio: esp_cmd_work: Processing Command [0x4]
<7>[  134.124298] esp32_sdio: wait_and_decode_cmd_resp: Resp for command [0x4]
<7>[  134.129462] esp32_sdio: esp_cmd_work: No more command in queue.
<7>[  135.820655] esp32_sdio: esp_cfg80211_authenticate: 
<6>[  135.820678] esp32_sdio: cmd_auth_request: Authentication request: 90:76:9f:c8:ed:a8 6 0 0 0
<7>[  135.827432] esp32_sdio: esp_cmd_work: Processing Command [0xB]
<7>[  135.956716] esp32_sdio: wait_and_decode_cmd_resp: Resp for command [0xB]
<7>[  135.962430] esp32_sdio: esp_cmd_work: No more command in queue.
<6>[  135.979231] Auth frame: 000000007d52dbc5: b0 00 00 00 cc 7b 5c de 5e 48 90 76 9f c8 ed a8  .....{\.^H.v....
<6>[  135.979265] Auth frame: 00000000dfd1d38d: 90 76 9f c8 ed a8 00 00 00 00 02 00 00 00        .v............
<7>[  135.979633] esp32_sdio: esp_cfg80211_associate: 
<6>[  135.979654] esp32_sdio: cmd_assoc_request: Association request: 90:76:9f:c8:ed:a8 6 42
<7>[  135.985431] esp32_sdio: esp_cmd_work: Processing Command [0xC]
<7>[  135.991738] esp32_sdio: wait_and_decode_cmd_resp: Resp for command [0xC]
<7>[  135.997433] esp32_sdio: esp_cmd_work: No more command in queue.
<6>[  136.014312] esp32_sdio: process_assoc_event: Connection status: 0
<6>[  136.014486] esp32_sdio: esp_reg_notifier: cfg80211 regulatory domain callback for CN, current=00
<7>[  136.020436] esp32_sdio: esp_cmd_work: Processing Command [0x12]
<7>[  136.024435] esp32_sdio: process_rx_packet: Rx PACKET_TYPE_EAPOL!!!!
<4>[  136.024453] NOHZ: local_softirq_pending 08
<7>[  137.026753] esp32_sdio: process_rx_packet: Rx PACKET_TYPE_EAPOL!!!!
<4>[  137.026769] NOHZ: local_softirq_pending 08
<7>[  138.026737] esp32_sdio: process_rx_packet: Rx PACKET_TYPE_EAPOL!!!!
<7>[  139.024216] esp32_sdio: process_rx_packet: Rx PACKET_TYPE_EAPOL!!!!
<3>[  141.280441] esp32_sdio: wait_and_decode_cmd_resp: Command[0x12] timed out
<3>[  141.280472] esp32_sdio: cmd_set_reg_domain: wait_and_decode_cmd_resp(priv, cmd_node) failure, ret: -22
<7>[  141.281095] esp32_sdio: esp_cfg80211_get_tx_power: 
<7>[  141.286432] esp32_sdio: esp_cmd_work: Processing Command [0xF]
<6>[  142.039222] esp32_sdio: process_disconnect_event: Disconnect event for ssid SZEST_AP [reason:15]
<3>[  146.400437] esp32_sdio: wait_and_decode_cmd_resp: Command[0xF] timed out
<3>[  146.400471] esp32_sdio: cmd_get_tx_power: wait_and_decode_cmd_resp(priv, cmd_node) failure, ret: -22
<6>[  146.400552] esp32_sdio: esp_reg_notifier: cfg80211 regulatory domain callback for 00, current=CN
<7>[  146.406431] esp32_sdio: esp_cmd_work: Processing Command [0x12]
<3>[  151.520443] esp32_sdio: wait_and_decode_cmd_resp: Command[0x12] timed out
<3>[  151.520475] esp32_sdio: cmd_set_reg_domain: wait_and_decode_cmd_resp(priv, cmd_node) failure, ret: -22
<7>[  151.521371] esp32_sdio: esp_cfg80211_get_tx_power: 
<7>[  151.530431] esp32_sdio: esp_cmd_work: Processing Command [0xF]

Steps to reproduce the behavior

wpa_supplicant -B -iwlan0 -Dnl80211 -c /tmp/wpa_supplicant.conf

Project release version

ESP-Hosted-NG Release 1.0.2

System architecture

ARM 64-bit (Apple M1/M2, Raspberry Pi 4/5)

Operating system

Linux

Operating system version

linux 5.4

Shell

sh

Additional context

No response

@mantriyogesh
Copy link
Collaborator

Hello @helpfile ,

Have you used exact same commit at slave and host?

Also can you get us camera photo of your sdio setup?

@helpfile
Copy link
Author

hi mantriyogesh,
esp32 fw download ptah: https://github.com/espressif/esp-hosted/releases/tag/release/ng-v1.0.2
host driver download path: https://github.com/espressif/esp-hosted.git
in host driver file(src/include/esp_fw_version.h):
#define PROJECT_NAME "NG"
#define PROJECT_VERSION_MAJOR_1 1
#define PROJECT_VERSION_MAJOR_2 0
#define PROJECT_VERSION_MINOR 3
#define PROJECT_REVISION_PATCH_1 0
#define PROJECT_REVISION_PATCH_2 3

error log: <3>[ 11.064311] esp32_sdio: process_fw_data: Length(7) not matching to firmware data size(12)
static int process_fw_data(struct fw_data *fw_p, int tag_len)
{
if (tag_len != sizeof(struct fw_data)) {
esp_err("Length(%d) not matching to firmware data size(%d)\n",tag_len,sizeof(struct fw_data)); // changed by helpfile
//return -1; // changed by helpfile
return 0; // changed by helpfile
}

esp_info("ESP chipset's last reset cause:\n");
print_reset_reason(le32_to_cpu(fw_p->last_reset_reason));

return check_esp_version(&fw_p->version);

}
From the log information above, it can be seen that the esp32 firmware and my driver do not seem to match, because the data replied by esp32 and the data structure size on the host are different.

@mantriyogesh
Copy link
Collaborator

Can you please try to flash the latest master on ESP and use latest master host driver and try again?

@mantriyogesh
Copy link
Collaborator

The above way is much recommended. If you just wish to evaluate first, please try matching code from 1.0.2 commit at 29208b6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants