Re: Adhoc Connection

Pavel Roskin <[email protected]> Tue, 23 Mar 2010 01:16:23 -0400
Newsgroups gmane.linux.drivers.madwifi.user
Message-ID <1269321383.2708.33.camel@mj>
On Mon, 2010-03-22 at 21:50 +0200, Mohammad Abdelhadi wrote:

> I have two PCI wireless cards (TL-WN651G) and I want to establish an
> (ad-hoc) connection between them, I installed Madwifi
> (madwifi-0.9.4-r4119-20100201) on both cards and I followed all the
> instructions in Madwifi-project's site, but unfortunately I am not
> able to establish an adhoc connection between them; I established the
> interfaces and the cards can sense each others but when one of them
> try to connect to the other, connection is not established. What
> should I do ? 

I was able to reproduce the problem.

It turns out the beacons generated by MadWifi in ad-hoc mode contain
some extra information, such as WPA data, even though WPA is not active
on the interface.  This must be a result of NetworkManager trying to
configure the interface.

You can mark the interface as unmanaged
in /etc/NetworkManager/nm-system-settings.conf as described at
http://live.gnome.org/NetworkManager/SystemSettings

Make sure to reload NetworkManager or reboot for the changer to take
effect.  You can use "cnetworkmanager -d" to confirm that the interface
is unmanaged.

You can also use the ath5k driver, which doesn't seem to have that
problem.

But even with ath5k, if you are not relying on NetworkManager for the
interface, it's better to mark the interface as unmanaged.

-- 
Regards,
Pavel Roskin

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev