NAT/PAT Zephyr stack + CYW43439 WiFi Offload Filters Unsolicited UDP/TCP Packets #103619
-
|
Hardware: Alif E7 DK board with Murata 1YN module (CYW43439) Software: Zephyr RTOS with AIROC WiFi driver (WHD) Configuration: Zephyr 4.1 ( fork alif ) CONFIG_WIFI_OFFLOAD=y LAN side: Ethernet interface (169.254.x.x) Outbound packets (LAN → WAN) work correctly - we can see them forwarded via WiFi The only way to receive UDP/TCP packets is to have an active socket bound to the corresponding port on the host - which defeats the purpose of NAT routing. Question for Infineon/zephyr : Workaround: Implementation code : https://github.com/pa-cotte/alif-sample-app/tree/wifi-1YN |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Beta Was this translation helpful? Give feedback.
-
|
Update: Resolved I managed to get full NAT/PAT working (ICMP, UDP/DNS, TCP/HTTP/HTTPS, concurrent connections) on the Alif E7 DK + CYW43439. The issues turned out to be: Bugs in my AIROC WiFi driver usage — the scan callback had null pointer dereferences, and I was using whd_wifi_join() instead of whd_wifi_join_specific() which caused unreliable connections. Also needed to pass the target SSID to whd_wifi_scan() for directed scanning. code : https://github.com/pa-cotte/alif-sample-app/tree/network-routing |
Beta Was this translation helpful? Give feedback.
Update: Resolved
I managed to get full NAT/PAT working (ICMP, UDP/DNS, TCP/HTTP/HTTPS, concurrent connections) on the Alif E7 DK + CYW43439.
The issues turned out to be:
Bugs in my AIROC WiFi driver usage — the scan callback had null pointer dereferences, and I was using whd_wifi_join() instead of whd_wifi_join_specific() which caused unreliable connections. Also needed to pass the target SSID to whd_wifi_scan() for directed scanning.
Migration to WHD v4.2.1 (new hal_infineon) — the whd_wifi_check_join_status() function doesn't handle the JOIN_NO_NETWORKS | JOIN_SECURITY_COMPLETE bitmask combination, causing spurious WHD_INVALID_JOIN_STATUS errors.
Buffer sizing — CONFIG_NET_BUF_DATA_SIZE…