[Buildroot] configure HOSTAPD build to enable nl80211 driver support

Baruch Siach baruch at tkos.co.il
Thu Jul 31 03:51:51 UTC 2014


Hi Rohit,

On Thu, Jul 31, 2014 at 12:40:30PM +0900, Rohit Kumar wrote:
> On Thu, Jul 31, 2014 at 11:39 AM, Gustavo Zacarias <gustavo at zacarias.com.ar>
> wrote:
> > On 07/30/2014 10:48 PM, Rohit Kumar wrote:
> > > how can i configure hostapd build with nl80211 driver support.
> > > currenty when i run hostapd, it says
> > >>nl80211 driver initialization failed.
> >
> > That error message is terribly generic, how about a little more
> > information on what hostapd says before that and your hostapd config?
> >
> hostapd.conf is very basic :
> interface=wlan0
> driver=nl80211
> ssid=test
> channel=1

[...]

> > A dump of the wlan card information would be useful too, typically via
> > the iw package "iw phy0 info" since it's possible you're trying to do
> > master mode on a device that doesn't support it.
> 
> iw wlan0 info
> command failed: No such device (-19)
> 
> but iwconfig works fine even when i run
> iwconfig wlan0 mode master
> it does not show error.
> 
> the USB wifi device works well on PC, so device supports master mode

It seems that your driver only support the old deprecated wireless extension 
API. You may have better luck if you enable CONFIG_DRIVER_WEXT in 
hostapd/defconfig. You'll also need 'driver=wext' in you hostapd.conf.

baruch

-- 
     http://baruch.siach.name/blog/                  ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -


More information about the buildroot mailing list