Hello,
After disconnecting from an AP I have to reset the PCBs pools. If I did not do that and I reconnect to the AP and If I tried to bind a socket to a port that I already used in the previous connection, binding fails (port in use).
To reset the PCBs I have to call memp_init() with MEMP_MEM_INIT set to 1, right?
When I call memp_init(), even if I did not set MEMP_MEM_INIT to 1, DHCP fails.
According to wireshark capture, we send DHCP discover packet, the AP replies with the Offer, however we didn't enter dhcp_handle_offer() function.
Do you have any idea what is happening?
--
Amena El-Homsi
Computer & Communication Engineer
Dipl. Eng, M.S.