- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello All, I'm trying to connect CY8PROTO-062-4343W to WPA2-Enterprise AP using "AnyCloud - > Code Snippet 2: Enterprise Security Join and Leave (PEAP)" from Cypress Enterprise Security Library: Overview (infineon.github.io)
FreeRaduis 3.0.17 is used.
But I see following error after success Radius response:
Function whd_wifi_join failed at line 1632 checkres = 33555439
[debg] : 0287 00:00:13.347 whd_wifi join failed : 33555439
Android phones can connect to same AP with a same credentials OK.
What could be the problem?
Should CY8PROTO-062-4343W support WPA2-Enterprise connection?
Full application log attached. Short version:
...
[debg] : 0265 00:00:09.000 Received EAP Success!
[debg] : 0266 00:00:09.005 Free the resources and reset the state
[debg] : 0267 00:00:09.011 Stop PEAP thread
[info] : 0268 00:00:09.015 Stop supplicant_peap_thread
[debg] : 0269 00:00:09.020 Signal abort to Phase2 thread
...
[supplicant_process_event()] : L1033 : Returning succesfully from supplicant_process_event
[info] : 0285 00:00:09.134 [supplicant_thread_main()] : L1057 : In processing loop...
[debg] : 0286 00:00:09.142 Waiting for EAPOL packet
Function whd_wifi_join failed at line 1632 checkres = 33555439
[debg] : 0287 00:00:13.347 whd_wifi join failed : 33555439
[info] : 0288 00:00:13.347 Notify connection status = 2!
[info] : 0289 00:00:13.351 [supplicant_external_event_handler()] : L645 : Event type = [16], Status = [0], Reason = [2], Flags = [0]
[info] : 0290 00:00:13.364 Supplicant received link event
[debg] : 0291 00:00:13.370 wcm mutex unlocked libs/wifi-connection-manager/source/COMPONENT_LWIP/cy_wcm.c 994
[ERR!] : 0292 00:00:13.379 Wi-Fi unable to connect, err=33555439
[info] : 0293 00:00:13.385 Stop supplicant
...
[debg] : 0316 00:00:13.518 Deinitialize TLS context, cert and identity
[debg] : 0317 00:00:13.524 [libs/enterprise-security/source/abstraction/tls/COMPONENT_MBEDTLS/cy_tls_abstraction.c][cy_tls_deinit_root_ca_certificates][558] Freeing root ca certificates
[info] : 0318 00:00:13.545 Exit success!
[ERR!] : 0319 00:00:13.545 ERROR: connect failed with error = [135921671]
Joining an Enterprise Security network failed with error 135921671
Failed to delete Enterprise Security instance with error 135921671
Solved! Go to Solution.
- Labels:
-
Wireless
- Tags:
- enterprise
- wpa2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Can you enable Enterprise Security logs to check where exactly it's failing? The cy_enterprise_security_log has a macro "ENABLE_ENTERPRISE_SECURITY_LOGS"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Can you check your code in debug mode and provide the callstack info? Also provide info on what exactly is this error code and where it's returning from?
Thanks
Aditi
- Tags:
- enterprise
- wpa2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Please find more detailed info on this issue:
Error code was returned from this place (WHD_NOT_KEYED):
platform_cypress_cm4 Debug (KitProg3_MiniProg4) [GDB OpenOCD Debugging]
wifi_app.elf
Thread #2 134319240 (Name: WHD) (Suspended : Container)
Thread #3 134234316 (Name: IDLE) (Suspended : Container)
Thread #4 134332168 (Name: WCM- Worker) (Suspended : Container)
Thread #5 134335912 (Name: supplicant) (Suspended : Container)
Thread #6 134298648 (Name: ADP-App-Start, State: Running) (Suspended : Breakpoint)
whd_wifi_check_join_status() at whd_wifi_api.c:1,401 0x1006c59e
whd_wifi_is_ready_to_transceive() at whd_wifi_api.c:2,977 0x1006cfe6
whd_wifi_join_wait_for_complete() at whd_wifi_api.c:1,341 0x1006d43a
whd_wifi_join() at whd_wifi_api.c:1,622 0x1006e4d0
cy_wcm_connect_ap() at cy_wcm.c:840 0x1006680c
connect_ent() at cy_wifi_abstraction.c:125 0x10026b7a
cy_enterprise_security_join() at cy_enterprise_security_interface.c:94 0x1002698a
ent_sec_join_leave_peap() at adapter_app_init.c:477 0x10024452
adp_application_start() at adapter_app_init.c:281 0x10024504
0x1002a22c
Thread #7 134306704 (Name: tcpip_thread) (Suspended : Container)
Thread #8 134234572 (Name: Tmr Svc) (Suspended : Container)
Thread #9 134361096 (Name: tls_agent) (Suspended : Container)
Thread #10 134416128 (Name: phase2) (Suspended : Container)
openocd
arm-none-eabi-gdb
Error was printed here:
platform_cypress_cm4 Debug (KitProg3_MiniProg4) [GDB OpenOCD Debugging]
wifi_app.elf
Thread #2 134319240 (Name: WHD) (Suspended : Container)
Thread #3 134234316 (Name: IDLE) (Suspended : Container)
Thread #4 134332168 (Name: WCM- Worker) (Suspended : Container)
Thread #5 134335912 (Name: supplicant) (Suspended : Container)
Thread #6 134298648 (Name: ADP-App-Start, State: Running) (Suspended : Step)
cy_wcm_connect_ap() at cy_wcm.c:845 0x1006687a
connect_ent() at cy_wifi_abstraction.c:125 0x10026b7a
cy_enterprise_security_join() at cy_enterprise_security_interface.c:94 0x1002698a
ent_sec_join_leave_peap() at adapter_app_init.c:477 0x10024452
adp_application_start() at adapter_app_init.c:281 0x10024504
0x1002a22c
Thread #7 134306704 (Name: tcpip_thread) (Suspended : Container)
Thread #8 134234572 (Name: Tmr Svc) (Suspended : Container)
Thread #13 134413000 (Name: phase2) (Suspended : Container)
Thread #14 134354544 (Name: tls_agent) (Suspended : Container)
openocd
arm-none-eabi-gdb
Also I see in router (Asus RT N11P B1) log:
Aug 1 00:44:28 kernel: AndesSendCmdMsg: Command type = ed, Extension command type = 27
Aug 1 00:44:28 kernel: BUG: AndesSendCmdMsg is called from invalid context
Aug 1 00:44:30 kernel: MIC Different in pairwise msg 2 of 4-way handshake!
Aug 1 00:44:31 kernel: MIC Different in pairwise msg 2 of 4-way handshake!
Aug 1 00:44:32 kernel: MIC Different in pairwise msg 2 of 4-way handshake!
Aug 1 00:44:33 kernel: MIC Different in pairwise msg 2 of 4-way handshake!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Can you enable Enterprise Security logs to check where exactly it's failing? The cy_enterprise_security_log has a macro "ENABLE_ENTERPRISE_SECURITY_LOGS"