Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a command for WPS Push Button #180

Open
alkino opened this issue Aug 31, 2020 · 4 comments
Open

Add a command for WPS Push Button #180

alkino opened this issue Aug 31, 2020 · 4 comments

Comments

@alkino
Copy link

alkino commented Aug 31, 2020

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

@joukewitteveen
Copy link
Owner

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!

@alkino
Copy link
Author

alkino commented Sep 4, 2020

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

@joukewitteveen
Copy link
Owner

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.

@alkino
Copy link
Author

alkino commented Oct 9, 2020

ok, I start to play with wpa_cli and it's really easy, I didn't find how get the "answer" of wpa_cli.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants