summaryrefslogtreecommitdiff
path: root/kvmd
diff options
context:
space:
mode:
Diffstat (limited to 'kvmd')
-rw-r--r--kvmd/apps/otg/__init__.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/kvmd/apps/otg/__init__.py b/kvmd/apps/otg/__init__.py
index f47f4ea8..55076ff9 100644
--- a/kvmd/apps/otg/__init__.py
+++ b/kvmd/apps/otg/__init__.py
@@ -188,7 +188,10 @@ def _cmd_start(config: Section) -> None: # pylint: disable=too-many-statements
# bcdDevaev should be incremented any time there are breaking changes
# to this script so that the host OS sees it as a new device
# and re-enumerates everything rather than relying on cached values.
- _write(join(gadget_path, "bcdDevice"), "0x0101")
+ if config.otg.devices.ethernet.enabled and config.otg.devices.ethernet.driver == "rndis":
+ _write(join(gadget_path, "bcdDevice"), "0x0101")
+ else:
+ _write(join(gadget_path, "bcdDevice"), "0x0100")
_write(join(gadget_path, "bcdUSB"), f"0x{config.otg.usb_version:04X}")
lang_path = join(gadget_path, "strings/0x409")