Hostapd Dropout
Solution 1:
Run
sudo iwconfig
and turn off 'Power Management' for your card. Reboot and see if it's fine now. Reboot again and see if it's fine now. If not, we'd have to add it to theStartup Applications
.-
A friend of mine faced the same issue. The default Atheros drivers were to be blamed. Your TX-log fills up and that leads to authentication failure.
In 'Software Sources'/'Software & Updates', enable 'Backports' under the 'Updates' tab.
Then update the system.
Also:
sudo apt-get install linux-backports-modules-cw-3.6-precise-generic
Reboot & check.
If it still fails, check here: Solved: Ubuntu 12.04 Wifi Drivers