netctl
netctl copied to clipboard
Add a command for WPS Push Button
WPS Push Button is really a nice way to add new network with complicate password.
We could have a new netctl
command to let our system do this.
This command could create a file automatically.
Do you think it is possible?
netctl wps
Good idea! Here is how I think it should work:
wifi-menu
should check for a WPS flag and if it is found offer an extra button on the password form for skipping the password and using WPS push button registration. When using WPS, a partial profile needs to be created and using wpa_cli
and Credential processing as described in the section by that name in wpa_supplicant
's README-WPS, the Key
should be filled in after a connection is established.
I'm open for patches!
Can we split together the job.
- play with wpa_cli to work with wps as an external program (write report in this issue).
- write this procedure in the right place inside netctl
- create a partial profile inside netctl
- add a button (showned by a flag) inside wifi-menu
The last point is that you don't have to choose an SSID to make WPS works, is it a limitation of wpa_cli? If this is not the case, we can add a button to the main windows: choose a network or WPS
Unfortunately, I don't have the time and hardware to help you out with this one. If you want I can guide you a bit in implementing this, though it might not be easy. Already the credential processing could be challenging in the framework of netctl.
Offering WPS without selecting an SSID sounds insecure and poorly fitting to the use cases of the typical Arch Linux user, so I wouldn't spend much time on that if I were you.
ok, I start to play with wpa_cli and it's really easy, I didn't find how get the "answer" of wpa_cli.