plugable wifi adapter not recognised by raspberry pi

When trying to set up the wifi on my raspberry pi for my universities WPA2 Enterprise network, i try to call “wpa_cli status” and it comes up with a “Failed to connect to non-global ctrl_ifname: (null) error: No such file or directory” error?

However when i type ifconfig then wlan0 comes up? Any help would be much appreciated

Hello Zeb,

Thank you for contacting us.

Looking at the man page for wpa_cli, it looks like it either needs more arguments when running as a command, or it should be running in interactive mode.

Try running wpa_cli by itself without the ‘status’ parameter. This should bring you to a new interactive prompt where you can use commands like ‘interface’ to select the interface being used, and ‘status’.

Alternatively, the command is likely the following:

wpa_cli -i wlan0 status

I hope this helps.