For some reason, my laptop's wireless connection randomly disconnects from time to time. It may suddenly disconnect when I'm editing a Google Docs file, when I'm cleaning my files or when I've walked away and the laptop is idle; it just seems to randomly disconnect all the time. This can greatly vary from a minute or so after booting to a few hours later. Rebooting usually fixes the problem and connects me back. I'm running Lubuntu 14.10.
As soon as it disconnects, the network indicator doesn't change. Clicking on it still brings up a list of all the nearby networks. If I ask it to disconnect from the network, the indicator icon will change to a "Wifi not connected" icon, however it will still display the networks nearby. If I click to reconnect to my Wi-fi network, it will not reconnect, and the indicator icon will not change. After a while it will change to saying "Wireless is disabled" and won't display the nearby networks. It will stay like this until I reboot. I haven't tested to see if it is still searching for networks and displaying them or if it still remembers the names and displays them. Also, as soon as it disconnects, I'm not sure if the actual OS realises that it has disconnected or whether it is just the indicator which doesn't change.
This doens't occur when I'm actively using the internet. (e.g. Downloading a file, streaming a video)
I originally thought this was due to the new wireless modem I bought, as my phone (Nexus 5) also experienceds a similar problem. (The Wi-Fi would disconnect without showing an exclamation mark symbol (the ! indicates there's a wifi connection but no internet). I can turn wifi off and connect to cellular data, then re-enable wifi and it'll be fine. This only happens when my phone is connected to the 2.4Ghz network though) I then realised it was only my two devices which experience this problem, and maybe the two problems are not linked. I also think this because when I do
sudo iwlist scan after it disconnects, it says:
wlan0 Interface doesn't support scanning : Network is down
I have put the full output of
sudo iwlist scan and
iwconfig on Pastebin if this helps.
Here's the syslog before I disabled the N protocol.
I disabled the N protocol as @shaddy suggested but the Wi-Fi still disconnected. I put some of the contents of
Disabling 802.11n on my laptop and on the router didn't help at all.