Wi-Fi connection frequently drops

Create a iwlwifi.conf file in /etc/modprobe.d/ containing the following line:

options iwlwifi 11n_disable=1 swcrypto=1