I know a lot of people asked this question.
I tried How to install wifi driver Ralink RT3290 and also http://onthim.blogspot.se/2015/06/install-ralink-rt3290-wi-fi-driver-on.html
Both of them worked. I was happy with the driver i put up in the first link but it suddenly started to drop even though my router is right next to my desk. This happens mostly when I'm using my laptop in battery mode.
Then I removed the driver and installed the driver i put up in the second link. It worked flawlessly until I upgraded to a newer kernel. I had to reinstall those drivers from the beginning. It is so annoying that every time I switch on my laptop, I have to reinstall it. :/
I know I'm asking a lot but if somebody could link me up with a permanent fix, I'll be really grateful. I'm just a newbie so I clearly have no idea what else to do. Thanks.
EDITED : Wifi works well in Ubuntu 17.10 cheers :)