From b0ec3030a3e5519d75c2268fa20062edd2dacf4e Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Mon, 26 Aug 2019 09:07:35 +0200 Subject: [PATCH] sierra: add port type hints for the MC74xx modules As suggested by Paul Bartell --- plugins/sierra/77-mm-sierra.rules | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/plugins/sierra/77-mm-sierra.rules b/plugins/sierra/77-mm-sierra.rules index d3da313b..a976e60f 100644 --- a/plugins/sierra/77-mm-sierra.rules +++ b/plugins/sierra/77-mm-sierra.rules @@ -5,8 +5,17 @@ SUBSYSTEMS=="usb", ATTRS{idVendor}=="1199", GOTO="mm_sierra" GOTO="mm_sierra_end" LABEL="mm_sierra" +SUBSYSTEMS=="usb", ATTRS{bInterfaceNumber}=="?*", ENV{.MM_USBIFNUM}="$attr{bInterfaceNumber}" # Netgear AC341U: enable connection status polling explicitly ATTRS{idVendor}=="1199", ATTRS{idProduct}=="9057", ENV{ID_MM_QMI_CONNECTION_STATUS_POLLING_ENABLE}="1" -LABEL="mm_sierra_end" \ No newline at end of file +# MC74XX: Add port hints +# if 03: primary port +# if 02: raw NMEA port +# if 00: diag/qcdm port +ATTRS{idVendor}=="1199", ATTRS{idProduct}=="9071", ENV{.MM_USBIFNUM}=="03", ENV{ID_MM_PORT_TYPE_AT_PRIMARY}="1" +ATTRS{idVendor}=="1199", ATTRS{idProduct}=="9071", ENV{.MM_USBIFNUM}=="02", ENV{ID_MM_PORT_TYPE_GPS}="1" +ATTRS{idVendor}=="1199", ATTRS{idProduct}=="9071", ENV{.MM_USBIFNUM}=="00", ENV{ID_MM_PORT_TYPE_QCDM}="1" + +LABEL="mm_sierra_end"