I have a similar problem.
I have a laptop OS X Yosemite 10.10.5.
I have used my wifi for months but recently went to the local library and used they WIFI. Back home I couldn't get back to my home wifi. So, did change my preference network. Then , the problem became more serious. My wifi turns off after 20 minutes .
Went to read few tips online . I did:
1-I removed network configuration and preferences files . Put ?library/preferences?System configuration/ (I put the file in the trash , still there because I'm scared to have done something wrong). It didn't help.
2-I went to Advanced then change Networks, ok Apply .It didn't change .
3- I wanted to do renew DHCP lease but I need a ID client and I don't know where to find it .
I have to say that when I use BBC iplayer I can't watch it as long as I want and the Wifi doesn't turn off ??Weird!!!
If someone could help me to solve the issue . I can't keep turning my computer off and on constantly.
Many thanks.