mirror of
https://github.com/openwrt/packages.git
synced 2025-12-26 13:26:17 +04:00
Merge pull request #23551 from dnlplm/dp/mm-qmap-fix
modemmanager: report events for virtual netdevices
This commit is contained in:
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=modemmanager
|
||||
PKG_SOURCE_VERSION:=1.22.0
|
||||
PKG_RELEASE:=11
|
||||
PKG_RELEASE:=12
|
||||
|
||||
PKG_SOURCE_PROTO:=git
|
||||
PKG_SOURCE_URL:=https://gitlab.freedesktop.org/mobile-broadband/ModemManager.git
|
||||
|
||||
@@ -130,7 +130,20 @@ mm_report_event() {
|
||||
virtual="$(echo "$sysfspath" | cut -d'/' -f4)"
|
||||
[ "$virtual" = "virtual" ] && {
|
||||
mm_log "debug" "sysfspath is a virtual device ($sysfspath)"
|
||||
return
|
||||
case "$name" in
|
||||
"qmapmux"*)
|
||||
mm_log "debug" "rmnet netdevice $name"
|
||||
;;
|
||||
"qmimux"*)
|
||||
mm_log "debug" "qmi_wwan qmap netdevice $name"
|
||||
;;
|
||||
"mbimmux"*)
|
||||
mm_log "debug" "mbim vlan netdevice $name"
|
||||
;;
|
||||
*)
|
||||
return
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
# Track/untrack events in cache
|
||||
|
||||
Reference in New Issue
Block a user