Network manager caches previously seen access points too long

Bug #1331753 reported by Alan Pope 🍺🐧🐱 🦄
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
indicator-network (Ubuntu)
Invalid
Undecided
Unassigned
network-manager (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

Using mako #87.
Enable wifi on deivce.
Go for a drive to a friend or relatives house where they have wifi.
When you arrive, pull down the network indicator and try to find the access point.

What you should see is a small number of access points nearby, with the strongest signal ones being obvious.

What actually happens is for some time you see every access point the phone saw along the journey between locations.

See video:- https://www.youtube.com/watch?v=lQMLik-WH5o

I would expect the number of access points listed to age/decay faster. I guess we haven't noticed this before on the desktop because people don't usually do what I did with a laptop/desktop.

ProblemType: Bug
DistroRelease: Ubuntu 14.10
Package: network-manager 0.9.8.8-0ubuntu18
Uname: Linux 3.4.0-5-mako armv7l
ApportVersion: 2.14.3-0ubuntu1
Architecture: armhf
CRDA: Error: [Errno 2] No such file or directory: 'iw'
Date: Wed Jun 18 20:30:02 2014
IfupdownConfig:
 # interfaces(5) file used by ifup(8) and ifdown(8)
 # Include files from /etc/network/interfaces.d:
 source-directory /etc/network/interfaces.d
InstallationDate: Installed on 2014-06-18 (0 days ago)
InstallationMedia: Ubuntu Utopic Unicorn (development branch) - armhf (20140618)
IpRoute:
 default via 192.168.1.1 dev wlan0 proto static
 10.145.38.0/24 dev rmnet_usb1 proto kernel scope link src 10.145.38.242 metric 13
 192.168.1.0/24 dev wlan0 proto kernel scope link src 192.168.1.105 metric 9
PciNetwork:

SourcePackage: network-manager
UpgradeStatus: No upgrade log present (probably fresh install)
mtime.conffile..etc.dbus.1.system.d.org.freedesktop.NetworkManager.conf: 2014-06-11T20:47:57
nmcli-dev:
 DEVICE TYPE STATE DBUS-PATH
 wlan0 802-11-wireless connected /org/freedesktop/NetworkManager/Devices/1
 /ril_0 gsm connected /org/freedesktop/NetworkManager/Devices/0
nmcli-nm:
 RUNNING VERSION STATE NET-ENABLED WIFI-HARDWARE WIFI WWAN-HARDWARE WWAN
 running 0.9.8.8 connected enabled enabled enabled enabled enabled

Revision history for this message
Alan Pope 🍺🐧🐱 🦄 (popey) wrote :
affects: network-manager (Ubuntu) → indicator-network (Ubuntu)
Revision history for this message
Launchpad Janitor (janitor) wrote :

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

Changed in indicator-network (Ubuntu):
status: New → Confirmed
Revision history for this message
Antti Kaijanmäki (kaijanmaki) wrote :

To verify this, I would need to see how many access points NM is actually reporting.

Alan, next time you see this plug in an usb cable and using phablet-shell please get me the output of:

$ dbus-send --system --print-reply --dest=org.freedesktop.NetworkManager /org/freedesktop/NetworkManager/Devices/1 org.freedesktop.NetworkManager.Device.Wireless.GetAccessPoints
 (if that fails, try ../Devices/0 instead)

$ dbus-send --session --print-reply --dest=com.canonical.indicator.network /com/canonical/indicator/network/phone org.gtk.Menus.Start array:uint32:0,1

Thanks!

Revision history for this message
Antti Kaijanmäki (kaijanmaki) wrote :

Oh, actually instead of that first dbus-send command, please, do:

$ nmcli d wifi list

Revision history for this message
Alan Pope 🍺🐧🐱 🦄 (popey) wrote :

No problem. Will do.

Revision history for this message
Alan Pope 🍺🐧🐱 🦄 (popey) wrote :

Here you go. This was the result of running those two commands every couple of minutes.

Started at home with very few access points visible (155448) . Went for a 3 mile drive to ACC so where you see ACC_UK in the list of access points that's the end of my journey (at 161214) then I turned around and came home. Note that the "popey" ones are still in the list (160413) long after I left home, and ACC_UK is still in the list after I arrive home despite never connecting to it and it being 3 miles away.

Hope that's helpful.

Revision history for this message
Antti Kaijanmäki (kaijanmaki) wrote :

Thanks Alan!

Returning this to network-manager based on those logs.
It's either NM or the wireless driver that keeps caching these.

Changed in network-manager (Ubuntu):
status: New → Confirmed
Changed in indicator-network (Ubuntu):
status: Confirmed → Invalid
Revision history for this message
Mathieu Trudel-Lapierre (cyphermox) wrote :

Please see https://wiki.ubuntu.com/DebuggingNetworkManager and follow the steps outlined on how to get wpasupplicant debug logs, if this bug can still be reproduced on newer images.

Changed in network-manager (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for network-manager (Ubuntu) because there has been no activity for 60 days.]

Changed in network-manager (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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