mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-30 21:20:10 +01:00
wwan/ofono: correct MMS proxy property lookup
The property name under `Settings` dict is just `Proxy`, unlike the one outside which is `MessageProxy`. See [1]. [1] https://kernel.googlesource.com/pub/scm/network/ofono/ofono/+/refs/heads/master/doc/connman-api.txt#253 Fixes:a6e81af87f('wwan: add support for using oFono as a modem manager') (cherry picked from commit264fed4778) (cherry picked from commit7f7fd4244c)
This commit is contained in:
parent
03c07cc765
commit
ad2d7a7362
1 changed files with 3 additions and 3 deletions
|
|
@ -856,8 +856,8 @@ handle_settings(GVariant *v_dict, gpointer user_data)
|
|||
}
|
||||
}
|
||||
|
||||
if (g_variant_lookup(v_dict, "MessageProxy", "&s", &s)) {
|
||||
_LOGI("MessageProxy: %s", s);
|
||||
if (g_variant_lookup(v_dict, "Proxy", "&s", &s)) {
|
||||
_LOGI("(MMS) Proxy: %s", s);
|
||||
if (s && nm_utils_parse_inaddr_bin(AF_INET, s, NULL, &address_network)) {
|
||||
const NMPlatformIP4Route mms_route = {
|
||||
.network = address_network,
|
||||
|
|
@ -871,7 +871,7 @@ handle_settings(GVariant *v_dict, gpointer user_data)
|
|||
|
||||
nm_l3_config_data_add_route_4(priv->l3cd_4, &mms_route);
|
||||
} else
|
||||
_LOGW("invalid MessageProxy: %s", s);
|
||||
_LOGW("invalid (MMS) Proxy: %s", s);
|
||||
}
|
||||
|
||||
ret = TRUE;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue