To use this, first ensure you can build the kernel modules as detailed on https://wireless.wiki.kernel.org/en/users/drivers/iwlwifi/core_release
git checkout release/core46 # or whatever release you're using; this documentation will assume core46.
A make command, a sed command, and another make command. DON'T INSTALL YET (we'll do that with DKMS).
Now, make sure your cloned repo is located at /usr/src/iwlwifi-release-core46
. Then:
sudo dkms add -m iwlwifi -v release-core46
sudo dkms build -m iwlwifi -v release-core46
sudo dkms install -m iwlwifi -v release-core46
Note that after the build
command, DKMS will generate a MOK signing key so that your module will work with Secure Boot. A screen will come up and ask you to enter a password. It can be anything, just remember it.
Then, on boot, click "Enroll key," "Continue," (view the key if you want), enter the key password, and then "Reboot." The module should now load successfully after reboot. And, in theory, they should get rebuilt and reinstalled whenever the kernel gets updated! I'll know soon whether this actually works or not...