Skip to content

Enable CONFIG_MAC80211_HWSIM=m on x86 (config-wsl) to match arm64 #41184

Description

@pdgendt

Is your feature request related to a problem? Please describe.
The x86_64 WSL2 kernel can't load mac80211_hwsim, which blocks virtual-radio Wi-Fi userspace testing (nl80211 / wpa_supplicant / hostapd / iw). The rest of the stack is already present: CONFIG_MODULES=y, CONFIG_CFG80211=m, CONFIG_MAC80211=m, CONFIG_WLAN=y. Notably, config-wsl-arm64 already sets CONFIG_MAC80211_HWSIM=m, so this looks like an unintended x86/arm64 config inconsistency rather than a deliberate exclusion.

Describe the solution you'd like
Bring x86 to parity with arm64 by setting the option in arch/x86/configs/config-wsl:

diff --git a/arch/x86/configs/config-wsl b/arch/x86/configs/config-wsl
index 61f65876cbb7..3d4f8a00b862 100755
--- a/arch/x86/configs/config-wsl
+++ b/arch/x86/configs/config-wsl
@@ -3249,7 +3249,7 @@ CONFIG_WLAN_VENDOR_ZYDAS=y
 # CONFIG_ZD1211RW is not set
 CONFIG_WLAN_VENDOR_QUANTENNA=y
 # CONFIG_QTNFMAC_PCIE is not set
-# CONFIG_MAC80211_HWSIM is not set
+CONFIG_MAC80211_HWSIM=m
 # CONFIG_VIRT_WIFI is not set
 # CONFIG_WAN is not set

Describe alternatives you've considered

  • Building a custom WSL2 kernel with the option enabled: every WSL user who wants virtual-radio testing then has to maintain a private kernel + .wslconfig kernel= override that a WSL kernel update silently reverts.
  • Out-of-tree mac80211_hwsim.ko: not viable; WSL ships no /lib/modules/$(uname -r)/build tree and vermagic must match.

Additional context
Concrete consumer: the Zephyr RTOS native_sim Wi-Fi driver (zephyrproject-rtos/zephyr#110681) drives a mac80211_hwsim radio via host nl80211; on x86_64 WSL2 this missing module is the only blocker.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions