Sharing PCIe Wi-Fi Adapter with WSL2
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 33.7k
- Forks
- 1.8k
- Avg merge
- 3d 17h
- Merged PRs (30d)
- 116
Description
## Feature Request: Sharing PCIe Wi-Fi Adapter with WSL2
**Is your feature request related to a problem? Please describe.**
Yes. Currently, WSL2 relies on Hyper-V virtual switches, which only support USB network adapters. This prevents users from directly sharing a PCIe Wi-Fi adapter with WSL2, limiting flexibility and potentially hindering performance compared to USB alternatives.
**Describe the solution you'd like**
We propose enabling the ability to share a PCIe Wi-Fi adapter directly with the WSL2 virtual machine. This would grant users access to the adapter's features within WSL2 and potentially improve network performance.
**Describe alternatives you've considered**
The current workaround involves configuring the Hyper-V virtual switch to utilize an external USB Wi-Fi adapter. However, this method requires manual configuration and might need to be repeated frequently.
**Additional context**
- Sharing PCIe Wi-Fi adapters would benefit users by:
- Offering access to features potentially unavailable on USB adapters (e.g., Wi-Fi 6).
- Providing potentially improved performance compared to USB adapters.
- Simplifying the setup process compared to using external USB adapters.
- We encourage exploring two possible solutions:
- Kernel-level passthrough of PCIe Wi-Fi adapters to the WSL2 virtual machine.
- User-space tunneling solutions to bridge the network connection between Windows and WSL2.
- This feature request aims to bring attention to this limitation and explore potential solutions for future development.
Contributor guide
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.
Research direction
The issue names no files, tests, or entry points. Start by reviewing the WSL2 networking and Hyper-V integration architecture, then investigate the feasibility of PCIe passthrough and user-space tunneling. Done would require an agreed implementation approach and verified PCIe Wi-Fi access from the WSL2 virtual machine.
Written by the indexing model from the issue text.
Assessment
- Domain
- networking, operating-systems
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100