Disconnecting and reconnecting to wifi constantly!

Not sure if it’s useful to know, but if I use my phone as an Wi-Fi Hotspot and connect to the network the problem is gone. But it is still not a viable way to use it. Most likely this is driver related issue?