Using the same method used by other protocol handlers like uqmi.
Fixes https://github.com/openwrt/packages/issues/11383
Signed-off-by: Aleksander Morgado <aleksander@aleksander.es>
(cherry picked from commit
41552c1cc225066bd1f35685ccd5dcf83a21b7e5)
PKG_NAME:=modemmanager
PKG_VERSION:=1.12.10
-PKG_RELEASE:=1
+PKG_RELEASE:=2
PKG_SOURCE:=ModemManager-$(PKG_VERSION).tar.xz
PKG_SOURCE_URL:=https://www.freedesktop.org/software/ModemManager
proto_notify_error "${interface}" PREFIX_MISSING
return
}
-
mask=$(cdr2mask "${prefix}")
- # TODO: mtu reporting in proto handler
+ [ -n "${mtu}" ] && /sbin/ip link set dev "${wwan}" mtu "${mtu}"
proto_init_update "${wwan}" 1
proto_set_keep 1
return
}
- # TODO: mtu reporting in proto handler
+ [ -n "${mtu}" ] && /sbin/ip link set dev "${wwan}" mtu "${mtu}"
proto_init_update "${wwan}" 1
proto_set_keep 1