After I updated the kernel of my laptop to 5.4.13, No wifi adapter is found. So I tried the following steps:

```
sudo apt remove bcmwl-kernel-source && sudo apt install git dkms
git clone -b extended https://github.com/lwfinger/rtlwifi_new.git
sudo dkms add ./rtlwifi_new
sudo dkms install rtlwifi-new/0.6

```

But the fourth step shows the following errors :

```
Kernel preparation unnecessary for this kernel.  Skipping...
Building module:
cleaning build area.....(bad exit status: 2)
make -j8 KERNELRELEASE=5.4.13-050413-generic -C /lib/modules/5.4.13-050413-generic/build M=/var/lib/dkms/rtlwifi-new/0.6/build.......(bad exit status: 2)
ERROR (dkms apport): binary package for rtlwifi-new: 0.6 not found
Error! Bad return status for module build on kernel: 5.4.13-050413-generic (x86_64)
Consult /var/lib/dkms/rtlwifi-new/0.6/build/make.log for more information.**

```

Please help. It's being very difficult for me to work without wifi.
Thanks in advance for any help.