The laptop couldn't get on the internet, and the DNS servers were showing:
fec0:0:0:fff::1%1 or something similar. My laptop connected to the same router via ethernet cable is working fine, my DNS servers show 108.xxx.xxx.xxx because I added them manually, the other laptop is on DHCP.
A website suggested disabling the adapter and then restarting to reinstall it, so I did that, and it reinstalled. then ipconfig /all showed that it was disconnected. So I restarted the laptop again. Same result after that.
Please see attached photo. The laptop is running windows 8, and the wireless adapter works ok, but the ipconfig /all still shows that it is disconnected.