Wifi has trouble connecting/constantly disconnects in ubuntu

Solution 1:

enter image description hereAssuming you named the file "/etc/modprobe.d/intel_11n_disable.conf" Then do:

sudo rm /etc/modprobe.d/intel_11n_disable.conf

Then:

echo "options iwlwifi 11n_disable=1" | sudo tee /etc/modprobe.d/iwlwifi.conf
sudo modprobe -rfv iwldvm
sudo modprobe -rfv iwlwifi
sudo modprobe -v iwlwifi

Edit: Please do

gksudo gedit /etc/modprobe.d/iwlwifi.conf

Make this line:

options iwlwifi 11n_disable=1

Look like this:

options iwlwifi 11n_disable=1 swcrypto=1

Proofread carefully, save and close gedit.

Then do:

echo -e '#!/bin/bash\n/sbin/iwconfig wlan0 power off' | sudo tee -a /etc/pm/power.d/wireless

Reboot

Edit:

Go to network manager settings in the top right corner of the screen and set IPV6 to ignore then save and close settings and reboot.

Also it is not a good situation that you have so many networks in range of your wireless and many of them have the same name and all have pretty weak signal strength.

Edit:

You can manually set the mac address of the network you want to connect to and see if that helps. Find the name of the network that you want to connect to by running:

sudo iwlist scan

then click on network manager in the top right corner of the screen>edit connections>click on wireless connection then enter the mac address, click save and reboot.