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 794120 - devices: Set NM_METERED_GUESS_YES for Bluetooth and WiMAX connections
devices: Set NM_METERED_GUESS_YES for Bluetooth and WiMAX connections
Status: RESOLVED FIXED
Product: NetworkManager
Classification: Platform
Component: Mobile broadband
unspecified
Other All
: Normal normal
: ---
Assigned To: NetworkManager maintainer(s)
NetworkManager maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2018-03-06 14:39 UTC by Philip Withnall
Modified: 2018-03-08 13:52 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
devices: Set NM_METERED_GUESS_YES for Bluetooth and WiMAX connections (1.38 KB, patch)
2018-03-06 14:39 UTC, Philip Withnall
none Details | Review
devices: Set NM_METERED_GUESS_YES for Bluetooth PANU/DUN connections (2.43 KB, patch)
2018-03-08 11:33 UTC, Philip Withnall
none Details | Review

Description Philip Withnall 2018-03-06 14:39:01 UTC
Trivial patch attached.
Comment 1 Philip Withnall 2018-03-06 14:39:06 UTC
Created attachment 369383 [details] [review]
devices: Set NM_METERED_GUESS_YES for Bluetooth and WiMAX connections

Bluetooth tethering is a common way to expose a metered 3G or 4G
connection from a phone to a laptop. WiMAX is in the same family of
mobile internet connections as the other GUESS_YES metered connection
types.

Signed-off-by: Philip Withnall <withnall@endlessm.com>
Comment 2 Beniamino Galvani 2018-03-07 15:01:30 UTC
Seems reasonable, but maybe we should set GUESS_YES only for PANU/DUN bluetooth connections and not for NAP (where we share the connectivity to another device)?
Comment 3 Thomas Haller 2018-03-07 17:33:17 UTC
I agree with Beniamino.

Also, WiMAX is essentially removed from NetworkManager. It only still exists in the libnm API to not break API. But you cannot do anything with it, especially, you cannot activate such a profile. Let's not set metered for WiMAX connections, the code will never be reached.
Comment 4 Philip Withnall 2018-03-08 11:33:44 UTC
Created attachment 369436 [details] [review]
devices: Set NM_METERED_GUESS_YES for Bluetooth PANU/DUN connections

Bluetooth tethering using DUN or PANU is a common way to expose a
metered 3G or 4G connection from a phone to a laptop. We deliberately
ignore NAP connections, which is where we’re sharing internet from the
laptop to another device.

We could also set GUESS_YES for WiMAX connections, but NetworkManager
doesn’t support them any more. Add a comment about that.

Signed-off-by: Philip Withnall <withnall@endlessm.com>