After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 701504 - Deprecate allowed bands and network type setting in GSM connections
Deprecate allowed bands and network type setting in GSM connections
Status: RESOLVED FIXED
Product: NetworkManager
Classification: Platform
Component: Mobile broadband
0.9.x
Other Linux
: Normal normal
: ---
Assigned To: NetworkManager maintainer(s)
NetworkManager maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2013-06-03 10:18 UTC by Aleksander Morgado
Modified: 2013-06-05 18:00 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch to deprecate the settings (5.16 KB, patch)
2013-06-03 10:22 UTC, Aleksander Morgado
none Details | Review
Patch to remove the allowed-modes request in ModemManager1 modems (2.80 KB, patch)
2013-06-03 10:22 UTC, Aleksander Morgado
none Details | Review
Patch to deprecate the settings, added notes in the properties. (7.37 KB, patch)
2013-06-03 13:13 UTC, Aleksander Morgado
none Details | Review

Description Aleksander Morgado 2013-06-03 10:18:32 UTC
NetworkManager shouldn't request to use specific bands or network types (allowed/preferred modes) to ModemManager.

See https://mail.gnome.org/archives/networkmanager-list/2013-May/msg00233.html
Comment 1 Aleksander Morgado 2013-06-03 10:22:12 UTC
Created attachment 245905 [details] [review]
Patch to deprecate the settings
Comment 2 Aleksander Morgado 2013-06-03 10:22:47 UTC
Created attachment 245906 [details] [review]
Patch to remove the allowed-modes request in ModemManager1 modems
Comment 3 Jiri Klimes 2013-06-03 11:30:43 UTC
Maybe, we could also add a note about not using the properties in 0.9.10 directly into properties blurb description; like:

diff --git a/libnm-util/nm-setting-gsm.c b/libnm-util/nm-setting-gsm.c
index cc3408b..b922121 100644
--- a/libnm-util/nm-setting-gsm.c
+++ b/libnm-util/nm-setting-gsm.c
@@ -682,7 +682,9 @@ nm_setting_gsm_class_init (NMSettingGsmClass *setting_class)
 					    "specific network technologies.  The permitted values "
 					    "are: -1: any, 0: 3G only, 1: GPRS/EDGE only, "
 					    "2: prefer 3G, 3: prefer 2G, 4: prefer 4G/LTE, 5: 4G/LTE only. "
-					    "Note that not all devices allow network preference control.",
+					    "Notes: This property is deprecated and NetworkManager from 0.9.10 "
+		                            "onwards doesn't use this property when talking to ModemManager.",
+					    "Also, not all devices allow network preference control.",
 					    NM_SETTING_GSM_NETWORK_TYPE_ANY,
 					    NM_SETTING_GSM_NETWORK_TYPE_4G,
 					    NM_SETTING_GSM_NETWORK_TYPE_ANY,


Otherwise, the patches looks good to me.
Comment 4 Aleksander Morgado 2013-06-03 13:13:49 UTC
Created attachment 245920 [details] [review]
Patch to deprecate the settings, added notes in the properties.
Comment 5 Aleksander Morgado 2013-06-03 13:14:15 UTC
(In reply to comment #3)
> Maybe, we could also add a note about not using the properties in 0.9.10
> directly into properties blurb description; like:
> 
> diff --git a/libnm-util/nm-setting-gsm.c b/libnm-util/nm-setting-gsm.c
> index cc3408b..b922121 100644
> --- a/libnm-util/nm-setting-gsm.c
> +++ b/libnm-util/nm-setting-gsm.c
> @@ -682,7 +682,9 @@ nm_setting_gsm_class_init (NMSettingGsmClass
> *setting_class)
>                          "specific network technologies.  The permitted values
> "
>                          "are: -1: any, 0: 3G only, 1: GPRS/EDGE only, "
>                          "2: prefer 3G, 3: prefer 2G, 4: prefer 4G/LTE, 5:
> 4G/LTE only. "
> -                        "Note that not all devices allow network preference
> control.",
> +                        "Notes: This property is deprecated and NetworkManager
> from 0.9.10 "
> +                                    "onwards doesn't use this property when
> talking to ModemManager.",
> +                        "Also, not all devices allow network preference
> control.",
>                          NM_SETTING_GSM_NETWORK_TYPE_ANY,
>                          NM_SETTING_GSM_NETWORK_TYPE_4G,
>                          NM_SETTING_GSM_NETWORK_TYPE_ANY,
> 
> 
> Otherwise, the patches looks good to me.

I added those notes in the properties now, updated patch already submitted.
Comment 6 Dan Williams 2013-06-05 17:16:34 UTC
(In reply to comment #2)
> Created an attachment (id=245906) [details] [review]
> Patch to remove the allowed-modes request in ModemManager1 modems

Pushed.
Comment 7 Dan Williams 2013-06-05 18:00:35 UTC
(In reply to comment #4)
> Created an attachment (id=245920) [details] [review]
> Patch to deprecate the settings, added notes in the properties.

Pushed with some fixes to not abort compile becuase NM is internally still using these for old MM.