[Buildroot] configure HOSTAPD build to enable nl80211 driver support

Baruch Siach baruch at tkos.co.il
Thu Jul 31 04:13:25 UTC 2014


Hi Rohit,

On Thu, Jul 31, 2014 at 01:07:08PM +0900, Rohit Kumar wrote:
> On Thu, Jul 31, 2014 at 12:51 PM, Baruch Siach <baruch at tkos.co.il> wrote:
> > 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.
> >
> > i tried to edit defconfig at buildroot/output/build/hostapd-2.2/hoatapd
> but "CONFIG_DRIVER_WEXT" parameter does not exist in the file.
> how do i do it?

You can just add it. Not all driver options appear in this file.

> i also have the source for wifi driver which i am using, can i change
> something in driver to make it support new API?

As far as I know this is not a trivial change, but you should better ask at 
the linux-wireless mailing list.

What hardware do you use? Maybe your device already has a nl80211 driver. Most 
commercially available devices have.

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