RTL8822CE Unable to enable Wifi

Thank you for your reply.

I think the rtw88-dkms-git package is broken. When I try to install it via pamac build rtw88-dkms-git, I get:

...
Kernel preparation unnecessary for this kernel.  Skipping...

Building module:
cleaning build area...(bad exit status: 2)
make -j12 KERNELRELEASE=5.12.16-1-MANJARO -C /usr/lib/modules/5.12.16-1-MANJARO/build M=/var/lib/dkms/rtw88/r95.00e6f76/build.....
cleaning build area...(bad exit status: 2)
Kernel cleanup unnecessary for this kernel.  Skipping...

DKMS: build completed.

rtw_pci.ko.xz:
Running module version sanity check.
...

However, after pamac finishes execution, I get:

...
DKMS: install completed.
Running post-transaction hooks...
Arming ConditionNeedsUpdate...                                                                                                                                                           [1/2]
Install DKMS modules                                                                                                                                                                     [2/2]
==> dkms install --no-depmod -m rtw88 -v r95.00e6f76 -k 5.12.16-1-MANJARO
==> dkms install --no-depmod -m rtw88 -v r95.00e6f76 -k 5.10.49-1-MANJARO
==> depmod 5.10.49-1-MANJARO
==> depmod 5.12.16-1-MANJARO
Transaction successfully finished.

This however, doesn’t help. The problem still persists.

I’ve also tried the rtl88x2ce-dkms package. It is also broken. When pamac tries to compile it, gcc throws error. I can see these errors in the build logs generated by pamac.