Re: Allowed and preferred modes setting in NM modem connections





NetworkManager currently allows to pass allowed/preferred modes (e.g. 2G
& 3G but 3G preferred) when requesting a connection to ModemManager. I'd
like to suggest to have these settings removed from the connection
profile (and therefore not passed to Simple.Connect()), and let system
preferences related applications (e.g. the GNOME Control Center) handle
these instead.

Changing these settings just before attempting a connection is not a
good idea, as the task involves resetting the radio interface in the
modem and launching registration in the network from scratch, which will
take some time.

Also, not all devices support changing modes, and not every device
supporting it allows the same set of allowed+preferred combinations, so
I don't think it's a good idea to have these kept together with the
connection profile settings (e.g APN, auth, user, pass), which could
themselves get re-used (e.g. if the SIM card is switched from one modem
to another).

What do you guys think?

I agree, lets deprecate the properties in libnm-util/nm-setting-gsm.c
and then remove them from the Simple Connect stuff in
nm-broadband-modem.c, leaving them for old ModemManager.  Anything
talking to new MM can then do what you suggest.


See https://bugzilla.gnome.org/show_bug.cgi?id=701504 for the
NetworkManager patches for this issue.

I also removed bands/modes changing capability from the Simple.Connect()
logic in the 'aleksander/api-breaks' branch of MM.

-- 
Aleksander


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