drivers/net/wireless/virtual

Virtual and simulated Wi-Fi adapters (mac80211_hwsim and virt_wifi)

Software-only Wi-Fi devices used for testing and emulation rather than real radios. mac80211_hwsim fakes one or more wireless cards entirely in software so the kernel's Wi-Fi stack and userspace tools can be exercised without hardware, while virt_wifi presents an existing Ethernet link as if it were a Wi-Fi connection, which is useful inside virtual machines and Android emulators.

keep-annotate conf=0.89 deploy=medium replacement=none subsystem=net category=networking-wireless
89%

recommendation

Worth keeping but documenting its niche, because this directory contains no physical hardware support at all: it exists to let developers, CI systems, and emulators pretend to have Wi-Fi. It remains actively maintained upstream (substantive patches were still landing in 2025-2026) and underpins real deployments such as the Mininet-WiFi network testbed and Android's Cuttlefish virtual devices, so the code should stay, just with clear annotation that it is a test and emulation tool rather than a driver for any shipping chipset.

repository signals

5 files
8,292 source lines
84 commits, 5y
+8,542 / −227 lines added / removed, 5y
36 authors, 5y
monthly commits · 2021-04-21 → 2026-04-21 · 84 total · active in 29/61 months
2021 2022 2023 2024 2025 2026 2021-04: 0 commits · +0 −0 2021-05: 0 commits · +0 −0 2021-06: 0 commits · +0 −0 2021-07: 0 commits · +0 −0 2021-08: 0 commits · +0 −0 2021-09: 0 commits · +0 −0 2021-10: 0 commits · +0 −0 2021-11: 0 commits · +0 −0 2021-12: 0 commits · +0 −0 2022-01: 0 commits · +0 −0 2022-02: 0 commits · +0 −0 2022-03: 0 commits · +0 −0 2022-04: 0 commits · +0 −0 2022-05: 0 commits · +0 −0 2022-06: 0 commits · +0 −0 2022-07: 0 commits · +0 −0 2022-08: 0 commits · +0 −0 2022-09: 0 commits · +0 −0 2022-10: 0 commits · +0 −0 2022-11: 0 commits · +0 −0 2022-12: 3 commits · +62 −29 2023-01: 0 commits · +0 −0 2023-02: 1 commit · +6,901 −0 2023-03: 4 commits · +837 −11 2023-04: 1 commit · +3 −0 2023-05: 2 commits · +10 −2 2023-06: 3 commits · +8 −6 2023-07: 0 commits · +0 −0 2023-08: 6 commits · +31 −38 2023-09: 2 commits · +17 −9 2023-10: 0 commits · +0 −0 2023-11: 0 commits · +0 −0 2023-12: 2 commits · +25 −0 2024-01: 9 commits · +91 −10 2024-02: 5 commits · +53 −6 2024-03: 4 commits · +26 −17 2024-04: 3 commits · +9 −3 2024-05: 0 commits · +0 −0 2024-06: 3 commits · +4 −3 2024-07: 7 commits · +95 −29 2024-08: 0 commits · +0 −0 2024-09: 1 commit · +1 −1 2024-10: 3 commits · +8 −8 2024-11: 1 commit · +39 −0 2024-12: 0 commits · +0 −0 2025-01: 0 commits · +0 −0 2025-02: 4 commits · +9 −8 2025-03: 2 commits · +9 −7 2025-04: 2 commits · +9 −3 2025-05: 0 commits · +0 −0 2025-06: 1 commit · +4 −2 2025-07: 2 commits · +9 −8 2025-08: 0 commits · +0 −0 2025-09: 2 commits · +259 −8 2025-10: 1 commit · +1 −0 2025-11: 2 commits · +14 −7 2025-12: 0 commits · +0 −0 2026-01: 3 commits · +3 −5 2026-02: 2 commits · +4 −4 2026-03: 3 commits · +1 −3 2026-04: 0 commits · +0 −0

sources

  1. wireless.docs.kernel.org

    mac80211_hwsim is a software simulator used to test mac80211 and userspace Wi-Fi tools without real hardware.

  2. cateee.net

    Upstream Kconfig describes MAC80211_HWSIM as a simulated radio testing tool, not a normal end-user WLAN driver.

  3. spinics.net

    There was active upstream patch traffic for mac80211_hwsim in April 2026, indicating current maintenance rather than removal.

  4. mininet-wifi.github.io

    Mininet-WiFi still depends on the 80211_hwsim/mac80211_hwsim simulation driver for virtual Wi-Fi stations and APs.

  5. android.googlesource.com

    Android Cuttlefish still ships both mac80211_create_radios support and a virt_wifi configuration path, showing present-day VM/emulator deployment.

codex reasoning notes (technical)

Local shell inspection (`sed` on Kconfig/C sources) shows this directory contains virtual/test drivers, not physical chip support; MAC80211_HWSIM is explicitly for testing and VIRT_WIFI wraps Ethernet as Wi-Fi. Local `git -c safe.directory=... log -- drivers/net/wireless/virtual` showed many 2025-2026 substantive fixes/features, with no evident removal trend. Web search found current Linux Wireless docs and LKDDb pages confirming the non-hardware test/emulation role, a recent mailing-list patch mirror (spinics; lore search fallback) confirming ongoing upstream attention, plus Mininet-WiFi and Android Cuttlefish pages showing ongoing deployments in testbeds/emulators. Result: keep the code, but annotate clearly that it serves active virtual/test environments rather than shipping hardware.