summaryrefslogtreecommitdiff
path: root/src/etc/udev/rules.d/41-usb_modeswitch_wwan.rules
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2026-07-10 12:03:37 +0200
committerGitHub <noreply@github.com>2026-07-10 12:03:37 +0200
commite5e36dd48191cb5194dd541fa91b2d14dd8d9d33 (patch)
tree94429cfd152967aa85452a2a87e22efad35e72c5 /src/etc/udev/rules.d/41-usb_modeswitch_wwan.rules
parent43dfe32914fc5dcb09d8fb6e59045e18f2d1d708 (diff)
parentca8a6189eab702b8430b436b41cc6c38b5a5b9a1 (diff)
downloadvyos-1x-rolling.tar.gz
vyos-1x-rolling.zip
Merge pull request #5322 from c-po/udev-rules-fixrolling
udev: T9071: fix invalid ATTR key assignment
Diffstat (limited to 'src/etc/udev/rules.d/41-usb_modeswitch_wwan.rules')
-rw-r--r--src/etc/udev/rules.d/41-usb_modeswitch_wwan.rules11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/etc/udev/rules.d/41-usb_modeswitch_wwan.rules b/src/etc/udev/rules.d/41-usb_modeswitch_wwan.rules
new file mode 100644
index 000000000..0a6fe19ac
--- /dev/null
+++ b/src/etc/udev/rules.d/41-usb_modeswitch_wwan.rules
@@ -0,0 +1,11 @@
+# The Linux kernel selects configuration 2 by default, but that does not work with ModemManager - configuration 3 (MBIM mode) is a better choice
+
+# HP LT4132 which is a re-brand of Huawei ME906s-158
+ACTION=="add|change", SUBSYSTEM=="usb", ATTR{idVendor}=="03f0", ATTR{idProduct}=="a31d", ATTR{bConfigurationValue}!="3", ATTR{bConfigurationValue}="0"
+ACTION=="add|change", SUBSYSTEM=="usb", ATTR{idVendor}=="03f0", ATTR{idProduct}=="a31d", ATTR{bConfigurationValue}!="3", RUN+="/bin/sh -c 'sleep 1; echo 3 > %S%p/bConfigurationValue'"
+ACTION=="add|change", SUBSYSTEM=="net", ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="a31d", ATTR{cdc_ncm/ndp_to_end}=="N", ATTR{cdc_ncm/ndp_to_end}="Y"
+
+# Huawei Technologies Co., Ltd. ME906s LTE M.2
+ACTION=="add|change", SUBSYSTEM=="usb", ATTR{idVendor}=="12d1", ATTR{idProduct}=="15c1", ATTR{bConfigurationValue}!="3", ATTR{bConfigurationValue}="0"
+ACTION=="add|change", SUBSYSTEM=="usb", ATTR{idVendor}=="12d1", ATTR{idProduct}=="15c1", ATTR{bConfigurationValue}!="3", RUN+="/bin/sh -c 'sleep 1; echo 3 > %S%p/bConfigurationValue'"
+ACTION=="add|change", SUBSYSTEM=="net", ATTRS{idVendor}=="12d1", ATTRS{idProduct}=="15c1", ATTR{cdc_ncm/ndp_to_end}=="N", ATTR{cdc_ncm/ndp_to_end}="Y"