Unable to connect to ad-hoc network
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
wicd |
Fix Released
|
Medium
|
Unassigned |
Bug Description
Running on Feisty.
I am unable to connect to a ad-hoc network as Wicd appears to set the interface up in managed mode, even though it recognised that the network is ad-hoc.
This causes the whole application to get stuck in the connecting stage, the only solution is to quit the gui and stop/start the deamon.
Simon.
Related branches
Adam Blackburn (adamblackburn) wrote : | #1 |
mungewell (simon-mungewell) wrote : | #2 |
mungewell (simon-mungewell) wrote : | #3 |
Dan O'Reilly (oreilldf) wrote : | #4 |
Could you start the connection process in wicd, then once it gets stuck assigning the ip, run a terminal and post the output of iwconfig?
mungewell (simon-mungewell) wrote : | #5 |
whilst connected to managed network
---
simon@tupak:~$ ifconfig wlan0
wlan0 Link encap:Ethernet HWaddr 00:0F:B5:D4:66:F8
inet addr:192.168.1.100 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::20f:
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:74 errors:0 dropped:0 overruns:0 frame:0
TX packets:1371 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:8822 (8.6 KiB) TX bytes:360008 (351.5 KiB)
simon@tupak:~$ iwconfig wlan0
wlan0 IEEE 802.11g ESSID:"linksys"
RTS thr:off Fragment thr=2346 B
Link Quality=36/64 Signal level=37/65
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
---
Whilst attempting to connect to ad-hoc network, stuck at 'setting IP' stage (actually using fixed IP of 10.20.30.
---
simon@tupak:~$ ifconfig wlan0
wlan0 Link encap:Ethernet HWaddr 00:0F:B5:D4:66:F8
inet addr:10.20.30.40 Bcast:10.
inet6 addr: fe80::20f:
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:119 errors:0 dropped:0 overruns:0 frame:0
TX packets:1440 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:11272 (11.0 KiB) TX bytes:367557 (358.9 KiB)
simon@tupak:~$ iwconfig wlan0
wlan0 IEEE 802.11g ESSID:"calgarymesh"
RTS thr:off Fragment thr=2346 B
Link Quality=35/64 Signal level=38/65
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
---
Note 'managed' and BSSID is wrong - i.e. it has not connected to other wireless node.
I should also mention that this is Xubuntu Feisty. Thanks for the speedy replies, oh how I love the open source model....
Simon
Dan O'Reilly (oreilldf) wrote : | #6 |
Try doing this with the fixed networking.py. I'm wondering if the channel variable being set to None is causing some problems during the connection process.
mungewell (simon-mungewell) wrote : | #7 |
Hi,
Using the suggested files from https:/
On 'connect' it would appear to choke before it starts setting up connection.
---
connecting to wireless network...
Traceback (most recent call last):
File "/opt/wicd/gui.py", line 927, in connect
wireless.
File "/var/lib/
reply_message = self._connectio
dbus.DBusException: org.freedesktop
File "/var/lib/
retval = candidate_
File "/opt/wicd/
return self.wifi.
File "/opt/wicd/
self.
AttributeError: Wireless instance has no attribute 'global_dns_1'
---
Cheers,
Simon.
Dan O'Reilly (oreilldf) wrote : | #8 |
Oops, looks like you're not using version 1.3.3. My fault for not asking about that first. Download wicd 1.3.3 from www.sourceforge
Changed in wicd: | |
assignee: | nobody → oreilldf |
status: | New → In Progress |
Luis Nogueira (lnogueir-med) wrote : | #9 |
I am unable to connect to a windows xp protect ad-hoc network! The only way I can connect it's unprotected the network...
I am running ubuntu gutsy and wicd 1.3.8!
blasco51 (blasco-bonito) wrote : | #10 |
I also am unable to connect to ad-hoc networks. wicd does not change mode from managed to ad-hoc.
I am running wicd 1.5.3 on ubuntu 8.04.1 with ath5k driver
I am using this method: a pre-connection script configured on the ad-hoc network:
ifconfig wlan0 down
iwconfig wlan0 mode ad-hoc
with it wicd connects to the ad-hoc network, the link works well but the network does not get a disconnect button. why?
I tried to configure a disconnect script on the ad-hoc network:
ifconfig wlan0 down
iwconfig wlan0 mode managed
but it is not executed :-( is this related to the missing disconnect button?
so the only impractical way is to put it as pre-connection script on every managed network.
guanx (guanx-bac) wrote : | #11 |
- wicd-1.5.9-setmode.patch Edit (973 bytes, text/x-diff)
I also have this problem. Please bring up the interface as late as possible. Please refer to the attached patch.
blasco51 (blasco-bonito) wrote : Re: [Bug 129608] Re: Unable to connect to ad-hoc network | #12 |
I've applied the patch, but wicd continues to fail to connect to ad-hoc
network.
Blasco
2009/3/17 guanx <email address hidden>
> I also have this problem. Please bring up the interface as late as
> possible. Please refer to the attached patch.
>
> ** Attachment added: "wicd-1.
> http://
>
> --
> Unable to connect to ad-hoc network
> https:/
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in wicd: In Progress
>
> Bug description:
> Running on Feisty.
>
> I am unable to connect to a ad-hoc network as Wicd appears to set the
> interface up in managed mode, even though it recognised that the network is
> ad-hoc.
>
> This causes the whole application to get stuck in the connecting stage, the
> only solution is to quit the gui and stop/start the deamon.
> Simon.
>
--
Antonio-Blasco Bonito
Via Vico Fiaschi 35
54033 Carrara Avenza MS
tel. 0585-091000
cell. 340-6199450
Dan O'Reilly (oreilldf) wrote : | #13 |
blasco,
are you still using 1.5.3? Could you upgrade to 1.5.9 and try again (if you're not using it already). Try it with the patch applied as well.
blasco51 (blasco-bonito) wrote : | #14 |
dpkg -l wicd
Desired=
| Status=
|/ Err?=(none)
uppercase=bad)
||/ Nome Versione Descrizione
+++-===
ii wicd 1.5.9 wired and wireless network manager
2009/3/19 Dan O'Reilly <email address hidden>
> blasco,
>
> are you still using 1.5.3? Could you upgrade to 1.5.9 and try again (if
> you're not using it already). Try it with the patch applied as well.
>
> --
> Unable to connect to ad-hoc network
> https:/
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in wicd: In Progress
>
> Bug description:
> Running on Feisty.
>
> I am unable to connect to a ad-hoc network as Wicd appears to set the
> interface up in managed mode, even though it recognised that the network is
> ad-hoc.
>
> This causes the whole application to get stuck in the connecting stage, the
> only solution is to quit the gui and stop/start the deamon.
> Simon.
>
--
Antonio-Blasco Bonito
Via Vico Fiaschi 35
54033 Carrara Avenza MS
tel. 0585-091000
cell. 340-6199450
SirG (sirg-nj) wrote : | #15 |
- wicd-1.5.9-networking.patch Edit (656 bytes, text/plain)
Running 1.5.9 on intrepid/EEE PC. The 'card' is AtherosAR928X, using ath9k driver.
At least with this chipset, the mode cannot be set when the interface is up:
# iwconfig wlan0 mode Ad-Hoc
Error for wireless request "Set Mode" (8B06) :
SET failed on device wlan0 ; Device or resource busy.
The above patch does NOT work, of course.
Workaround:
- create a pre-connection script with:
ifconfig wlan0 down
iwconfig wlan0 mode Ad-Hoc
- create a disconnection script with:
ifconfig wlan0 down
iwconfig wlan0 mode Managed
The per-network button is still stuck at 'Connect' with the above; use the 'Disconnect' button at the top of the window.
Workaround 2:
SirG (sirg-nj) wrote : | #16 |
Ooops. Too quick on the "Save" button. Continuing...
Apply the attached patch (note the directory). This neither fixes the Connect/Disconnect button state nor causes the connection strength to be reported properly when connected. I will investigate these too.
Does someone know if setting the wireless mode is supposed to work when the interface is up? Seems unlikely.
It would be helpful if a few people with other chipsets reported here whether changing the wireless mode works for them when the interface is up/down. Do (as root) 'ifconfig wlan0 [up|down]; iwconfig wlan0 mode Managed'.
tetzlav (tetzlav-leipzig) wrote : | #17 |
- wicd_set-mode-fix.patch Edit (846 bytes, text/plain)
Jupp! :)
The attached patch solved this Problem for me.
tetzlav (tetzlav-leipzig) wrote : | #18 |
k, now another bug:
With wicd_set-
Dan O'Reilly (oreilldf) wrote : | #19 |
It definitely looks like setting the mode needs to be done with the interface down. I'll try to investigate some of the other issues (Disconnect button not appearing) as well.
Changed in wicd: | |
importance: | Undecided → Medium |
silasdavis (forums-silasdavis) wrote : | #20 |
I can report the same issue as laid out by SirG. I have the following chipset:
03:00.0 Network controller: Intel Corporation PRO/Wireless 3945ABG Network Connection (rev 02)
Subsystem: Intel Corporation PRO/Wireless 3945ABG Network Connection
Flags: bus master, fast devsel, latency 0, IRQ 26
Memory at d0000000 (32-bit, non-prefetchable) [size=4K]
Capabilities: [c8] Power Management version 2
Capabilities: [d0] Message Signalled Interrupts: Mask- 64bit+ Count=1/1 Enable+
Capabilities: [e0] Express Legacy Endpoint, MSI 00
Capabilities: [100] Advanced Error Reporting
UESta: DLP- SDES- TLP- FCP- CmpltTO- CmpltAbrt- UnxCmplt- RxOF- MalfTLP- ECRC- UnsupReq+ ACSVoil-
UEMsk: DLP- SDES- TLP- FCP- CmpltTO- CmpltAbrt- UnxCmplt- RxOF- MalfTLP- ECRC- UnsupReq- ACSVoil-
UESvrt: DLP+ SDES- TLP- FCP+ CmpltTO- CmpltAbrt- UnxCmplt- RxOF+ MalfTLP+ ECRC- UnsupReq- ACSVoil-
CESta: RxErr- BadTLP- BadDLLP+ Rollover- Timeout- NonFatalErr-
CESta: RxErr- BadTLP- BadDLLP- Rollover- Timeout- NonFatalErr-
AERCap: First Error Pointer: 14, GenCap- CGenEn- ChkCap- ChkEn-
Capabilities: [140] Device Serial Number 5c-9a-cf-
Kernel driver in use: iwl3945
Kernel modules: iwl3945
I find that "iwconfig wlan0 essid <network> mode Ad-Hoc" fails when the wlan0 is up in managed mode to start with:
Error for wireless request "Set Mode" (8B06) :
SET failed on device wlan0 ; Device or resource busy.
However, the sequence:
ifconfig wlan0 down
iwconfig wlan0 mode Ad-Hoc
ifconfig wlan0 up
iwconfig wlan0 essid <network>
Sucessfully allows me to connect. It would be helpful if wicd could manage this, as this was one of the main reasons for me swapping from pure wpa_supplicant (which requires ap_scan=2 being added to allow adhoc networks to be associated with properly).
Thanks for your work.
Sage Major (sage-majorfamily) wrote : | #21 |
Hi guys. I wanted to jump in here and add my experience with the patch.
After installing the patch wicd works better. I now get an IP and the tray icon shows connected. The main app however does not think I am connected at will try and reconnect every minute or so taking down my network.
If it matters I am connecting to my cell phone a HTC pro running WMWIFIRouter as a access point
I am using a Dell I bought preinstalled with Ubuntu 8.04
My card is a intel 3945ABC
Sage
Dan O'Reilly (oreilldf) wrote : | #22 |
@Sage Major
What does the output of iwconfig and ifconfig look like after you get connected?
Sage Major (sage-majorfamily) wrote : | #23 |
- Screenshot-1.png Edit (623.2 KiB, image/png; name="Screenshot-1.png")
In the time it ook em to cut and paste this it rescanned 3 times
at the bottom it says connected to sage_htc 0db with an ip listed.
The connect button is lit available. I have attached a screen shot.
root@sage-laptop:~# ifconfig -a wlan0
wlan0 Link encap:Ethernet HWaddr 00:1f:3c:b6:91:f2
inet6 addr: fe80::21f:
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:17 errors:0 dropped:0 overruns:0 frame:0
TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:1550 (1.5 KB) TX bytes:1296 (1.2 KB)
root@sage-laptop:~# iwconfig wlan0
wlan0 IEEE 802.11abg ESSID:"sage_htc"
Retry min limit:7 RTS thr:off Fragment thr=2352 B
Link Quality:0 Signal level:0 Noise level:0
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
On Fri, May 15, 2009 at 9:19 AM, Dan O'Reilly <email address hidden> wrote:
> @Sage Major
>
> What does the output of iwconfig and ifconfig look like after you get
> connected?
>
> --
> Unable to connect to ad-hoc network
> https:/
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in wicd: In Progress
>
> Bug description:
> Running on Feisty.
>
> I am unable to connect to a ad-hoc network as Wicd appears to set the interface up in managed mode, even though it recognised that the network is ad-hoc.
>
> This causes the whole application to get stuck in the connecting stage, the only solution is to quit the gui and stop/start the deamon.
> Simon.
>
Dan O'Reilly (oreilldf) wrote : | #24 |
Wicd is disconnecting you because you have no signal strength (0 link quality and 0 signal level in iwconfig), which it interprets to mean your connection is lost. Are you actually able to use the connection once you make it?
Sage Major (sage-majorfamily) wrote : | #25 |
Yes i can use the connection when it shows as connected in the tray. Iposted my previous message from it. When it goes to searching i loose my connection.
-----Original Message-----
From: Dan O'Reilly <email address hidden>
Sent: Friday, May 15, 2009 10:44 AM
To: <email address hidden>
Subject: [Bug 129608] Re: Unable to connect to ad-hoc network
Wicd is disconnecting you because you have no signal strength (0 link
quality and 0 signal level in iwconfig), which it interprets to mean
your connection is lost. Are you actually able to use the connection
once you make it?
--
Unable to connect to ad-hoc network
https:/
You received this bug notification because you are a direct subscriber
of the bug.
Status in wicd: In Progress
Bug description:
Running on Feisty.
I am unable to connect to a ad-hoc network as Wicd appears to set the interface up in managed mode, even though it recognised that the network is ad-hoc.
This causes the whole application to get stuck in the connecting stage, the only solution is to quit the gui and stop/start the deamon.
Simon.
Dan O'Reilly (oreilldf) wrote : | #26 |
Ok, sounds like your wireless driver may just be buggy then. You can work around it by disabling the "Automatically reconnect on connection loss" checkbox in wicd preferences. This should keep wicd from killing your connection and trying to establish a new one.
bblokar (bblokar) wrote : | #27 |
Same problem here.
Adam Blackburn (adamblackburn) wrote : | #28 |
Does Dan's proposed solution below fix the problem?
Ok, sounds like your wireless driver may just be buggy then. You can work around it by disabling the "Automatically reconnect on connection loss" checkbox in wicd preferences. This should keep wicd from killing your connection and trying to establish a new one.
Changed in wicd: | |
status: | In Progress → Incomplete |
Sage Major (sage-majorfamily) wrote : | #29 |
I downloaded 1.6.2 and this patch is not in it. Will making the same code changes as listed in the patch here fix the same issue on the new version?
wineos (wineos) wrote : | #30 |
The same here.
I can connect using "iwconfig mode ad-hoc", but wicd can't.
Dan O'Reilly (oreilldf) wrote : | #31 |
1.6.2 sets the mode while the interface is down, so it should behave no differently than the patch:
# Take down interface and clean up previous connections.
# Put interface up.
@wineos, can you enable debug mode, try connecting to an ad-hoc network, and attach /var/log/
Joe Kowalski (joekowalski) wrote : | #32 |
I'm running into this problem with wicd-1.7.0 and an iwl4965 card trying to connect to an android wireless tethering network. Debugging advice would be very helpful.
haxwithaxe (mannkoepke) wrote : | #33 |
I connot connect to an adhoc network via wicd but "ifconfig wlan0 down && iwconfig wlan0 mode Ad-Hoc && iwconfig wlan0 essid haxdroid key off && ifconfig wlan0 up && dhclient wlan0" works just fine
I'm running Ubuntu 10.04 amd64 and Wicd 1.7.0
lspci output for my wificard:
03:00.0 Network controller: Intel Corporation PRO/Wireless 5100 AGN [Shiloh] Network Connection
Kavli (ronny-kavli) wrote : | #34 |
- wicd-debug.log Edit (4.4 KiB, text/plain)
I've got the same problem. Been trying to nail it down today.
System is 10.04 on a EeePC 901 with wicd 1.7.0.
The Ad-Hoc-mode AP is a Nokia E95 8GB, running JoikuSpot.
01:00.0 Network controller: RaLink RT2860
Just as haxitwithaxe, I've no problems bringing up a working connection by hand, using his approach.
I've added some debug-lines in networking.py to try to see where it fails.
The question is why Disconnect is being called after a successful connect and dhcp-handshake.
Since the connect-thread seem to be doing everything right, there must be some monitoring thread somewhere which doesn't like the state the link is in and then decide to flush it.
-- K
Thomas Dziedzic (gostrc) wrote : | #35 |
archlinux bug with patch: https:/
Adam Blackburn (adamblackburn) wrote : | #36 |
Thanks, applied.
Changed in wicd: | |
status: | Incomplete → Fix Committed |
assignee: | Dan O'Reilly (oreilldf) → nobody |
Changed in wicd: | |
status: | Fix Committed → Fix Released |
What wireless card do you have, and what is the output of
sudo iwlist scan
?