summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Couzens2024-08-14 12:35:58 +0000
committerDavid Bauer2025-05-31 20:41:00 +0000
commitd39b53b7b0c91133e12db3dec1e73ef39a791e93 (patch)
tree6fe08603b488a5ac6640edb0f5cd1ca41b88d21e
parentf1ad9c1cfba3c1467af2c289ee40de64aae09531 (diff)
downloaduqmi-d39b53b7b0c91133e12db3dec1e73ef39a791e93.tar.gz
uqmid: implement roaming support (allow and forbid)
Set roaming flag on the wds profile which is used to connect to the network. Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
-rw-r--r--uqmid/modem_tx.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/uqmid/modem_tx.c b/uqmid/modem_tx.c
index 0e405f8..dc345e2 100644
--- a/uqmid/modem_tx.c
+++ b/uqmid/modem_tx.c
@@ -148,6 +148,8 @@ int tx_wds_modify_profile(struct modem *modem, struct qmi_service *wds, request_
if (password)
profile_req.data.password = (char *)password;
+ qmi_set(&profile_req, roaming_disallowed_flag, !modem->config.roaming);
+
int ret = qmi_set_wds_modify_profile_request(msg, &profile_req);
if (ret) {
LOG_ERROR("Failed to encode get profile list");