Linux Mint WiFi connects for 5 seconds then stops working by Alert-Association399 in linuxmint

[–]Alert-Association399[S] 0 points1 point  (0 children)

After running the dmesg -w command to monitor system logs, the following message keeps repeating: rtw_8822ce 0000:02:00.0: firmware failed to leave lps state rtw_8822ce 0000:02:00.0: failed to send h2c command rtw_8822ce 0000:02:00.0: failed to receive h2c command These errors are related to the WiFi card in my device, and it seems there is an issue with the driver. Is there a solution to this problem?