I suggest you try checking for updates as there may be some queued that have not yet been installed.
I also recommend that you check the WiFi for driver updates as this may be your issue here.
Once you have done that, ensure that you reboot the computer and then see if the WiFi has returned.
I hope this answers your question.
--If the reply is helpful, please Upvote and Accept as answer--