If you do want to download the source and make the changes, the link might not be accurate
To download the kernel source
Code: Select all
apt-get source linux-image-$(uname -r)
You will find a folder named linux-4.8 or whatever kernel is installed in the home directory
Copy the patch into the home directory and see if the patch command works
If that goes ok, then
Code: Select all
cd linux-4.8/drivers/net/wireless/ath
Copy the config file
Code: Select all
cp /usr/src/linux-headers-`uname -r`/.config ./
Then copy the module.symvers
Code: Select all
cp /usr/src/linux-headers-$(uname -r)/Module.symvers Module.symvers
Then you can run the make and make install
Code: Select all
make -C /lib/modules/$(uname -r)/build M=$(pwd) modules
make -C /lib/modules/$(uname -r)/build M=$(pwd) modules_install
I rarely use the
make -C /lib/modules/$(uname -r)/build M=$(pwd) modules_install
command as I usually make a backup of the original module and then copy the new one to where the original was.
Then
sudo depmod -a
only needs to be used if you are adding PCI or USB ID's to a module to support new devices and in your case it should not be needed