Use hostapd to set master mode?

Grant emailgrant
Mon Feb 23 09:07:05 PST 2009


>> >> >> i am plumbing to get an AP with hostapd and nl80211 working too, in my
>> >> >> case with driver p54_pci.
>> >> >> in order to get an interface in master mode, i have to use
>> >> >> # iw phy phy0 interface add myap type __ap
>> >> >> this gets me a seperate virtual interface that i can then use with
>> >> >> hostapd.
>> >> > No you can do this much easier..
>> >> > just load the driver and run hostapd.
>> >> > (Of course you have to set interface=wlan0 (depends on your setup) in hostapd.conf before)
>> >>
>> >> Thanks to Ahmad, my interface will go into master mode after another
>> >> kernel patch, but I'm getting a new
>> >> error.  Depending on the channel I set in hostapd.conf, I get either:
>> >>
>> >> "ioctl[SIOCSIFFLAGS]: Operation not permitted"
>> >>
>> >> or:
>> >>
>> >> "could not set channel for kernel driver"
>> >>
>> >> and hostapd fails to start.  Do you know how to fix this?
>> >>
>> > looks like you need to install CRDA
>> > If your distribution hasn't picked it up already, you can get it from here:
>> > http://wireless.kernel.org/en/developers/Regulatory/CRDA
>> >
>> > Then you have to set the right country_code= in hostapd.conf
>> > And it should work.
>>
>> Thanks, I did that but I get the same results.
>>
> what result? any logs?

The interface goes into master mode, but depending on which channel I
try to set, the result is either:

"ioctl[SIOCSIFFLAGS]: Operation not permitted"

or:

"could not set channel for kernel driver"

There's nothing in the logs except for:

Calling CRDA for country: US

- Grant



More information about the Hostap mailing list