Hi all

This has been really a pain in the neck, Bluetooth is not working normally I must hibernate in order for Bluetooth to work so I tried to compile rtlwifi-next from source that's when I lost my internet access (no internet over ethernet, USB tethering, or WiFi)

I have Hewlett-Packard / RTL8822BE 802.11ac 2 x 2 Wi-Fi + Bluetooth 4.2 Combo Adapter (MU-MIMO supported)

My laptop is HP Laptop 15-da1018ne with Windows 10 pre-installed and dual-boot Ubuntu 20.10

I had the following error compiling rtlwifi:

Code:
omar_mustafa@Omar-HP-Laptop-15-da1xxx:~/Downloads/rtlwifi-next-master$ sudo makemake -C /lib/modules/5.8.0-45-generic/build M=/home/omar_mustafa/Downloads/rtlwifi-next-master modules
make[1]: Entering directory '/usr/src/linux-headers-5.8.0-45-generic'
  CC [M]  /home/omar_mustafa/Downloads/rtlwifi-next-master/rtl8192c/main.o
In file included from /home/omar_mustafa/Downloads/rtlwifi-next-master/rtl8192c/main.c:26:
/home/omar_mustafa/Downloads/rtlwifi-next-master/rtl8192c/../wifi.h:1664:2: error: unknown type name ‘__kernel_time_t’
 1664 |  __kernel_time_t last_suspend_sec;
      |  ^~~~~~~~~~~~~~~
make[3]: *** [scripts/Makefile.build:286: /home/omar_mustafa/Downloads/rtlwifi-next-master/rtl8192c/main.o] Error 1
make[2]: *** [scripts/Makefile.build:515: /home/omar_mustafa/Downloads/rtlwifi-next-master/rtl8192c] Error 2
make[1]: *** [Makefile:1783: /home/omar_mustafa/Downloads/rtlwifi-next-master] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.8.0-45-generic'
make: *** [Makefile:100: all] Error 2
Any ideas on how to fix this?