mirror of
https://github.com/outbackdingo/wwan-packages.git
synced 2026-01-27 10:20:52 +00:00
quectel-cm: add mbim support
Signed-off-by: Tianling Shen <cnsztl@gmail.com>
This commit is contained in:
@@ -12,7 +12,12 @@ define Package/quectel-cm
|
||||
CATEGORY:=Network
|
||||
SUBMENU:=WWAN
|
||||
TITLE:=Qconnect Manager for Quectel WWAN modules
|
||||
DEPENDS:=+kmod-usb-net-qmi-wwan-quectel +kmod-usb-serial-option
|
||||
DEPENDS:= \
|
||||
+kmod-usb-net-cdc-mbim \
|
||||
+kmod-usb-net-qmi-wwan \
|
||||
+kmod-usb-net-qmi-wwan-fibocom \
|
||||
+kmod-usb-net-qmi-wwan-quectel \
|
||||
+kmod-usb-serial-option
|
||||
endef
|
||||
|
||||
define Package/quectel-cm/install
|
||||
@@ -24,7 +29,7 @@ define Package/quectel-cm/install
|
||||
$(INSTALL_BIN) ./files/quectel.sh $(1)/lib/netifd/proto/
|
||||
|
||||
$(INSTALL_DIR) $(1)/etc/hotplug.d/net
|
||||
$(INSTALL_BIN) ./files/smp-affinity-pcie-mhi.sh $(1)/etc/hotplug.d/net/21-smp-affinity-pcie-mhi
|
||||
$(INSTALL_BIN) ./files/smp-affinity-mhi-pcie.sh $(1)/etc/hotplug.d/net/21-smp-affinity-mhi-pcie
|
||||
$(INSTALL_BIN) ./files/smp-affinity-qmi-usb.sh $(1)/etc/hotplug.d/net/22-smp-affinity-qmi-usb
|
||||
endef
|
||||
|
||||
|
||||
@@ -64,13 +64,6 @@ proto_quectel_setup() {
|
||||
return 1
|
||||
}
|
||||
|
||||
for i in $(seq 1 180); do
|
||||
if [ -e "$devpath/net/$ifname/qmap_mode" ]; then
|
||||
break
|
||||
fi
|
||||
sleep 1
|
||||
done
|
||||
|
||||
[ "$pdptype" = "ip" -o "$pdptype" = "ipv4v6" ] && ipv4opt="-4"
|
||||
[ "$pdptype" = "ipv6" -o "$pdptype" = "ipv4v6" ] && ipv6opt="-6"
|
||||
[ -n "$auth" ] || auth="none"
|
||||
|
||||
Reference in New Issue
Block a user