2640B's are pretty robust.so a few questions..
1. which firmware are you running?
2. what is happening when your devices fail to connect? e.g. stuck accquiring IP address, or what ??
3. check your wifi settings in the router, especially encryption type and idle timeout.
4. are you seeing the SSID ok ??