~tim/ubuntu_on_surface_go

ubuntu_on_surface_go/fix_wifi.sh -rwxr-xr-x 366 bytes View raw
f77d614fTim Morgan Simplify suspend/hibernate notes 1 year, 3 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/bash

set -e

# first make a backup
if [[ ! -e old-wifi-firmware.zip ]]; then
  zip -r old-wifi-firmware.zip /lib/firmware/ath10k
fi

rm -f /lib/firmware/ath10k/QCA6174/hw3.0/board-2.bin
cp board.bin /lib/firmware/ath10k/QCA6174/hw3.0
chmod +x board.bin /lib/firmware/ath10k/QCA6174/hw3.0/*
echo "options ath10k_core skip_otp=y" > /etc/modprobe.d/ath10k.conf