Ad-Hoc network wońt work ?!
Dan Williams
dcbw
Tue Sep 2 06:47:02 PDT 2008
On Tue, 2008-09-02 at 15:32 +0200, Manuel Sahm wrote:
> Hello,
>
> thank you very much for your reply:
>
> I use Kernel Version 2.6.27-rc3 and wpa_supplicant 0.5.10
0.5.x doesn't have the necessary patches to (a) handle mac80211 mode
switches correctly, and (b) wait long enough for the mac80211-based
driver to bring up ad-hoc mode.
1d3c75b3b6663ed9f3a9a8dea8d47056cce2680f
59c9707863336c1255936c755d24c8eb1ed8db2f
You'll want at least those two commit IDs from master, though you'll
need to backport them to 0.5.x.
Dan
> I have wlan usb stick ASUS WL176G or an GIGABYTE which uses the rt2xx
> driver which is included in the kernel....
>
> Do you have any idea ?
>
> Thanks a lot
>
> Manuel
>
>
>
> >>> Dan Williams <dcbw at redhat.com> 02.09.2008 15:26 >>>
> On Mon, 2008-09-01 at 16:45 +0200, Manuel Sahm wrote:
> > Hello,
> >
> > I have tried the following:
> > # Start wpa_supplicant in the background
> > wpa_supplicant -g/var/run/wpa_supplicant-global -B
> >
> > # Add a new interface (wlan0, no configuration file, driver=wext,
> and
> > # enable control interface)
> > wpa_cli -g/var/run/wpa_supplicant-global interface_add wlan0 ""
> > wext /var/run/wpa_supplicant
> >
> > # Configure a network using the newly added network interface:
> > wpa_cli -iwlan0 add_network
> > wpa_cli -iwlan0 set_network 0 ssid '"test"'
> > wpa_cli -iwlan0 set_network 0 key_mgmt NONE
> > wpa_cli -iwlan0 set_network 0 mode 1
> > wpa_cli -iwlan0 ap_scan 2
> > wpa_cli -iwlan0 enable_network 0
> >
> > # At this point, the new network interface should start trying to
> > offer an Ad-Hoc Network,
> > but in windows xp(another pc), nothing is seen.
>
> What kernel version? What wireless hardware, and what drivers are
> being
> used? mac80211-based drivers may not successfully create adhoc BSSes
> without some patches I posted to the kernel and wpa_supplicant (which
> are in 2.6.26 and wpa_supplicant 0.6.4).
>
> Dan
>
> > I have valid ip address too.
> >
> > PS:
> > If I use iwconfig, all works fine ????
> >
> > iwconfig wlan0 essid "test"
> > iwconfig wlan0 mode ad-hoc
> >
> >
> > Thank you for your help...
> > _______________________________________________
> > HostAP mailing list
> > HostAP at lists.shmoo.com
> > http://lists.shmoo.com/mailman/listinfo/hostap
>
>
More information about the Hostap
mailing list