The modem saves the permitted technology configuration in the modem
itself. If the technology configuration is deleted in the uci, this is
not passed on to the modem. This means that the previously saved
technology configuration is remains in the modem and is therefore still
active. By setting the technology to 'any', if no option is set, all
technologies are allowed again.
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
PKG_NAME:=modemmanager
PKG_SOURCE_VERSION:=1.22.0
PKG_NAME:=modemmanager
PKG_SOURCE_VERSION:=1.22.0
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://gitlab.freedesktop.org/mobile-broadband/ModemManager.git
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://gitlab.freedesktop.org/mobile-broadband/ModemManager.git
modemmanager_check_state "$device" "${modemstatus}" "$pincode"
[ "$?" -ne "0" ] && return 1
modemmanager_check_state "$device" "${modemstatus}" "$pincode"
[ "$?" -ne "0" ] && return 1
- [ -z "${allowedmode}" ] || {
+ if [ -z "${allowedmode}" ]; then
+ modemmanager_set_allowed_mode "$device" "$interface" "any"
+ else
case "$allowedmode" in
"2g")
modemmanager_set_allowed_mode "$device" \
case "$allowedmode" in
"2g")
modemmanager_set_allowed_mode "$device" \
esac
# check error for allowed_mode and preferred_mode function call
[ "$?" -ne "0" ] && return 1
esac
# check error for allowed_mode and preferred_mode function call
[ "$?" -ne "0" ] && return 1
# always cleanup before attempting a new connection, just in case
modemmanager_cleanup_connection "${modemstatus}"
# always cleanup before attempting a new connection, just in case
modemmanager_cleanup_connection "${modemstatus}"