I had the same problem, check the cpu usage when you lose wifi, mine was spiking, one core at a time. I also noticed that this only happened after making a change to the wifi settings.
This I'm afraid is common (plenty of information on here), I cured my problem by following the Nuclear Reset...