WiFiDirect cppwinrt can not get "PairingRequested" callback after GO/GC calls PairingRequested()
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 25/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- cpp
- Domain
- networking
Research direction
Start with the WifiDirect/cppwinrt sample and trace WiFiDirectConnectionParameters::PairAsync(...).get() together with the PairingRequested callback handler. Reproduce the GO and GC pairing flow, including the already-paired and unknown-failure results, and verify whether the callback processes the expected WiFiDirectConfigurationMethod.
Written by the indexing model from the issue text.
Description
Which sample are you reporting a bug in?
WifiDirect/cppwinrt
Describe the bug
I am using the above sample code to build a WifiDirect GO and GC command line utilities. When the GO and GC utilities do pairing with WiFiDirectConnectionParameters::PairAsync(...).get(), GC always returns "The device object has already been paired" and GO always returns "An unknown failure occurred." WiFiDirectConnectionParameters::PairingRequested call back handler never get called.
The interesting thing is that they are already paired even with the error result. They can even ping/iperf each other.
The problem is that the pairing event handler which processes the WiFiDirectConfigurationMethod(ProvidePin/DisplayPin/PushButton) won't get called. This will expose security problems. I saw people post same problem here: https://learn.microsoft.com/en-us/answers/questions/827554/i-use-pairasync-method-to-pair-another-wifidirect .
I wonder if anyone saw this problem and have any idea of it.
To Reproduce
Expected behavior
WiFiDirectConnectionParameters::PairingRequested call back handler should be called after pairing.
Screenshots
Configuration
Additional context
- Dominant language
- JavaScript
- Stars
- 9.7k
- Forks
- 7.8k
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from microsoft/Windows-universal-samples
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
-
bug
Difficulty 3/5 1-2 days Newbie friendliness 52/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 55/100
microsoft/Windows-universal-samples#1442 · 6 comments ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 42/100
microsoft/Windows-universal-samples#1440 · 3 comments · 1 reaction ·
-
bug
Difficulty 4/5 3-5 days Newbie friendliness 45/100
microsoft/Windows-universal-samples#1437 · 3 comments ·
All issues in microsoft/Windows-universal-samples
Similar issues
-
code-quality refactoring
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
github/gh-aw-firewall#8816 ·
-
integration:quickjs org:external priority:backlog topic:code-interpreter topic:middleware type:feature
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
langchain-ai/deepagents#6450 ·
-
optimization optimization:agents-md-curator
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
githubnext/gh-aw-cao#13143 ·
-
status: needs triage
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100