I have a laptop and desktop, both running Arch linux. On the laptop, I can run (as a non-root user):
iw dev wlp3s0 link
This outputs all the expected information.
On the desktop, running the same command gives the SSID and frequency, followed by
command failed: Operation not permitted (-1)
I suspected that this was because the laptop was set up to allow sudo access without a password, but adding that on the desktop didn't fix it.
Running the same command as root on the desktop (or with sudo) works as expected.
What sort of configuration am I missing on the desktop here?