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 676345 - network menu: connection not selected
network menu: connection not selected
Status: RESOLVED OBSOLETE
Product: gnome-shell
Classification: Core
Component: network-indicator
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
: 679679 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2012-05-18 23:43 UTC by Matthias Clasen
Modified: 2021-07-05 14:44 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
screenshot (551.16 KB, image/png)
2012-05-18 23:43 UTC, Matthias Clasen
  Details
NetworkMenu: don't fail if infrastructure wifi has no access point (2.69 KB, patch)
2012-06-10 15:17 UTC, Giovanni Campagna
none Details | Review
NetworkMenu: don't fail if infrastructure wifi has no access point (2.70 KB, patch)
2013-02-15 20:27 UTC, Giovanni Campagna
none Details | Review

Description Matthias Clasen 2012-05-18 23:43:48 UTC
Created attachment 214426 [details]
screenshot

I just noticed that my shell network menu does currently not show my connected wifi as connected.
Comment 1 Giovanni Campagna 2012-06-10 15:16:50 UTC
I just had a similar problem, it was because the wireless card for some reason disassociated from the AP while staying connected, and therefore the network menu couldn't find a matching network.

A partial workaround follows.
Comment 2 Giovanni Campagna 2012-06-10 15:17:50 UTC
Created attachment 216062 [details] [review]
NetworkMenu: don't fail if infrastructure wifi has no access point

I don't know how, but it happens that connected wifi is not associated
with any access point (as reported by both NetworkManager and
iwconfig). In that case, treat it like an ad-hoc connection.
Comment 3 Giovanni Campagna 2012-06-25 17:13:26 UTC
Someone to review this one?

(It should be a safe patch)
Comment 4 Jasper St. Pierre (not reading bugmail) 2012-06-25 17:25:15 UTC
Review of attachment 216062 [details] [review]:

"I don't know how, but it happens that connected wifi is not associated
with any access point"

I'd like to see this get debugged before we plug random hacks into the shell like this one.
Comment 5 Giovanni Campagna 2012-06-25 17:52:03 UTC
I'd like too, but I'm no kernel developer - and that's the level of this problem, as dmesg had "Associated to 00:00:00:00:00:00" and iwconfig had "Access-Point:Not Associated"

(with iwlifi on a Intel Corporation Ultimate N WiFi Link 5300. I don't know the  model of AP in question)
Comment 6 Jasper St. Pierre (not reading bugmail) 2012-06-25 17:54:37 UTC
GNOME's policy is to not work around kernel and other stack bugs. CCing dcbw.
Comment 7 Dan Williams 2012-06-27 14:58:02 UTC
Logs from /var/log/messages and/or kernel logs would help here.  If the connection gets dropped for some reason, NM waits a short period of time for it to be re-established by the supplicant/driver (about 10 seconds) and during that time 'iwconfig' may report no association and NM cannot determine the associated AP (because there really isn't one).  This condition is either followed by a reassociation or by dropping the connection entirely.

Here, I think a UI should continue to show connected state until NM indicates that the connection is dropped, but simply not show which SSID is associated in the menu.  You can still use the current Active Connection's details though, like the connection ID or show the SSID from the active connection's wifi setting if you want, even though the wifi device's ActiveAccessPoint property is "/".
Comment 8 Giovanni Campagna 2012-06-27 16:03:37 UTC
Unfortunately, I'm not able to provide logs here (I was away when it happened, and I don't have access to that AP right now). In any case, it should be noted that the connection kept working with no interruptions, it was not failing or reconnecting automatically.

Btw, the proposed workaround (showing the connection ID) is what this patch implements.
Comment 9 Giovanni Campagna 2012-07-20 13:41:23 UTC
*** Bug 679679 has been marked as a duplicate of this bug. ***
Comment 10 Giovanni Campagna 2013-01-18 23:45:28 UTC
A few months later, and this patch is still in my queue. What are going to do? Merge it? Drop it? Wait and see if NetworkManager/drivers are fixed by now?
Comment 11 Jasper St. Pierre (not reading bugmail) 2013-01-19 00:48:01 UTC
(In reply to comment #10)
> A few months later, and this patch is still in my queue. What are going to do?
> Merge it? Drop it? Wait and see if NetworkManager/drivers are fixed by now?

My policy is that every hack we add to the shell to work around upstream bugs without a thorough investigation lessens the chance of those upstream bugs get fixed. If there has been a thorough investigation and this is the correct way forward, I will accept such a patch only if it has a giant comment clearly marking this as a workaround for an upstream bug, with references to both GNOME bugs and the upstream bugs.
Comment 12 Giovanni Campagna 2013-02-15 20:27:56 UTC
Created attachment 236292 [details] [review]
NetworkMenu: don't fail if infrastructure wifi has no access point

I don't know how, but it happens that connected wifi is not associated
with any access point (as reported by both NetworkManager and
iwconfig). In that case, treat it like an ad-hoc connection.

Rebased, per Bastien's request in bug 687853.
Comment 13 GNOME Infrastructure Team 2021-07-05 14:44:09 UTC
GNOME is going to shut down bugzilla.gnome.org in favor of  gitlab.gnome.org.
As part of that, we are mass-closing older open tickets in bugzilla.gnome.org
which have not seen updates for a longer time (resources are unfortunately
quite limited so not every ticket can get handled).

If you can still reproduce the situation described in this ticket in a recent
and supported software version, then please follow
  https://wiki.gnome.org/GettingInTouch/BugReportingGuidelines
and create a new ticket at
  https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/

Thank you for your understanding and your help.