Going to attempt upgrading to a more recent iwlwifi firmware version to see if that fixes my wifi issues. Using the Debian testing distribution instead of stable allows me to upgrade from iwlwifi -22 to -29:
Even though the above shows that the new firmware is installed, it does not appear to be being used, even after a reboot:
(Note how grepping for -26 finds a firmware, but -29 returns nothing).
Also note how dmesg shows that the kernel starts searching at 26 and counts down, even though 29 is present in /lib/firmware:
First download the drivers from the website. I chose iwlwifi-7265-ucode-16.242414.0.tgz because it is for kernels v4.3+ (mine is v4.9.0) and it is compatible with the 7265 chipset (no mention of 7265D, but hopefully this is the right one).
Then remove the iwlwifi driver installed through apt:
Extracting the .tgz file reveals it does contain the 7265D firmware, and a rather helpful README file!
Following the instructions I install the firmware manually:
Now let’s reboot and see if I am now using -16…
The kernel only searched from -26 to -22 so I am now without wifi again. I must have chosen the wrong version.
As a hack, let’s try seeing what happens if we trick it into loading the -16 firmware:
And now let’s reboot again…
Perhaps no surprise, it did not like the hack:
Dodgy wifi is better than no wifi, so let’s reinstall the old firmware which has the issue. Fortunately aptitude has a local cache so I can reinstall firmware-iwlwifi without any internet:
Now let’s try a different approach. We’ll change the iwlwifi configuration a bit, specifically to disable power saving amongst other things:
Let’s leave it at that for now and see if it helps.