how to configure hostap in ad hoc mode

Dan Williams dcbw
Mon May 7 04:44:59 PDT 2007


On Mon, 2007-05-07 at 01:17 -0700, Do Thi Phuong Thao wrote:
> Hi all,
> I have card wireless 3COM 3CRPAG175. I want to run hostapd in ad hoc
> mode but there are some problems. Can some one show me the way to
> configure hostap in ad hoc mode? pls. Thanks alot.

If you're trying to do adhoc mode, then you probably don't need hostapd.
The hostap _daemon_ is a software infrastructure (not adhoc!) mode
access point daemon.  It makes your card become an access point, which
isn't adhoc mode.

If you want adhoc mode, just set the card to adhoc mode and do whatever
you want to do, hostapd itself doesn't need to be involved.

Dan

> * if ath0 is in ad hoc mode and i run: 
> #hostapd /etc/hostapd.conf
> Configuration file: /etc/hostapd.conf
> ioctl[SIOCSIWMODE]: invalid argument
> Could not set interface to master mode!
> madwifi driver initialization failed. 
> 
> *if ath0 is in master mode (AP) and i run: 
> #hostapd /etc/hostapd.conf
> there isn't any error. But
> #iwconfig ath0 mode ad-hoc
> Error for wireless request "Set Mode" (8B06):
> Set failed on device ath0; Invalid argument.
> 
> 
> ______________________________________________________________________
> Ahhh...imagining that irresistible "new car" smell?
> Check out new cars at Yahoo! Autos. 
> _______________________________________________
> HostAP mailing list
> HostAP at shmoo.com
> http://lists.shmoo.com/mailman/listinfo/hostap





More information about the Hostap mailing list