From bfbda01abbd556f40872cbaf6db0001669c45ced Mon Sep 17 00:00:00 2001 From: Evgeny Boger Date: Sat, 5 Sep 2026 21:58:37 +0300 Subject: [PATCH] arm64: wb8.config: enable USB_GADGET_DEBUG_FILES The RNDIS gadget function then exposes its state (RNDIS_UNINITIALIZED / RNDIS_INITIALIZED / RNDIS_DATA_INITIALIZED) in /proc/driver/rndis-NNN. wb-utils reads it to tell a host that completed the RNDIS handshake (Windows, Linux) from one without an RNDIS driver (macOS), which then gets CDC ECM instead; the netdev carrier is useless for that because gether_connect() raises it before RNDIS_MSG_INIT, and waiting for packets fails on hosts with DHCP and IPv6 disabled. The other files the option adds (/proc/driver/udc for the controller) are read-only diagnostics. Assisted-by: Claude Fable 5.1 Co-Authored-By: Claude Fable 5.1 Claude-Session: https://claude.ai/code/session_01HLFmiMmz3W25ZKY2FTjL1x --- arch/arm64/configs/wb8.config | 3 +++ debian/changelog | 8 ++++++++ 2 files changed, 11 insertions(+) diff --git a/arch/arm64/configs/wb8.config b/arch/arm64/configs/wb8.config index e24c8f4a6045..07f5810bca1e 100644 --- a/arch/arm64/configs/wb8.config +++ b/arch/arm64/configs/wb8.config @@ -33,6 +33,9 @@ CONFIG_IIO_RESCALE=y # USB gadget support (Debug network) CONFIG_USB_ETH=m CONFIG_USB_GADGETFS=m +# RNDIS handshake state in /proc/driver/rndis-NNN: wb-usb-otg reads it to tell a host +# with an RNDIS driver (Windows, Linux) from one without it (macOS -> CDC ECM) +CONFIG_USB_GADGET_DEBUG_FILES=y # Godex printer support CONFIG_USB_PRINTER=m diff --git a/debian/changelog b/debian/changelog index c1fb098be238..a2a870ea6413 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,11 @@ +linux-wb (6.8.0-wb164) stable; urgency=medium + + * arm64: wb8.config: enable USB_GADGET_DEBUG_FILES so the RNDIS gadget + function exposes its handshake state in /proc/driver/rndis-NNN; wb-utils + reads it to tell an RNDIS host from one that needs CDC ECM (macOS) + + -- Evgeny Boger Sat, 05 Sep 2026 21:51:53 +0300 + linux-wb (6.8.0-wb163) stable; urgency=medium * usb: gadget: configfs: add MS OS 2.0 descriptors support, without which