Simply putting it on suspend and bringing it back up seems to make the wifi work normally.This is not a permanent solution.The only problem is to do this every time start Ubuntu.
just want to reactivate your WiFi
rfkill command used to enable/disable network drivers or activate or deactivate Network Adapters
sudo rfkill unblock wifi
Reboot and your wireless should be working.
Reboot your PC.
Once the install is finished doing its work, you’ll need to reboot. After you log back in, you’ll be able to see and access your wifi connections.