WIFI connection not working

Solution 1:

First of all, why did you run these commands? Anyway, the last one sets up the 11n_disable=1 option for the iwlwifi driver. Presumably this is what is breaking your system so, just open the file /etc/modprobe.d/iwlwifi.conf:

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

Find this line:

options iwlwifi 11n_disable=1

And delete it. Then reboot (not needed but it is the simplest approach). Your WiFi settings should now be back to the way they were before you broke them. I am assuming that you did all this to try and solve another issue and suggest that you might want to post a new question explaining that issue and asking for help about that.