0

I always got error. When i execute hostapd command. I was changed everything in my hostapd.conf file but i got error.

hostapd_cli wps_pbc Failed to connect to hostapd - wpa_ctrl_open: No such file or directory

Can anyone help to me.?

VINOTHKUMAR S
  • 53
  • 3
  • 7

1 Answers1

3

Make sure your hostapd.conf file includes:

ctrl_interface=/var/run/hostapd
ctrl_interface_group=0
Jon Red
  • 176
  • 1
  • 10
  • Hi thank you for your reply. But, i did not find var/run . And also it's not created automatically. – VINOTHKUMAR S Jun 26 '17 at 03:54
  • 1
    @VINOTHKUMARS there is a `/var/run/hostapd.pid` file when hostapd is running. You probably didn't find it because you either searched for "var/run" without a leading slash or your hostapd service was not running. This answer saved me, should be accepted. – php_nub_qq Jan 29 '20 at 09:32