You have been subscribed to a public bug:

Hi, I recently migrated to a new laptop, and wicd had trouble detecting
the wireless interface on it.  I'm using Debian sid on a Toshiba
dynabook RX2/T7J.

GetWirelessInterfaces() in wnettools.py looks for
/sys/class/net/*/wireless, but there's no such file on my system.
Changing this function to invoke iwgetid on every interface and look at
the exit code solved it (see attachment).  It works, but it's rather
inefficient.  Speaking of which, should the detection code be moved to
backends?  There could be an ioctl version of iface detection.  That may
or may not be useful since this is a one-shot thing that gets run at
startup, and besides, there are only so many interfaces to check....

I chose iwgetid over iwconfig because of this bug:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=526187
(Summary of the linked bug report: "iwconfig foo" returns 0 even if foo is not 
a wireless interface.)

There is a related bug, which is that the default values of the
interfaces were never used.  My wireless interface was in fact wlan0
(the hard-coded default), but wicd didn't try that interface.  In
WicdDaemon.ReadConfig(), a default is assigned when iface receives the
value None, but this never happens because the
WirelessDaemon.DetectWirelessInterface() applies str() before returning
the value, and turns the object None into the string "None".  Removing
the str() hasn't caused a problem for me so far, but is it needed for
some reason?

Finally, can wicd show a warning if it couldn't detect any wireless
interfaces?  I think the user should be alerted when there is a
potential problem.

** Affects: wicd
     Importance: Critical
     Assignee: David Paleino (dpaleino)
         Status: Fix Committed

** Affects: wicd (Ubuntu)
     Importance: Undecided
         Status: New

-- 
wicd can't detect wireless interface
https://bugs.launchpad.net/bugs/415719
You received this bug notification because you are a member of Ubuntu Bugs, 
which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to