My wifi was working just fine for a couple of days, but just now I suspended for dinner, when I came back I couldn't get my home wifi connect, it just keeps trying to connect, failing, then trying again. I restarted my pc and it didn't help. I can still use my wifi hotspot from my phone, it's only my home wifi that doesn't work. This is not the first time this has happened, and last time it just started working again after a while of messing with it. If you need the output from any command to help diagnose my problem, just ask, I'll be watching.
$ ifconfig
eth0 Link encap:Ethernet HWaddr d8:50:e6:1a:8b:9c
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:2260 errors:0 dropped:0 overruns:0 frame:0
TX packets:2260 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1
RX bytes:186632 (186.6 KB) TX bytes:186632 (186.6 KB)
wlan0 Link encap:Ethernet HWaddr 24:0a:64:a1:eb:6a
inet addr:192.168.43.77 Bcast:192.168.43.255 Mask:255.255.255.0
inet6 addr: fe80::260a:64ff:fea1:eb6a/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:16563 errors:0 dropped:0 overruns:0 frame:0
TX packets:14856 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:16752123 (16.7 MB) TX bytes:3175005 (3.1 MB)
$ lspci -nnk | grep 0280 -A2
01:00.0 Network controller [0280]: Qualcomm Atheros AR9485 Wireless Network Adapter [168c:0032] (rev 01)
Subsystem: AzureWave Device [1a3b:1186]
Kernel driver in use: ath9k
result of sudo iwlist wlan0 scan posted here: http://paste.ubuntu.com/23807847/
lspci -nnk | grep 0280 -A2
Welcome to Ask Ubuntu.sudo iwlist wlan0 scan
As the result may be lengthy, please paste it here and give us the link: paste.ubuntu.com