uqmid: implement roaming support (allow and forbid)
authorAlexander Couzens <[email protected]>
Wed, 14 Aug 2024 12:35:58 +0000 (14:35 +0200)
committerDavid Bauer <[email protected]>
Sat, 31 May 2025 20:41:00 +0000 (22:41 +0200)
Set roaming flag on the wds profile which is used to connect
to the network.

Signed-off-by: Alexander Couzens <[email protected]>
uqmid/modem_tx.c

index 0e405f8e1966187ed1bac7b88bd4c98ba8dac196..dc345e2d359eff2adf8b2aa9f619421fdae780e5 100644 (file)
@@ -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");