The only Mac that I have had problems with WiFi connecting after long idles was my 2011 iMac. Turns out it was a defective WiFi chipset. They replaced the Airport card and the issue never returned. I have over a dozen different Macs in my household in the last 5 years. That was the only one that experienced the issue and its been resolved.