Please copy and paste for accuracy one line at a time:
It should try to connect now, it is still best to change the other settings as well.
echo "options iwlwifi 11n_disable=1" | sudo tee /etc/modprobe.d/iwlwifi.conf
sudo modprobe -rfv iwlwifi
sudo modprobe -v iwlwifi
I recommend that you go into your router and change the encryption to just wpa2 if you have that option it works best with ubuntu.
echo -e '#!/bin/bash\n/sbin/iwconfig wlan0 power off' | sudo tee -a /etc/pm/power.d/wireless
If you change the encryption in the router also go into the network manager settings in the top right corner of the screen and click on the internet icon then edit connection, wireless and change security settings to wpa/wpa2
In a lot of cases you can enter the router set up by typing 192.168.0.1 into your web browser but you will need to be wired to the router first.