Hi Aditya,

it should be 

ath_pci autocreate=ap

for master mode

Thanks!
------------------------------------------------------------
Swapnil Jain ( http://swapnil-indore.blogspot.com/ )
[Contact for Secure, Robust & Easy to Use Security Solutions]
Networking & Security Consultant ( http://www.pisces.net.in )
Indore, India
------------------------------------------------------------
E-mail: swapnil@pisces.net.in
GTalk : swapnil@pisces.net.in
MSN: jswapnil@hotmail.com
Skype : sj1410
YIM   : sj1410
------------------------------------------------------------

On 28-Aug-2010, at 5:53 AM, Aditya Bhave wrote:

To create an interface in Master mode follow these steps

sudo modprobe -r ath_pci || true
sudo modprobe ath_pci autocreate=none
sudo wlanconfig ath0 create wlandev wifi0 wlanmode ap

There is something in the documentation about this. If you dont specify "autocreate=none", the driver gets loaded and creates a STA VAP by default. After this, it does not allow changing the mode.

http://madwifi-project.org/wiki/UserDocs/AccessPointInterface
http://madwifi-project.org/wiki/UserDocs/autocreate

--Aditya



On 08/26/2010 02:36 AM, Ismaeel Abu Amsha wrote:
 
 
i read that TL-WN550G/TL-WN551G
 
Working fine with MadWiFi SVN 20080109 under Ubuntu server 7.10. Running in master mode without any problems.
 
 
but when tried to set it using under ubuntu 8.04 server
using madwifi driver
 
root@samo:~# iwconfig ath0 mode Master
Error for wireless request "Set Mode" (8B06) :
    SET failed on device ath0 ; Invalid argument.

when tested it using hostap
 
root@samo:~# hostapd /etc/hostapd/hostapd.conf
Configuration file: /etc/hostapd/hostapd.conf
ioctl[SIOCSIWMODE]: Invalid argument
Could not set interface to master mode!
madwifi driver initialization failed.

are you sure it is working ?
------------------------------------------------------------------------------ Sell apps to millions through the Intel(R) Atom(Tm) Developer Program Be part of this innovative community and reach millions of netbook users worldwide. Take advantage of special opportunities to increase revenue and speed time-to-market. Join now, and jumpstart your future. http://p.sf.net/sfu/intel-atom-d2d
_______________________________________________ Madwifi-users mailing list Madwifi-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/madwifi-users

------------------------------------------------------------------------------
Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
Be part of this innovative community and reach millions of netbook users
worldwide. Take advantage of special opportunities to increase revenue and
speed time-to-market. Join now, and jumpstart your future.
http://p.sf.net/sfu/intel-atom-d2d_______________________________________________
Madwifi-users mailing list
Madwifi-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/madwifi-users