A similar problem may also exist with the Connection Server when using Bluetooth: we have a reproducible case (seen on the Nokia 9500, and possibly other devices) where after about 45 minutes of unsuccessful connection attempts to a BT serial port device (ca. 12 connection attempts/minute) a KErrNoMemory is returned by the Socket Server.
This happens also with other access points, not only with WLAN.