Actually the Wi-Fi is a good Wi-Fi. Not crappy. I spent over a year and finally found the issue of WiFi turning off.
Try this solution.
In setup go to - more networks → mobile networks and choose connection optimizers and check to remove check mark from box.
In other words where ever, whereever your connection optimizers"connection optimizers" is located. Turn, turn it off. See if this works.