1
0
Fork 0
mirror of https://github.com/NixOS/nixos-hardware synced 2024-11-23 03:19:42 +01:00

Deprecation warning for QCA6174 firmware

This commit is contained in:
mexisme 2024-10-19 14:48:33 +13:00 committed by mergify[bot]
parent efb12d7f46
commit 98a46074e8
2 changed files with 19 additions and 12 deletions

View file

@ -91,11 +91,17 @@ See: https://github.com/linux-surface/linux-surface/blob/master/README.md
## Wifi Firmware for Surface Go ## Wifi Firmware for Surface Go
On the Surface Go, the standard firmware from the official Linux Firmware repo has issues with the On the Surface Go, the standard firmware from the official Linux Firmware repo used to have issues
`ath10k` QCA6174 Wifi device. with the `ath10k` QCA6174 Wifi device.
You will see messages like "Can't ping firmware".
The most effective fix to-date is to remove the `board-2.bin` file or replace it with a copy of the This was fixed in Nov 2021:
- https://github.com/linux-surface/linux-surface/issues/542#issuecomment-976995453
### Background:
With the older firmware, you would see messages like "Can't ping firmware".
The most effective fix was to remove the `board-2.bin` file or replace it with a copy of the
`board.bin` file. `board.bin` file.
The derivative in `surface-go/firmware/ath10k/` can configure this, with the The derivative in `surface-go/firmware/ath10k/` can configure this, with the
@ -107,14 +113,6 @@ This is the only way (currently) to force the driver to use the new firmware.
For more details, see: https://github.com/linux-surface/linux-surface/wiki/Surface-Go#wifi-firmware For more details, see: https://github.com/linux-surface/linux-surface/wiki/Surface-Go#wifi-firmware
_*NOTE:*_ There's some work to patch the kernel to make it easier to override which firmware file
to use for QCA6174, which would obviate this more-destructuve approach:
- https://github.com/linux-surface/kernel/commit/22ef83836c4aa89e9eb98de9b47ed24b6c2a1d45
_*NOTE:*_ There was an attempt to get this firmware incorporated into the aggregate `board-2.bin`,
but (as of this writing) the request appears to have been ignored:
- https://github.com/linux-surface/linux-surface/issues/41
References: References:
- https://github.com/jakeday/linux-surface/issues/441 - https://github.com/jakeday/linux-surface/issues/441
- https://www.reddit.com/r/SurfaceLinux/comments/e8quqg/surface_go_official_wifi_fix/ - https://www.reddit.com/r/SurfaceLinux/comments/e8quqg/surface_go_official_wifi_fix/

View file

@ -13,6 +13,15 @@ in {
}; };
config = mkIf cfg.replace { config = mkIf cfg.replace {
warnings = [''A working version of the ath10k QCA6174 firmware has been added to the kernel.org linux-firmware
repo, making this fix obsolete.
See:
- https://github.com/linux-surface/linux-surface/issues/542#issuecomment-976995453
- https://github.com/linux-surface/linux-surface/wiki/Surface-Go#wi-fi-firmware
NOTE: This module option will probably be removed in the near future.
''];
hardware.enableAllFirmware = true; hardware.enableAllFirmware = true;
hardware.firmware = [ hardware.firmware = [
(pkgs.callPackage ./ath10k-replace.nix {}) (pkgs.callPackage ./ath10k-replace.nix {})