Skip to content

config-wsl: enable CMAC, zstd firmware, and MediaTek BT USB#1

Open
elcalzado wants to merge 1 commit into
linux-msft-wsl-6.18.yfrom
config-wsl/enable-cmac-zstd-mtk-bt
Open

config-wsl: enable CMAC, zstd firmware, and MediaTek BT USB#1
elcalzado wants to merge 1 commit into
linux-msft-wsl-6.18.yfrom
config-wsl/enable-cmac-zstd-mtk-bt

Conversation

@elcalzado

Copy link
Copy Markdown
Collaborator

Enable features needed for USB Bluetooth dongles attached to WSL2 via usbipd:

  • CONFIG_CRYPTO_CMAC=y: build CMAC in rather than as a module. On WSL2 a kernel-initiated request_module() runs via usermodehelper in the init namespace, which cannot reach the distro's /sbin/modprobe or /lib/modules, so autoloading cmac fails and LE Secure Connections crypto is unavailable. Building it in avoids the request_module().

  • CONFIG_FW_LOADER_COMPRESS_ZSTD=y: support zstd-compressed firmware as shipped by current linux-firmware (CONFIG_ZSTD_DECOMPRESS was already enabled).

  • CONFIG_BT_HCIBTUSB_MTK=y (selects CONFIG_BT_MTK=m): MediaTek USB Bluetooth controller support.

@JPHutchins JPHutchins left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

I'm not sure what WSL2's commit message standards are, but to lower friction you should look at existing commits. The one thing you definitely need to add is the Signed-off-by line. Your summary line is already conventional commit.

Here's an example:

5372f6f

@elcalzado elcalzado force-pushed the config-wsl/enable-cmac-zstd-mtk-bt branch from 0c2a55a to 1bfb067 Compare July 9, 2026 23:06
Enable features needed for USB Bluetooth dongles attached to WSL2 via
usbipd.

CONFIG_CRYPTO_CMAC=y: On WSL2 a kernel-initiated request_module()
runs via usermodehelper in the init namespace, which cannot reach
the distro's /sbin/modprobe or /lib/modules, so autoloading cmac fails
and LE Secure Connections crypto is unavailable. Building it in avoids
the request_module().

CONFIG_FW_LOADER_COMPRESS_ZSTD=y: support zstd-compressed firmware as
shipped by current linux-firmware (CONFIG_ZSTD_DECOMPRESS was already
enabled).

CONFIG_BT_HCIBTUSB_MTK=y (selects CONFIG_BT_MTK=m): MediaTek USB
Bluetooth controller support.

Signed-off-by: Elias Calzado Carvajal <elias@intercreate.io>
@elcalzado elcalzado force-pushed the config-wsl/enable-cmac-zstd-mtk-bt branch from 1bfb067 to ff66dc4 Compare July 9, 2026 23:10
@elcalzado elcalzado requested a review from JPHutchins July 9, 2026 23:10

@JPHutchins JPHutchins left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, approved for upstream PR.

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

Successfully merging this pull request may close these issues.

2 participants