Just as an addition, I should mention that if i turn WiFi off and back on again then the client connects instantly. However, there is nothing i can see to suggest the client is not connected properly in the first place.
Any help would be greatly appreciated.