modemmanager: add missing any option to allowedmode

The 'mmcli' also understands the option 'any'.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
This commit is contained in:
Florian Eckert 2025-03-27 16:19:45 +01:00 committed by Florian Eckert
parent 9ebb457377
commit 6b9b6fdace
2 changed files with 5 additions and 1 deletions

View File

@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=modemmanager
PKG_VERSION:=1.22.0
PKG_RELEASE:=23
PKG_RELEASE:=24
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://gitlab.freedesktop.org/mobile-broadband/ModemManager.git

View File

@ -684,6 +684,10 @@ proto_modemmanager_setup() {
modemmanager_set_allowed_mode "$device" \
"$interface" "5g"
;;
"any")
modemmanager_set_allowed_mode "$device" \
"$interface" "any"
;;
*)
modemmanager_set_preferred_mode "$device" \
"$interface" "${allowedmode}" "${preferredmode}"