summaryrefslogtreecommitdiff
path: root/src/etc/udev/rules.d/99-vyos-wwan.rules
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-03-18 17:53:55 +0100
committerChristian Poessinger <christian@poessinger.com>2021-03-18 17:54:32 +0100
commit89bf6bc1b6c1194ff66d5b80993206b5b11c7842 (patch)
treef130f863dc010133e18dae3058055e9c3df465a3 /src/etc/udev/rules.d/99-vyos-wwan.rules
parentd6b28f0b5a83c6727a159b8ee15f810abe6e1636 (diff)
downloadvyos-1x-89bf6bc1b6c1194ff66d5b80993206b5b11c7842.tar.gz
vyos-1x-89bf6bc1b6c1194ff66d5b80993206b5b11c7842.zip
Revert "udev: T3063: drop special WWAN rule for Sierra Wireless cards"
Turns out we still need it, else a MC7710 card won't work on an APU4 device. This reverts commit f9e0fb6bffd41c143ff5454c3b73cca4a588ca86.
Diffstat (limited to 'src/etc/udev/rules.d/99-vyos-wwan.rules')
-rw-r--r--src/etc/udev/rules.d/99-vyos-wwan.rules11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/etc/udev/rules.d/99-vyos-wwan.rules b/src/etc/udev/rules.d/99-vyos-wwan.rules
new file mode 100644
index 000000000..67f30a3dd
--- /dev/null
+++ b/src/etc/udev/rules.d/99-vyos-wwan.rules
@@ -0,0 +1,11 @@
+ACTION!="add|change", GOTO="mbim_to_qmi_rules_end"
+
+SUBSYSTEM!="usb", GOTO="mbim_to_qmi_rules_end"
+
+# ignore any device with only one configuration
+ATTR{bNumConfigurations}=="1", GOTO="mbim_to_qmi_rules_end"
+
+# force Sierra Wireless MC7710 to configuration #1
+ATTR{idVendor}=="1199",ATTR{idProduct}=="68a2",ATTR{bConfigurationValue}="1"
+
+LABEL="mbim_to_qmi_rules_end"