I was following this Raspberry Pi documentation (https://www.raspberrypi.org/documentation/configuration/wireless/wireless-cli.md) about connecting to wireless connection. My SSID and password are correct.

Whenever I use the command:

ifconfig wlan0

It has an inet addr value.

I used the command:

sudo iwlist wlan0 scan

It displays all the available WiFi connections.

But when I try using the command:

sudo wpa_cli -i wlan0 reconfigure

It says "Failed to connect to non-global ctrl_ifname: wlan0 error: No such file or directory"

Any of you have encountered this? I followed the documentation and all but it doesn't seem to tackle this problem.

  • What documentation? What are you trying to do? – Milliways May 25 '18 at 1:52
  • I'm trying to connect to my WiFi. This documentation: raspberrypi.org/documentation/configuration/wireless/… – passerby May 25 '18 at 1:55
  • Any detail should be edited into your question - not in Comments. This still doesn't explain "What are you trying to do" - you should list what YOU did in detail, also WHY - this is normally unnecessary. – Milliways May 25 '18 at 2:03
  • OK, wpa_cli gives you an error message but the interface is working (scanning works) and it is associated to an access point (getting ip address). Where is the real problem? I had no need to use wpa_cli so far. – Ingo May 25 '18 at 7:17
  • I have this problem on my Gentoo desktop with RTL8188CUS – Necktwi Feb 26 at 13:37

I had the same problem and realized that wlan0 wasn't up. Just activate the interface with sudo ifconfig wlan0 up and then scan again with sudo iwlist wlan0 scan.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.