Wicd can never connect to unsecured wifi
OK - I know some consider wicd outdated. I also know about he dangers of connecting to open wifi - so I'm not really seeking advice on the two points above. But if anybody here still uses wicd or has some useful suggestions (aside from ditching it :-) ) - I'd really appreciate some hints.
I've been using Wicd with Fluxbox on Slackware for a good number of years - because both are lightweight and do the job I need them to do. For a good number of years now, over several OS upgrades and re-installs, I have not been able to use wicd to connect to unsecured networks. It quickly goes to "Obtaining IP address ..." and after a while it just shows "Disconnected". And again, and again. I have no problem connecting to WPA or WPA2 networks. This is happening anywhere I try to connect to an unsecured network - airports, bars, hotels - so I don't think it is a bug with any specific WiFI access points model. At the moment I am on Slack 14.1 with kernel 3.10.17 and Wicd 1.7.2.4. But I've had this use across at least three Slackware major versions - so I don't think it is specific to the kernel or the version of Wicd. This laptop has a Broadcom BCM43228 wifi chip. I have enabled debugging for the wicd-client, and I get the following on the command line - but I don't really see anything that seems relevant here: Code:
ERROR:dbus.connection:Exception in handler for D-Bus signal: Code:
2015/11/02 07:41:40 :: iwconfig eth1 |
Wicd is outdated? But I use it because it works better than Network Manager. :o
Only thing I can think of from what you have posted is ... shouldn't your wifi interface be called something like "wlan" instead of "eth"? |
You could clear the log and try again, there actually is useful information logged.
|
If you have a Firewall script, make sure wlan0 is listed in the connections along with eth0, etc.
Check and make sure the unsecured wi-fi doesn't require secondary authentication such as a username and password to an intranet. Also take notice the DBus and Python errors. Did you update dbus or python2 on your system at any time? Is DBus daemon running? |
Thanks to everybody for responding. Please see below individual replies:
@pzognar - Yes, normally wifi interfaces tend to be called wlan0. But on this particular machine, ethernet is eth0 and wifi is eth1. I think I've seen this before - it seems either a choice of the kernel or of udev - and I would be inclined to think it doesn't have anything to do with my problem - as secured networks work fine. But maybe it has? @Emerson - I have cleared wicd.log and the following information is logged while attempting to join an unsecured network: Code:
2015/11/04 02:08:29 :: Connecting to wireless network Posadas Zona 22 @ReaperX7 - The wifi works fine for secured networks - I would imagine any firewall issues would affect both secured and unsecured connections, no? My firewall is pretty straight forward, created using Eric's Slackware easy firewall generator. Also, if there would be an issue with secondary authentication on the wifi, I wouldn't imagine it comes into play here - as I can't even get an IP address. How can I make it to any portal for the authentication without an IP address? The dbus daemon seems to be working: Code:
root@e130:/var/log/wicd# ps -A | grep dbus I have also tried resetting the /etc/wicd and /var/lib/wicd/configurations directories - in case in contained any old incompatible settings - but it doesn't make any difference. Any other suggestions welcome. Can anybody here confirm that they have used wicd in the past with unsecured wifi connections? Then again, maybe it isn't wicd. Maybe I should look into upgrading the firmware blob for my wifi chip - assuming it uses one. |
Quote:
http://antix.freeforums.org/post43683.html#p43683 Code:
Network: Card-1: Broadcom NetXtreme BCM5751M Gigabit Ethernet PCI Express Edit: I have used my other netbooks on open wifi connections while traveling using wicd also. So no problems with open networks either. Using Intel, Raylink, and Realtek wifi chips also. 2nd edit: Using Salix and Slackel on a couple of netbooks. http://forum.salixos.org/viewtopic.php?p=35699#p35699 Salix Fluxbox version I am using uses wicd also. But I am on Intel, not Broadcom in SaliX. |
Quote:
|
@allend - could dhcpcd not work only for unsecured connections, but work perfectly fine for the secured ones and for ethernet? Would that be possible I wonder? I'll give it a go when I get a minute though.
|
There is a configuration file in /etc/wicd, among other settings there are network interfaces defined. Can't recall the exact name of that file now, but you will find it. I'm guessing that bogus eth1 comes from there.
|
Quote:
@OP, I don't use wicd, so can you provide a wicd.log with a successful connection to a secured network for comparison? I find it odd that it doesn't show any attempt at getting an IPv4 address, and I'm curious if that is just not outputted or if it is related to your issue. Can you also try connecting manually with iwconfig? Code:
iwconfig eth1 essid "unsecured_essid_here" Code:
iwconfig eth1 key open mode Mananged essid "unsecured_essid_here" channel 6 |
Member response
Hi,
Quote:
Hope this helps. Have fun & enjoy! :hattip: |
OK - I might have found an answer. After poking around at kernel modules, and trying the bcma module instead of the rndis_wlan which the laptop uses, the unsecured connection started working. First I though it was because of the bcma module - but when I took a closer look, it was back to using the rndis_wlan driver. After another restart, it refused to work again. After some trial and error, it would appear that the rndis_wlan module needs to be loaded *before* the wl module. I'm not sure I fully understand what is happening - as sometimes I even found the wl module loaded alone, without the rndis_wlan module - with a full secured wifi connection working. It seems that rndis_wlan isn't needed at connection time for a secured connection - but it is needed for an unsecured connection. Also - after connecting to a secured network, it won't reconnect to an unsecured one until I unload and reload wl. This is all very empirical guessing, mind you - based on some simple experiments.
I have now added the following in /etc/modprobe.d/wl.conf: Code:
softdep wl pre: rndis_wlan At least I found a solution (of sorts) - but I wouldn't call it elegant or easy. If anybody has a deeper understanding of the kernel modules above - and maybe a better solution - I am very much willing to give it a try. Edit 1: So the solution seems to be (in two parts): 1. rndis_wlan module needs to load before wl module 2. Both modules need to be reloaded when changing from a secure to a non-secure connection (but not when changing from a non-secure to a secure one). |
All times are GMT -5. The time now is 12:09 AM. |