Mac doesn't connect to university Wi-Fi
Solution 1:
This isn't an Apple issue per se. It's an issue with the organization's (in this case, the university's) security protocol not allowing you onto their network.
You indicate that your WiFi is functional
it is getting connected to all other wifi and hotspot devices
It's not going to work everywhere and then suddenly stop working on one particular network. A symptom like this points to an authentication issue.
More than likely, your Uni is using an accounting and authentication mechanism like RADIUS (Remote Authentication Dial-In User Service). True...nobody really uses "dial in" any more, but the acronym stuck.
You need to contact your organization's IT support department to assist you in getting your device(s) authorized on their network. Once they do this, you will be able to access the resources you are authorized to utilize.