2014-11-23 11:45:24 +01:00
|
|
|
ACTION!="add|change", GOTO="mbim_to_qmi_rules_end"
|
2014-11-24 13:10:40 +01:00
|
|
|
SUBSYSTEM!="usb|drivers", GOTO="mbim_to_qmi_rules_end"
|
2014-11-23 11:43:35 +01:00
|
|
|
|
2016-03-26 19:04:05 +01:00
|
|
|
# ignore any device with only one configuration
|
|
|
|
SUBSYSTEM=="usb", \
|
|
|
|
ATTR{bNumConfigurations}=="1", GOTO="mbim_to_qmi_rules_end"
|
|
|
|
|
2014-11-23 12:22:19 +01:00
|
|
|
# load qcserial module
|
2014-11-23 12:13:01 +01:00
|
|
|
SUBSYSTEM=="usb", \
|
|
|
|
ATTR{idVendor}=="413c", ATTR{idProduct}=="81b1", \
|
|
|
|
RUN+="/sbin/modprobe -b qcserial"
|
|
|
|
|
2014-11-23 12:22:19 +01:00
|
|
|
# force Dell WWAN 5809e to configuration #1
|
2014-11-23 12:13:01 +01:00
|
|
|
SUBSYSTEM=="usb", \
|
|
|
|
ATTR{idVendor}=="413c", ATTR{idProduct}=="81b1", \
|
|
|
|
ATTR{bConfigurationValue}="1"
|
|
|
|
|
2014-11-23 12:22:19 +01:00
|
|
|
# add the new id in the qcserial driver
|
2014-11-23 12:13:01 +01:00
|
|
|
SUBSYSTEM=="drivers", \
|
|
|
|
ENV{DEVPATH}=="/bus/usb-serial/drivers/qcserial", \
|
|
|
|
ATTR{new_id}="413c 81b1"
|
2014-11-23 11:43:35 +01:00
|
|
|
|
2016-03-26 19:04:05 +01:00
|
|
|
# load qmi_wwan module
|
|
|
|
SUBSYSTEM=="usb", \
|
|
|
|
ATTR{idVendor}=="413c", ATTR{idProduct}=="81b1", \
|
|
|
|
RUN+="/sbin/modprobe -b qmi_wwan"
|
|
|
|
|
|
|
|
# add the new id in the qmi_wwan driver
|
|
|
|
SUBSYSTEM=="drivers", \
|
2016-07-04 17:41:20 +02:00
|
|
|
ENV{DEVPATH}=="/bus/usb/drivers/qmi_wwan", \
|
2016-03-26 19:04:05 +01:00
|
|
|
ATTR{new_id}="413c 81b1"
|
|
|
|
|
2014-11-23 11:45:24 +01:00
|
|
|
LABEL="mbim_to_qmi_rules_end"
|