0

I have computer that only have Wifi network. There is no RJ45 socket. I have to configure Wifi using command line. My Wifi:

Authentication         : WPA2-Personal
Cipher                 : CCMP
Connection mode        : Profile
Channel                : 1

On FreePBX I have file: /etc/wpa_supplicant/wpa_supplicant.conf:

   ctrl_interface=/var/run/wpa_supplicant
   ctrl_interface_group=wheel
   network={
      ssid="mynetworkname"
      psk="mypassword"
   }

When I type command:

   wpa_supplicant -B -i wlan0 -c wpa_supplicant.conf -D wext

and I get error:

Successfully initialized wpa_supplicant
Failed to open config file '/etc/wpa_supplicant.conf', error: No such file or directory
Delete '/var/run/wpa_supplicant/wlan0' manually if it is not used anymore
Failed to initialize control interface '/var/run/wpa_supplicant'.
You may have another wpa_supplicant process already running or the file was left by an unclean termination of wpa_supplicant in which case you will need to manually remove this file before starting wpa_supplicant again.
2
  • Well, you've told it the wrong config file location, so how are you expecting it to work? Why don't you just pass it the absolute path? Commented Apr 20, 2021 at 22:58
  • make sure the file /etc/wpa_supplicant.conf exist! if exist try with sudo Commented Apr 20, 2021 at 23:13

1 Answer 1

0

You should give the full path to the configuration file wpa_supplicant.conf

killall wpa_supplicant
wpa_supplicant -B -i wlan0 -D wext -c /etc/wpa_supplicant/wpa_supplicant.conf

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.