rbrunt / Pi_wps

A python script to allow push button wps pairing with a RaspberryPi acting as a wifi hotspot using hostapd
8 stars 3 forks source link

Error: wpactrl.error: wpa_ctrl_open failed #1

Open fabiosoft opened 8 years ago

fabiosoft commented 8 years ago

Hi, i'm trying to use your script with hostapd (raspberry pi 3 as access point) I got this error when i execute sudo python wps_pushbutton.py

wps_pushbutton.py:99: RuntimeWarning: This channel is already in use, continuing anyway.  Use GPIO.setwarnings(False) to disable warnings.
  GPIO.setup(LEDpin, GPIO.OUT) # indicator LED
Traceback (most recent call last):
  File "wps_pushbutton.py", line 104, in <module>
    wpa = wpactrl.WPACtrl(Socketaddress)
wpactrl.error: wpa_ctrl_open failed

How solve wpa_ctrl_open failed error?

Thanks

PS: the WPS you are using is "server" or is the "client" side so i need a router anyway? I'd like to use the raspberry as my WPS main router.

mjdileep commented 7 years ago

hit followings: sudo apt-get update sudo apt-get install hostapd isc-dhcp-server