This card had been working flawlessly for several years on Ubuntu 12.04, 14.04, and recently 16.04 but after a recent update it started dropping connection for no apparent reason. Distance from router is about 20 feet through a couple of walls and nothing environmentally has changed. I ran the wireless script from @chili555 answer here.
this is the resulting pastebin report.
I resolved this problem by turning off power management on my card by editing the wifi power management configuration with the command
sudo gedit /etc/NetworkManager/conf.d/default-wifi-powersave-on.conf
The file contained 2 lines:
I thought this was surprising as I knew I had disabled power management back in the 12.04 days until I realized I had done a fresh install of 16.04 rather than an upgrade on this particular system when I went from 14.04 to 16.04
I changed it to:
After a reboot I had no further problems. Wifi stayed connected reliably.