Wi-Fi problem Ubuntu 17.10

Today I bought a new wireless Xbox one controller and I’ve tried to connect it with the Ubuntu. I was looking online for some drivers but apparently that didn’t help. So I was deleting some drivers and trying to install others and similiar. But after some time i wasn’t able to access the internet. My laptop connects to the wi fi router but i have no access to the internet. So if anyone knows what to do, please help.