Network ESSID configured to "Use settings...essid" does not autoconnect

Bug #1440952 reported by RobinMHolt
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
wicd
New
Undecided
Unassigned
wicd (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

At work, we have a network consisting of dozens of access points, each with two separate ESSIDs, one for 2.4Ghz and one for 5Ghz with separate BSSIDs. An autoconnect to any will result in dhcp retrieving the same IP, etc.

wicd will only autoconnect to a BSSID which I had previously selected and asked it to connect.

Changing wicd-daemon as follows gets the behavior I had expected:

rholt@work:~/bzr/wicd$ bzr diff
=== modified file 'wicd/wicd-daemon.py'
--- wicd/wicd-daemon.py 2015-02-12 17:01:42 +0000
+++ wicd/wicd-daemon.py 2015-04-07 02:05:39 +0000
@@ -1404,7 +1404,8 @@
             self.Scan(sync=True)

         for x, network in enumerate(self.LastScan):
- if self.config.has_section(network['bssid']):
+ essid_key = "essid:%s" % network['essid']
+ if self.config.has_section(network['bssid']) or self.config.has_section(essid_key):
                 if self.debug_mode:
                     print network["essid"] + ' has profile'
                 if bool(network.get('automatic')):

With this change, wicd connects to the strongest AP signal at the time without me having to bring up the cli and select it.

This had an added benefit with my wifi tethering. When my Android phone sets up a hotspot, the BSSID changes each time, so now wicd-daemon connects to my phone without me needing to bring up the cli at all.

Tags: patch

Related branches

Revision history for this message
RobinMHolt (holt) wrote :
Revision history for this message
RobinMHolt (holt) wrote :

Sorry, my initial add said "two separate ESSIDs" when it should have said "two identical ESSIDs".

Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "Fix for current devel branch" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]

tags: added: patch
Changed in ubuntu:
status: New → Confirmed
affects: ubuntu → wicd (Ubuntu)
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.