I have a strange problem. I have a laptop and a PC connected to the same wifi, running Ubtunu 16.04 and the latency is very high, sometimes it even stays around 300 ms, but it also has a high jitter. The strange part is that the latency is less than a millisecond if I run Windows 10 on that PC (laptop still running Ubuntu).
I tried to run a trick I googled,
sudo iwconfig wlp3s0 power off
but it did not help (the wifi device's name is really wlp3s0). The hardware used is (according to lspci) Qualcomm Atheros QCA6174 802.11ac Wireless Network Adapter (rev 32).
If I use a RJ45 wire to connect the two machines, it runs without issues. The latency to servers outside the local network is far from being that bad.
It makes file transfer really annoying and synergy unusable.
Any idea what might be causing this?
EDIT: More info: What I from iwlist scanning:
Cell 01 - Address: 90:5C:44:A0:F7:B1 Channel:112 Frequency:5.56 GHz (Channel 112) Quality=56/70 Signal level=-54 dBm Encryption key:on ESSID:"DugiNet Premium" Bit Rates:6 Mb/s; 9 Mb/s; 12 Mb/s; 18 Mb/s; 24 Mb/s 36 Mb/s; 48 Mb/s; 54 Mb/s Mode:Master Extra:tsf=0000030ca45f5bbb Extra: Last beacon: 33488ms ago