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

Is it possible to disable PIN? #91

Open
MilesFan opened this issue Aug 25, 2021 · 4 comments
Open

Is it possible to disable PIN? #91

MilesFan opened this issue Aug 25, 2021 · 4 comments

Comments

@MilesFan
Copy link

This is a great project, and I am using it in a trusted environment that PIN is not necessary.

I know the Microsoft Wireless Display Adapter which also uses MiraCast technology can be set to not require PIN.

I know where to set a PIN in the source code, but not quite sure how to disable PIN.

sudo wpa_cli -i$p2pinterface wps_pin any 31415926

Does anyone have an idea?

Thanks!

@homeworkc
Copy link
Owner

It might be possible but people have been trying this in the past and did not succeed. Basically the PIN is the mandatory connection method defined in WPS. WPS also has the optional push button method, which I think is what Microsoft adapter used. Right now the push button method is not implemented.

@rtgiskard
Copy link

Tested with p2p mode, if set the property for ('fi.w1.wpa_supplicant1.Interface.WPS', 'ConfigMethods') to virtual_push_button, then the sink will get ProvisionDiscoveryPBCRequest rather than ProvisionDiscoveryRequestDisplayPin. PBC does not requre the PIN code

@phamthanhnam
Copy link

@rtgiskard How did you do that?

@rtgiskard
Copy link

rtgiskard commented Jan 17, 2024

@rtgiskard How did you do that?

I'm using the dbus api, just set ConfigMethods with the api on p2p setup (maybe right after WfdIE)

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

No branches or pull requests

4 participants