[gnome-control-center] network: load IMEI and Operator Name also in LTE-only modems



commit ec0f5b0b29e1776ae0ec4004a39278df8d4db356
Author: Aleksander Morgado <aleksander lanedo com>
Date:   Mon Nov 12 23:43:47 2012 +0100

    network: load IMEI and Operator Name also in LTE-only modems
    
    Also bump NetworkManager required version to 0.8.995, which is when
    'NM_DEVICE_MODEM_CAPABILITY_LTE' was introduced.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=688212

 configure.ac                       |    2 +-
 panels/network/net-device-mobile.c |    6 ++++--
 2 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index d07054b..77e66fe 100644
--- a/configure.ac
+++ b/configure.ac
@@ -90,7 +90,7 @@ CANBERRA_REQUIRED_VERSION=0.13
 GDKPIXBUF_REQUIRED_VERSION=2.23.0
 POLKIT_REQUIRED_VERSION=0.103
 GSD_REQUIRED_VERSION=3.6.0
-NETWORK_MANAGER_REQUIRED_VERSION=0.8.992
+NETWORK_MANAGER_REQUIRED_VERSION=0.8.995
 LIBNOTIFY_REQUIRED_VERSION=0.7.3
 GNOME_DESKTOP_REQUIRED_VERSION=3.5.91
 SCHEMAS_REQUIRED_VERSION=3.5.91
diff --git a/panels/network/net-device-mobile.c b/panels/network/net-device-mobile.c
index 4fba134..d24de4e 100644
--- a/panels/network/net-device-mobile.c
+++ b/panels/network/net-device-mobile.c
@@ -292,7 +292,8 @@ nm_device_mobile_refresh_ui (NetDeviceMobile *device_mobile)
 
         caps = nm_device_modem_get_current_capabilities (NM_DEVICE_MODEM (nm_device));
         if ((caps & NM_DEVICE_MODEM_CAPABILITY_GSM_UMTS) ||
-            (caps & NM_DEVICE_MODEM_CAPABILITY_CDMA_EVDO)) {
+            (caps & NM_DEVICE_MODEM_CAPABILITY_CDMA_EVDO) ||
+            (caps & NM_DEVICE_MODEM_CAPABILITY_LTE)) {
                 device_mobile_refresh_operator_name (device_mobile);
                 device_mobile_refresh_equipment_id (device_mobile);
         }
@@ -531,7 +532,8 @@ net_device_mobile_constructed (GObject *object)
         /* Only load proxies if we have broadband modems */
         caps = nm_device_modem_get_current_capabilities (NM_DEVICE_MODEM (device));
         if ((caps & NM_DEVICE_MODEM_CAPABILITY_GSM_UMTS) ||
-            (caps & NM_DEVICE_MODEM_CAPABILITY_CDMA_EVDO)) {
+            (caps & NM_DEVICE_MODEM_CAPABILITY_CDMA_EVDO) ||
+            (caps & NM_DEVICE_MODEM_CAPABILITY_LTE)) {
                 g_dbus_proxy_new_for_bus (G_BUS_TYPE_SYSTEM,
                                           G_DBUS_PROXY_FLAGS_NONE,
                                           NULL,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]