users should define wifi net preference, defaulting to heuristics

Bug #1245986 reported by Chad Miller on 2013-10-29
30
This bug affects 6 people
Affects Status Importance Assigned to Milestone
NetworkManager
Confirmed
Medium
network-manager (Ubuntu)
Wishlist
Unassigned

Bug Description

I'm at a hotel. There's a strong network AP in this room that my org owns, and a weaker hotel wifi AP elsewhere.

Before my org convened, I connected to the hotel wifi, so it's in the list of SSIDs that I automatically connect to. I would rather connect to my org's wifi in almost all cases. But, that doesn't happen, and it connects to the unwanted hotel Wifi AP. I should be able to order the SSIDs that I will automatically connect to my dragging them in the list and a lower network should never be used if a higher is available.

So, in picking a network to connect to, we should try each in order of user-defined preference and abandon any that are below some threshold of usefulness.

Additionally, if nothing more-preferred is available, pick among crypto'd networks, abandoning too weak.

Then pick according to strength if everything else is equal.

I describe best in code...

order_of_preference = sorted(((net.user_defined_order if net.strength > epsilon else INFINITY), (0 if net.has_crypto else 1), net.strength, net) for net in network_list)

net_to_use = order_of_preference[0][3]

<https://wiki.ubuntu.com/Networking#previous-networks>: "When reprioritization of networks has been implemented in NetworkManager, pressing on a network should make it draggable so that you can reorder the list (bug 1538972)."

ProblemType: Bug
DistroRelease: Ubuntu 13.10
Package: network-manager 0.9.8.0-0ubuntu22
ProcVersionSignature: Ubuntu 3.11.0-9.16-generic 3.11.2
Uname: Linux 3.11.0-9-generic i686
ApportVersion: 2.12.5-0ubuntu2.1
Architecture: i386
Date: Tue Oct 29 13:29:36 2013
IpRoute:
 default via 10.155.32.1 dev wlan0 proto static
 10.155.32.0/19 dev wlan0 proto kernel scope link src 10.155.51.98 metric 9
MarkForUpload: True
NetworkManager.state:
 [main]
 NetworkingEnabled=true
 WirelessEnabled=true
 WWANEnabled=true
SourcePackage: network-manager
UpgradeStatus: Upgraded to saucy on 2009-03-27 (1677 days ago)
WpaSupplicantLog:

nmcli-dev:
 DEVICE TYPE STATE DBUS-PATH
 wlan0 802-11-wireless connected /org/freedesktop/NetworkManager/Devices/1
 eth0 802-3-ethernet unavailable /org/freedesktop/NetworkManager/Devices/0
nmcli-nm:
 RUNNING VERSION STATE NET-ENABLED WIFI-HARDWARE WIFI WWAN-HARDWARE WWAN
 running 0.9.8.0 connected enabled enabled enabled enabled disabled

Chad Miller (cmiller) wrote :
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in network-manager (Ubuntu):
status: New → Confirmed
description: updated
Changed in network-manager (Ubuntu):
status: Confirmed → Triaged
Changed in network-manager:
importance: Unknown → Medium
status: Unknown → Confirmed
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.