From 792a7faf09bd8dad11eea6fe6c8a31c9df22e477 Mon Sep 17 00:00:00 2001 From: Robert Schmidt Date: Thu, 21 Aug 2025 18:19:04 +0200 Subject: [PATCH] MBIM stop script: remove IP address The CI detects whether a UE connected (and has a PDU session) by trying to read the IP address. It therefore assumes that as long as the UE is not connected, no IP would be present. With the existing stop_quectel_mbim.sh script, this was not the case; it would simply leave the IP address. Modify this script to flush all IP addresses on disconnect to remedy this. --- ci-scripts/mbim_scripts/stop_quectel_mbim.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ci-scripts/mbim_scripts/stop_quectel_mbim.sh b/ci-scripts/mbim_scripts/stop_quectel_mbim.sh index e7dbbaa43d..5115646b0d 100644 --- a/ci-scripts/mbim_scripts/stop_quectel_mbim.sh +++ b/ci-scripts/mbim_scripts/stop_quectel_mbim.sh @@ -1,3 +1,7 @@ set -x sudo mbimcli -p -d /dev/cdc-wdm0 --set-radio-state=off + +IF=wwan0 +sudo ip link set ${IF} down +sudo ip addr flush dev ${IF}