Hello together, I’m working on a project with a RPI 3 (as AP) for I/O-Devices which should connect via WPS (wps_pbc). But in the moment I stuck with the ctrl_iface on hostapd. When I run hostapd with the following hostapd.conf the service won’t start up and aborts (shown in debug). ########################## START QUOTE $ sudo nano hostapd.conf interface=wlan0 #driver=n180211 #WLAN ssid=SomeSSID channel=10 hw_mode=g ieee80211n=1 #ieee80211d=1 country_code=DE wmm_enabled=1 ht_capab=[HT40][SHORT-GI-20][DSSS_CCK-40] macaddr_acl=0 auth_algs=1 ignore_broadcast_ssid=0 wpa=2 wpa_key_mgmt=WPA-PSK wpa_pairwise=CCMP rsn_pairwise=CCMP wpa_passphrase=SomePASSPHRASE #WPS configuration wpa_psk_file=/etc/hostapd/hostapd.psk #Enable control interface for PBC/PIN entry ctrl_interface=/var/run/hostapd/ ctrl_interface_group=0 #Enable internal EAP server for EAP-WSC eap_server=1 wps_state=2 ap_setup_locked=1 uuid=SomeUUID wps_pin_requests=/var/run/hostapd.pin-req device_name=Wireless AP manufacturer=Company model_name=WAP model_number=123 serial_number=12345 device_type=6-0050F204-1 os_version=01020300 config_methods=label display push_button keypad pbc_in_m1=1 ########################## END QUOTE ########################## START QUOTE $ sudo hostapd -dd /etc/hostapd/hostapd.conf ... Using existing control interface directory. ctrl_iface bind(PF_UNIX) failed: Address already in use ctrl_iface exists and seems to be in use - cannot override it Delete '/var/run/hostapd//wlan0' manually if it is not used anymore Failed to setup control interface for wlan0 wlan0: Unable to setup interface. ... ########################## END QUOTE When I follow the information and delete the file, the interface will lose his socket. ########################## START QUOTE $ sudo hostapd_cli wps_pbc Failed to connect to hostapd - wpa_ctrl_open: No such file or directory ########################## END QUOTE With commenting out the ctrl_interface in the hostapd.conf the AP is working (but then I cannot use the hostapd_cli function). I was also looking for some process which is using this address but didn’t succeed. Has somebody an idea how to get out of this circle? Additional Information’s: ########################## START QUOTE $ hostapd -v hostapd v2.3 ########################## END QUOTE ########################## START QUOTE $ cat /proc/version Linux version 4.9.35-v7+ (dc4@dc4-XPS13-9333) (gcc version 4.9.3 (crosstool-NG crosstool-ng-1.22.0-88-g8460611) ) #1014 SMP Fri Jun 30 14:47:43 BST 2017 ########################## END QUOTE ########################## START QUOTE $ sudo nano /etc/network/interfaces #Loaclhost auto lo iface lo inet loopback #Ethernet auto eth0 allow-hotplug eth0 iface eth0 inet dhcp #WLAN auto wlan0 allow-hotplug wlan0 iface wlan0 inet static address 172.24.1.1 netmask 255.255.255.0 network 172.24.1.0 broadcast 172.24.1.255 #wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf up /sbin/iptables -F up /sbin/iptables -X up /sbin/iptables -t nat -F up /sbin/iptables -A INPUT -i lo -j ACCEPT up /sbin/iptables -A OUTPUT -o lo -j ACCEPT up /sbin/iptables -A FORWARD -o eth0 -i wlan0 -m conntrack --ctstate NEW -j ACCEPT up /sbin/iptables -A FORWARD -m conntrack --cstate ESTABLISHED,RELATED -j ACCEPT up /sbin/iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE up sysctl -w net.ipv4.ip_forward=1 up sysctl -w net.ipv6.conf.all.forwarding=1 up service hostapd restart up service dnsmasq restart ########################## END QUOTE Any kind of help is welcome. Thanks in advance for your answer. BR, JT _______________________________________________ Hostap mailing list Hostap@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/hostap