]> git.ipfire.org Git - people/ms/ipfire-2.x.git/commitdiff
QMI: Modify profile so that the modem will connect using IPv4 qmi
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 26 Oct 2022 14:03:20 +0000 (16:03 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 26 Oct 2022 14:03:20 +0000 (16:03 +0200)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/initscripts/networking/functions.network

index 36541eb13792d0ab55ab52a9acfa7f12e62ea34f..d6f6d4c48d9a3db0b2e3711220591fe7a4ca1b4b 100644 (file)
@@ -217,6 +217,10 @@ qmi_configure_apn() {
        local username="${4}"
        local password="${5}"
 
+       # Set the modem into IPv4 mode if not done already
+       qmicli --device="${device}" --device-open-proxy \
+               --wds-modify-profile=3gpp,1,pdp-type=IPV4 &>/dev/null
+
        local args=(
                # We only support IPv4 right now
                "ip-type=4"