Do you device get IP address from your DHCP server ?
Could you ping your server if device's IP got ?
Could you saw the TCP 3 way handshake between your device and server via wireshark capture ?
Yes. The device gets the IP from the access point when it associates with the AP. so when i perform the connect() it already has an IP.
Do you mean ping my device from the machine that is hosting the server? I haven't tried that.
No. So this is what is going wrong. I never see the 3-way handshake on wireshark even after doing an lwip_connect() from my device. I have verified that my wifi driver sends out data to the wifi chip over the SDIO interface. But the chip doesn't send out the data for some reason.
You could ping server or Gateway from device, which you could control !
If you don't saw the TCP three way handshake , The network stack is not work or not configure well !
i think it looks like an ARP issue. The Broadcom chip seems to be sending ARP requests, but the server machine does not respond, hence it's never able to start the TCP 3-way handshake
So there are only broadcast packet work now (DHCP Client)!
The ARP request send by network stack not WiFi, The WiFi CHIP only handle L2 packet and event!