WiFi dropping out

When using a Mid 2011 MacBook Air operating on Yosemite 10.10.2 the WiFi constantly drops out when I close the lid or when I leave the machine for a short period of time, 5 minutes or so.
I would appreciate if someone might offer an explanation for this annoying occurrence.
This doesn’t happen when using a Mid 2010 MacBook Pro or 2012 iMac, both operating on Yosemite 10.10.2